glossarist 0.4.47 → 0.4.48
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/package.json +1 -1
- package/src/rdf/agents-emitter.ts +1 -1
- package/src/rdf/bibliography-emitter.ts +1 -1
- package/src/rdf/build-activity-emitter.ts +1 -2
- package/src/rdf/dataset-emitter.ts +1 -2
- package/src/rdf/document-writer.ts +1 -1
- package/src/rdf/group-emitter.ts +1 -2
- package/src/rdf/image-variant-emitter.ts +1 -2
- package/src/rdf/prefixes.ts +6 -2
- package/src/rdf/provenance-emitter.ts +1 -2
- package/src/rdf/sections-builder.ts +1 -1
- package/src/rdf/version-emitter.ts +1 -1
- package/src/rdf/vocabulary-emitter.ts +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// prov:Organization, and the person is linked via prov:actedOnBehalfOf.
|
|
9
9
|
|
|
10
10
|
import { namedNode, literal, quad } from './terms.js';
|
|
11
|
-
import { PREFIXES } from './
|
|
11
|
+
import { PREFIXES } from './prefixes.js';
|
|
12
12
|
import { RDF_TYPE } from './curie.js';
|
|
13
13
|
|
|
14
14
|
const PROV_NS = PREFIXES.prov;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// - dcterms:isPartOf (parent dataset)
|
|
12
12
|
|
|
13
13
|
import { namedNode, literal, quad } from './terms.js';
|
|
14
|
-
import { PREFIXES } from './
|
|
14
|
+
import { PREFIXES } from './prefixes.js';
|
|
15
15
|
import { RDF_TYPE } from './curie.js';
|
|
16
16
|
|
|
17
17
|
// Namespace IRIs from canonical PREFIXES. foaf is absent from the
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
1
|
// Build activity emitter — emits prov:Activity per build run.
|
|
3
2
|
// Mirrors concept-browser's build-activity-emitter.ts.
|
|
4
3
|
//
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
// - prov:wasAssociatedWith for the CI bot agent
|
|
11
10
|
|
|
12
11
|
import { namedNode, literal, quad } from './terms.js';
|
|
13
|
-
import { PREFIXES } from './
|
|
12
|
+
import { PREFIXES } from './prefixes.js';
|
|
14
13
|
import { RDF_TYPE } from './curie.js';
|
|
15
14
|
|
|
16
15
|
const PROV_NS = PREFIXES.prov;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
1
|
// Dataset emitter — emits dcat:Dataset + skos:ConceptScheme per
|
|
3
2
|
// register. Mirrors concept-browser's dataset-emitter.ts.
|
|
4
3
|
//
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
// for cascading section membership).
|
|
13
12
|
|
|
14
13
|
import { namedNode, blankNode, literal, quad } from './terms.js';
|
|
15
|
-
import { PREFIXES } from './
|
|
14
|
+
import { PREFIXES } from './prefixes.js';
|
|
16
15
|
import { RDF_TYPE } from './curie.js';
|
|
17
16
|
import { deterministicBnodeId } from './bnode-id.js';
|
|
18
17
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// as a stable fallback that doesn't depend on prefix maps.
|
|
7
7
|
import { Writer as N3Writer } from 'n3';
|
|
8
8
|
import jsonld from 'jsonld';
|
|
9
|
-
import { PREFIXES } from './
|
|
9
|
+
import { PREFIXES } from './prefixes.js';
|
|
10
10
|
|
|
11
11
|
// Collects all quads yielded by an emitter into an array. Useful for tests
|
|
12
12
|
// and for callers that want to inspect the quad stream directly.
|
package/src/rdf/group-emitter.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
1
|
// Group emitter — emits dcat:DatasetSeries (lineage) or dcat:Catalog
|
|
3
2
|
// (topic/family/collection) for dataset groups. Mirrors concept-browser's
|
|
4
3
|
// group-emitter.ts.
|
|
@@ -13,7 +12,7 @@
|
|
|
13
12
|
// Both kinds are also typed as skos:ConceptScheme for SKOS interop.
|
|
14
13
|
|
|
15
14
|
import { namedNode, literal, quad } from './terms.js';
|
|
16
|
-
import { PREFIXES } from './
|
|
15
|
+
import { PREFIXES } from './prefixes.js';
|
|
17
16
|
import { RDF_TYPE } from './curie.js';
|
|
18
17
|
|
|
19
18
|
// Namespace IRIs from canonical PREFIXES.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
1
|
// Image variant emitter — emits foaf:Image per format/language variant
|
|
3
2
|
// of a dataset figure. Mirrors concept-browser's image-variant-emitter.ts.
|
|
4
3
|
//
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
// - dcat:downloadURL (canonical download)
|
|
10
9
|
|
|
11
10
|
import { namedNode, literal, quad } from './terms.js';
|
|
12
|
-
import { PREFIXES } from './
|
|
11
|
+
import { PREFIXES } from './prefixes.js';
|
|
13
12
|
import { RDF_TYPE } from './curie.js';
|
|
14
13
|
|
|
15
14
|
const FOAF_NS = PREFIXES.foaf ?? 'http://xmlns.com/foaf/0.1/';
|
package/src/rdf/prefixes.ts
CHANGED
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
// constants (`rdf:type`, `skos:Concept`) because JSON-LD handles them via
|
|
7
7
|
// the `@type` keyword. We construct those from the namespace URIs here so
|
|
8
8
|
// downstream emitters don't have to repeat the construction.
|
|
9
|
-
import { PRED, PREFIXES } from './predicates.js';
|
|
9
|
+
import { PRED, PREFIXES as _PREFIXES } from './predicates.js';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// Widen the type so emitters can access keys not in the JSON-LD context
|
|
12
|
+
// (foaf, dcat) via `PREFIXES.foaf ?? 'fallback'`. The runtime values
|
|
13
|
+
// are the same; the type just permits unknown-key access.
|
|
14
|
+
export const PREFIXES: Record<string, string> = _PREFIXES as Record<string, string>;
|
|
15
|
+
export { PRED };
|
|
12
16
|
|
|
13
17
|
// SKOS-XL label predicates — same local name as SKOS, so we construct them
|
|
14
18
|
// from the SKOS-XL namespace URI.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
1
|
// Provenance emitter — emits prov:wasGeneratedBy + prov:Activity quads
|
|
3
2
|
// for any resource that needs build/view-time provenance.
|
|
4
3
|
//
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
// on standard RDF/JS Quad[] (no RdfGraph abstraction).
|
|
8
7
|
|
|
9
8
|
import { namedNode, blankNode, literal, quad } from './terms.js';
|
|
10
|
-
import { PREFIXES } from './
|
|
9
|
+
import { PREFIXES } from './prefixes.js';
|
|
11
10
|
import { RDF_TYPE, RDFS_LABEL } from './curie.js';
|
|
12
11
|
import { deterministicBnodeId } from './bnode-id.js';
|
|
13
12
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// - prov:wasAssociatedWith (optional agent)
|
|
10
10
|
|
|
11
11
|
import { namedNode, literal, quad } from './terms.js';
|
|
12
|
-
import { PREFIXES } from './
|
|
12
|
+
import { PREFIXES } from './prefixes.js';
|
|
13
13
|
import { RDF_TYPE } from './curie.js';
|
|
14
14
|
|
|
15
15
|
const PROV_NS = PREFIXES.prov;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// PREFIXES.
|
|
14
14
|
|
|
15
15
|
import { namedNode, literal, quad } from './terms.js';
|
|
16
|
-
import { PREFIXES } from './
|
|
16
|
+
import { PREFIXES } from './prefixes.js';
|
|
17
17
|
import { resolveIri, RDF_TYPE, RDFS_LABEL } from './curie.js';
|
|
18
18
|
|
|
19
19
|
const SKOS_NS = PREFIXES.skos;
|