# void

[![Build and test](https://github.com/lmodel/void/actions/workflows/main.yaml/badge.svg)](https://github.com/lmodel/void/actions/workflows/main.yaml)
[![Licence](https://img.shields.io/github/license/lmodel/void?label=licence)](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/LICENSE)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/lmodel/void/badge)](https://scorecard.dev/viewer/?uri=github.com/lmodel/void)
[![KTL scorecard](https://img.shields.io/endpoint?url=https://lmodel.github.io/void/badge.json)](https://lmodel.github.io/void/health/)

Vocabulary of Interlinked Datasets (VoID), W3C Note of 2011 (LinkML)

> **Only want to ask?** Install `ktl-docent` into any agent you use, by a route from [the install page](https://w3id.org/ktl/docs/install/), and ask it about this project. It answers from the bundle and says how far each answer has been checked.
>
> **Agents:** if `.lokf/knowledge/index.md` exists, read it first. `llms.txt` says how to weigh it.

## Documentation Website

[https://lmodel.github.io/void](https://lmodel.github.io/void)

## What it models

The schema renders the Vocabulary of Interlinked Datasets (VoID), the RDF vocabulary that describes a linked dataset: what it is, who made it, how to reach it, what it holds and how it links to other datasets.

The schema follows [Describing Linked Datasets with the VoID Vocabulary](https://www.w3.org/TR/2011/NOTE-void-20110303/), a W3C Interest Group Note of 3 March 2011, and the vocabulary file its editors keep at [cygri/void](https://github.com/cygri/void/blob/master/rdfs/void.ttl).

Every VoID class and property keeps its VoID name and Internationalized Resource Identifier (IRI), such as `void:distinctSubjects`, and the Dublin Core, FOAF and RDF Schema terms the Note uses keep theirs. Only the identifier `id` and the two partition classes are the schema's own, under `void_linkml:`.

`tests/upstream/void-terms.tsv` lists the terms of the vocabulary file at the editors' pinned commit, and the tests hold the schema to it. A weekly workflow opens an issue when W3C publishes another edition of the Note, the editors change the vocabulary file, or a licence changes.

## Mappings

* `Dataset`: `sd:Dataset` and `sd:Graph` in `narrow_mappings`, as the Note's section 6.5 says, and `dcat:Dataset` in `broad_mappings`, as [DCAT 3](https://www.w3.org/TR/vocab-dcat-3/) offers VoID's properties for a DCAT dataset whose data is RDF.
* `DatasetDescription`: `foaf:Document` in `broad_mappings`, as the vocabulary file states.
* The two partition classes: `void:Dataset` in `broad_mappings`, since VoID makes a partition a dataset.

`tests/test_upstream.py` checks that each mapping names a term the pinned file of its vocabulary declares.

## Not modelled here

* The text of the Note and of the vocabulary file. Every description is this project's own.
* `dcterms:date`: a slot named `date` takes the name of LinkML's date type, and the generated Pydantic model then checks no date. `created`, `issued` and `modified` carry the dates the Note names.
* The people and organisations a description names, which FOAF describes: the schema takes their IRIs.
* The Waiver vocabulary's terms and the SPARQL Service Description's own terms.
* The rules no validator can check, which [docs/index.md](https://lmodel.github.io/void/docs/) lists.

## Repository Structure

* [docs/](https://lmodel.github.io/void/docs/): the website's own pages
* [project/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/project): generated project files (do not edit them)
* [scripts/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/scripts): the upstream watch and the term list extractor
* [src/void/schema/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/src/void/schema): the LinkML schema, `void.yaml` (edit this)
* [src/void/datamodel/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/src/void/datamodel): the generated Python datamodel
* [tests/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/tests): Python tests, with example data in [data/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/tests/data), the term lists in [upstream/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/tests/upstream) and the neighbours' adapt copies in [neighbours/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/tests/neighbours)
* [website/](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/website): the Hugo site built from the README, `docs/`, the schema's pages and the knowledge bundle

## Developer Tools

Run `just` to list the project's [just](https://github.com/casey/just/) recipes.

## Knowledge Trust Ladder (KTL)

`.lokf/` holds this project's [KTL](https://w3id.org/ktl/) knowledge bundle. Its domain schema, `.lokf/schema/void.yaml`, is the copy `just lokf-adapt` writes from `src/void/schema/void.yaml`, and `just lokf-adapt-check` says when it is stale. Edit the source, never the copy. A release carries the copy as `schema-<tag>-void.yaml`, on the terms [CONTRIBUTING.md](https://github.com/lmodel/void/blob/1d1f8ecb91e27d49b99c8a250f301084936feef2/CONTRIBUTING.md#releasing-maintainers) gives.

The copy roots on `Concept` the three classes whose instances VoID names by an IRI, so a concept may name any of them, or `Linkset`, a kind of dataset, as its `type`. In Obsidian, add them to the *Known LOKF types* setting of the KTL Registrar and KTL Curator plugins:

```text
VoidDataset, Linkset, DatasetDescription, TechnicalFeature
```

The partitions stay values inside a dataset's concept. In the copy, LOKF's `id` replaces the schema's own.

The copy renames each name LOKF also defines and keeps its IRI: the class `Dataset` becomes `VoidDataset`, and the keys `title`, `description`, `publisher`, `source`, `created`, `license` and `target` take a `void_` prefix, such as `void_title`. Five keys, such as `subject` and `comment`, are other lmodel copies' too, under another IRI there. `tests/test_schema_rules.py` lists every shared name and fails on a new one, and [lokf #169](https://github.com/nicholsn/lokf/issues/169) asks `adapt` for a `--beside` option to rename them.

## License

The schema and the code are under the Apache License 2.0 ([LICENSE](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/LICENSE)), and the knowledge bundle in [.lokf/knowledge/](https://lmodel.github.io/void/knowledge/) is under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

The Note is under the W3C Document License, and the vocabulary file states no licence, so this repository carries the text of neither: see [NOTICE](https://github.com/lmodel/void/tree/1d1f8ecb91e27d49b99c8a250f301084936feef2/NOTICE). This is not a W3C project, and its use implies no endorsement by W3C or VoID's authors.

## Contributing and security

[CONTRIBUTING.md](https://github.com/lmodel/void/blob/1d1f8ecb91e27d49b99c8a250f301084936feef2/CONTRIBUTING.md) is the checklist for pull requests and
releases, [AI_COVENANT.md](https://github.com/lmodel/void/blob/1d1f8ecb91e27d49b99c8a250f301084936feef2/AI_COVENANT.md) sets the rules for AI-assisted work,
[SECURITY.md](https://github.com/lmodel/void/blob/1d1f8ecb91e27d49b99c8a250f301084936feef2/SECURITY.md) says how to report a vulnerability, and
[CHANGELOG.md](https://lmodel.github.io/void/changelog/) records the changes.

## Credits

Built from the [linkml-project-copier](https://github.com/linkml/linkml-project-copier) template ([doi:10.5281/zenodo.15163584](https://doi.org/10.5281/zenodo.15163584)).
