@faubulous/mentor-rdf 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,6 +34,14 @@ An [RDF.js](https://rdf.js.org/)-compatible triple store with:
34
34
  - Named graph management
35
35
  - Bundled W3C ontologies (RDF, RDFS, OWL, SKOS, SHACL, XSD)
36
36
 
37
+ ### Vocabulary constants
38
+
39
+ The IRIs of the bundled vocabularies are exported as constants: `RDF.type` and `XSD.string` as strings, `rdf.type` as RDF/JS terms, and `_RDF` or `_XSD` for the namespace. Code that needs only these constants, such as a browser bundle, imports them from their own entry point so that the rest of the library stays out of the bundle:
40
+
41
+ ```ts
42
+ import { RDF, XSD } from '@faubulous/mentor-rdf/ontologies';
43
+ ```
44
+
37
45
  ## SKOS Concept Schemes and Collections
38
46
 
39
47
  SKOS hierarchies are not trees, and the standard does not require them to stay inside a concept scheme. The repository therefore applies explicit rules so that hierarchical views neither lose resources nor show them in the wrong place.