Start I. Waarom II. Samenhang III. Modelleren R1 Infrastructuurklasse R2 Verplichte eigenschappen R3 Resultaat met eenheid R4 Drielaags model R5 hasInput en prov:used R6 ML-model als artefact R7 Afgeleide waarnemingen R8 Bemonsteringsketens R9 Niet-kalendertijd R10 IRI's R11 Ruimtelijk monster R12 Tijd R13 Afgeleid en geaggregeerd R14 Termen van SSN/SOSA 2023 R15 Geen SKOS tussen klassen R16 Activiteit of entiteit R17 Vocabularia kiezen R18 Begrip of klasse V. Patronen VI. Werkwijze VII. Casussen VIII. Oefenen Bijlagen OSLOthema-SSNSOSA-VL op GitHub
Dit is een prototype van de site SSN/SOSA in Vlaanderen in de Vlaamse huisstijl, gebouwd met Flux. De inhoud komt uit de bestaande site; die blijft de referentie.

Een term buiten de kern is het resultaat van een vergelijking, niet van de eerste zoekhit.

  • Volg de volgorde: kern → andere W3C/OGC → overheid (OSLO, SEMIC, registers) → andere normen → al de rest.
  • LOV is om te verkennen, niet om te kiezen; schema.org enkel als laatste uitweg.
  • Beoordeel kandidaten op vijftien criteria (technisch, semantisch, beheer, verhouding).
  • Zoek alignments ook buiten de kandidaat; afwezigheid in de kandidaat is geen afwezigheid.
  • Laad het vocabularium, valideer alle voorbeelden opnieuw, en verantwoord de keuze in de bespreking (Waarom dit vocabularium?).
Waarom

Elke term brengt verbintenissen mee: een domein dat je resource een type geeft, een bereik, een namespace die kan verdwijnen, een uitgever die kan stoppen. Wie termen plukt uit wat toevallig geladen of gevonden is, krijgt data met verbintenissen die niemand koos. Een vaste werkwijze maakt die keuze zichtbaar en herhaalbaar.

En omdat dit werk om samenhang draait: een term die niet op de kern aansluit, of ermee botst, breekt de samenhang. Daarom criterium 6 (consistent met de kern) en 8 (uitgelijnd met de kern).

Goed

Een bespreking met, voor elke term buiten de kern:

> **Waarom `adms:status`?**
> Kandidaten: `adms:status`, `saref:State`/`saref:StateValue`, een eigen eigenschap, de status
> als waarneming.
> Beslissend: W3C/SEMIC (11), geeft RDF terug (1), breed hergebruikt in DCAT-AP en OSLO (13).
> `saref:State` is de operationele toestand, niet de beheerstatus (7). Een eigen vocabularium
> voor één eigenschap is het niet waard (15).
Fout
  • https://smartdatamodels.org/dataModel.Environment/deviceName: een IRI met een HTML-pagina en een JSON-LD-context, maar zonder RDF-beschrijving (criterium 1).
  • schema:serialNumber omdat het de eerste treffer was, zonder vergelijking.
  • sp:Sample (SPIN) omdat LOV het naast sosa:Sample rangschikte.
In de casussen
  • Overstort: Smart Data Models vervangen; saref:hasManufacturer en adms:status na vergelijking.
  • Register en I-ADOPT: een nieuw model eerst beoordelen, dan aligneren.
Zie ook

Een alignment vinden en beoordelen — de uitgewerkte versie, met de criteria in het Nederlands en een voorbeeld.

R17 — Choose vocabularies deliberately — uit guide/linked-data.md, kit 0.3.12

A term outside the core is the outcome of a comparison, not of the first search hit. Cherry-picking terms from whatever vocabulary happens to be loaded or found leaves the data with commitments nobody chose (a domain that types your sensor as something else, a namespace that disappears).

Order of preference. Use a term from a later level only when the earlier levels cannot express the meaning:

  1. the core already loaded: SOSA/SSN, PROV-O, QUDT, OWL-Time, GeoSPARQL, SKOS, DCTERMS, RDFS;
  2. other W3C and OGC models;
  3. government vocabularies and registers: OSLO (data.vlaanderen.be), the SEMIC Core Vocabularies, the registers named in the project profile;
  4. standards from other bodies (ISO, ETSI);
  5. anything else.

LOV is for exploring, not for selecting. Linked Open Vocabularies shows candidate terms and the contexts in which others use them. Its ranking is textual: a search for Sample puts sp:Sample (SPIN, a SPARQL vocabulary) level with sosa:Sample, and its reuse metrics are not reliable. A hit is a candidate, never a recommendation.

schema.org only as a last resort. schema.org serves web markup for search engines, not data models, and that shows in the criteria below:

  • the term IRIs return HTML on content negotiation (1); RDF is available only as release downloads;
  • http://schema.org/ and https://schema.org/ are both in use for the same terms (2);
  • it is not aligned with PROV-O or SOSA except through the preliminary module sosa-sdo of SSN/SOSA 2023 (8).

Prefer a term from levels 1–4; when schema.org is the only candidate, say why in the discussion.

Criteria. Assess every candidate vocabulary on:

# Criterion What to check
Technical
1 Dereferenceable as RDF the namespace and a sample term return RDF (Turtle, RDF/XML or JSON-LD) on content negotiation; an HTML page or a JSON-LD @context alone is not enough (see Validation)
2 Persistent namespace w3id, purl or the domain of a standards body; http and https used consistently
3 Versioned owl:versionIRI or owl:versionInfo, a change log, withdrawn terms marked owl:deprecated
4 Licence explicit and open
5 Formally sound terms typed, with labels and definitions; where a domain or range is declared, it makes sense (a missing rdfs:domain is often a deliberate choice, as in DCTERMS and SSN/SOSA 2023, to keep a property reusable and avoid unwanted inferences); no SKOS between classes (R15); no axioms about other vocabularies' terms (sosa:, prov:, …)
6 Consistent with the core once loaded, the existing examples still give no [DISJOINTNESS] violation (R16)
Semantic
7 Fit with the domain judged on the definition, not the label; abstract vocabularies (PROV, SKOS, DCTERMS) are welcome where their definition fits
8 Aligned with the core rdfs:subClassOf / rdfs:subPropertyOf to SOSA or PROV, or at least nothing that conflicts with them. Search as described under Finding alignments below
9 Commitment what the domain, range and inferences of the one term you need add to the data, read together with the alignment (8): e.g. the domain of saref:hasManufacturer makes the subject a saref:FeatureOfInterest, which the SOSA–SAREF alignment already makes every sosa:System
10 Granularity not tied to one project or application
Governance
11 Publisher a standards body, a government or an active community, rather than a finished research project
12 Maintenance recent release, an issue tracker that is used
13 Adoption used in the target community (OSLO, SEMIC, INSPIRE, datasets)
14 Labels in the project language present, or possible to add
Proportion
15 Worth it one term from a large vocabulary must be worth the commitments it brings; when in doubt, add no vocabulary

Finding alignments. An alignment is a statement about two vocabularies and may be published by either, or by neither: the SOSA–SAREF alignment is a separate module of SSN/SOSA 2023 (http://www.w3.org/ns/sosa/saref), not part of SAREF; the SOSA namespace document does not point to it, and LOV does not record it. Absence in the candidate is therefore not absence. Search, in this order:

  1. the register of known alignments, ../registers/alignments.ttl;
  2. the candidate itself (links to the core);
  3. the specification and repository of each core vocabulary (for SSN/SOSA 2023: chapter 7 and ssn/rdf/ontology/alignments/ in w3c/sdw-sosa-ssn);
  4. the candidate's own extension modules and documentation;
  5. a code search for files that use both namespaces (e.g. gh search code on both namespace IRIs).

State in the discussion (§6) where you searched and what you found, so that a missing alignment is an established absence, not an oversight. Load a module the mapping relies on, together with what it imports, and validate all examples again. Add every alignment found to the register.

Way of working. A vocabulary is used only after it is loaded in the project's ontology directory, with its source and version, and after validate_file on all examples is still consistent.

Account for it. For every term outside the core, the discussion (§6) has a subsection Why this vocabulary?: the candidates considered (including LOV hits), the assessment on the criteria that decided, and the rejected alternatives. That makes cherry-picking visible.

Bron van deze pagina op GitHub