Skip to content

Vocabularies

DFC does not invent its own value lists. Where a property needs a controlled term — a unit, a facet, a product category — the value comes from one of five external SKOS taxonomies. This page explains where they come from, how they reach you, and what happens if you leave them alone.

Five vocabularies, none in the schema

Vocabulary Used for Bundled concepts
Facet what a product is characterised by 237
Measure units of quantity 128
ProductType what kind of product 510
Scope authorisation scopes the DPM assigns to a platform 6
VocabularyTerm generic terms 43

None of these values are in the LinkML schema. The schema records only where each vocabulary lives, through reachable_from, plus how concepts are collected in an annotations block:

Facet:
  description: Classification facets for categorizing DFC entities.
  reachable_from:
    source_ontology: https://w3id.org/dfc/taxonomies/v2.0.0/facets.json
  annotations:
    source_class: Concept

reachable_from may only carry the fields LinkML's own ReachabilityQuery defines, so anything project-specific sits in annotations — otherwise the schema stops loading in LinkML tooling.

There is deliberately no path_navigation. The connectors do not walk skos:hasTopConcept: that predicate names only the top concepts (6 of 237 facets, and none at all for Scope), while the generators load every skos:Concept in the graph and key it on skos:notation.

The distinction matters when you read the generated model reference: a property whose range is a DFC class is fully described by the schema, but a property whose range is string and which is meant to hold a concept URI is not. The schema cannot tell you the valid values.

The bundled copy

Each vocabulary ships with the connectors, compacted SKOS, so everything works offline:

const c = new Connector();
c.loadFacets(facetData);      // replace it
c.facet;                      // or read the bundled one

The canonical data lives in ruby-gem/vocabularies/*.jsonld and is copied into the TypeScript and PHP packages at generation time — one source, three copies, so they cannot drift. If you are reading a concept list, that file is where it is.

Concepts are CURIEs, not strings

A value is a reference to a concept, not a label. dfc-f:EURLocalProduction is a Facet; dfc-m:Kilogram is a Measure. The label is metadata that travels alongside in the taxonomy, not in your document:

{
  "@id": "https://example.com/q/1",
  "@type": "dfc-b:QuantitativeValue",
  "dfc-b:value": 5,
  "dfc-b:hasUnit": "dfc-m:Kilogram"
}

There is no validation that dfc-m:Kilogram is a real concept. A typo is a string that happens to look like a CURIE, and it will be exported and re-imported without complaint. If you care, check the CURIE against the reference page for the vocabulary you are using.

Loading a different version

Bundled v2.0.0 is loaded unconditionally — the connectors ship only that version offline, so there is nothing to choose. Loading something else is opt-in and explicit:

// from a local file or a fetched document
c.loadFacets(myFacetData);
c.loadMeasures(myMeasureData);
c.loadProductTypes(myProductTypeData);
c.loadVocabulary("Scope", myScopeData);

// or from the upstream URL for the configured taxonomy version
await c.loadFacetsFromUrl();

The taxonomy version is independent of the ontology version, because they are versioned separately upstream:

new Connector({ ontologyVersion: "2.0.0", taxonomyVersion: "2.1.0" });

Note the asymmetry with the context: there is no bundled fallback for a non-default taxonomy, so the *FromUrl methods reach the network. If you pin a taxonomy version other than 2.0.0 and the fetch fails, you get whatever was last loaded — check vocabLoader.vocabulary("Facet") is not empty rather than assuming.

No validation happens here

The vocabularies are data, not constraints. Loading a vocabulary gives you a lookup table; it does not make the connectors check a value against it. For what would, see validation.

Reference