glossarist 0.4.49 → 0.4.51
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/dist/compiled-format.d.ts +43 -0
- package/dist/compiled-format.d.ts.map +1 -0
- package/{src/compiled-format.ts → dist/compiled-format.js} +28 -46
- package/dist/compiled-format.js.map +1 -0
- package/dist/concept-collection.d.ts +39 -0
- package/dist/concept-collection.d.ts.map +1 -0
- package/dist/concept-collection.js +127 -0
- package/dist/concept-collection.js.map +1 -0
- package/dist/concept-diff.d.ts +14 -0
- package/dist/concept-diff.d.ts.map +1 -0
- package/{src/concept-diff.ts → dist/concept-diff.js} +2 -20
- package/dist/concept-diff.js.map +1 -0
- package/dist/concept-parser.d.ts +11 -0
- package/dist/concept-parser.d.ts.map +1 -0
- package/dist/concept-parser.js +209 -0
- package/dist/concept-parser.js.map +1 -0
- package/dist/concept-reader.d.ts +55 -0
- package/dist/concept-reader.d.ts.map +1 -0
- package/{src/concept-reader.ts → dist/concept-reader.js} +70 -76
- package/dist/concept-reader.js.map +1 -0
- package/dist/concept-serializer.d.ts +9 -0
- package/dist/concept-serializer.d.ts.map +1 -0
- package/dist/concept-serializer.js +87 -0
- package/dist/concept-serializer.js.map +1 -0
- package/dist/concept-writer.d.ts +10 -0
- package/dist/concept-writer.d.ts.map +1 -0
- package/dist/concept-writer.js +28 -0
- package/dist/concept-writer.js.map +1 -0
- package/dist/dataset-asset.d.ts +49 -0
- package/dist/dataset-asset.d.ts.map +1 -0
- package/{src/dataset-asset.ts → dist/dataset-asset.js} +16 -33
- package/dist/dataset-asset.js.map +1 -0
- package/dist/diff/canonical-json.d.ts +7 -0
- package/dist/diff/canonical-json.d.ts.map +1 -0
- package/dist/diff/canonical-json.js +28 -0
- package/dist/diff/canonical-json.js.map +1 -0
- package/dist/diff/change.d.ts +67 -0
- package/dist/diff/change.d.ts.map +1 -0
- package/dist/diff/change.js +131 -0
- package/dist/diff/change.js.map +1 -0
- package/dist/diff/collection-diff.d.ts +50 -0
- package/dist/diff/collection-diff.d.ts.map +1 -0
- package/dist/diff/collection-diff.js +182 -0
- package/dist/diff/collection-diff.js.map +1 -0
- package/dist/diff/concept-diff.d.ts +188 -0
- package/dist/diff/concept-diff.d.ts.map +1 -0
- package/dist/diff/concept-diff.js +624 -0
- package/dist/diff/concept-diff.js.map +1 -0
- package/dist/diff/diff-patch.d.ts +7 -0
- package/dist/diff/diff-patch.d.ts.map +1 -0
- package/dist/diff/diff-patch.js +225 -0
- package/dist/diff/diff-patch.js.map +1 -0
- package/dist/diff/diff-renderer.d.ts +44 -0
- package/dist/diff/diff-renderer.d.ts.map +1 -0
- package/dist/diff/diff-renderer.js +263 -0
- package/dist/diff/diff-renderer.js.map +1 -0
- package/dist/diff/identity.d.ts +2 -0
- package/dist/diff/identity.d.ts.map +1 -0
- package/dist/diff/identity.js +29 -0
- package/dist/diff/identity.js.map +1 -0
- package/dist/diff/index.d.ts +8 -0
- package/dist/diff/index.d.ts.map +1 -0
- package/dist/diff/index.js +8 -0
- package/dist/diff/index.js.map +1 -0
- package/dist/diff/list-diff.d.ts +36 -0
- package/dist/diff/list-diff.d.ts.map +1 -0
- package/dist/diff/list-diff.js +185 -0
- package/dist/diff/list-diff.js.map +1 -0
- package/dist/diff/similarity.d.ts +4 -0
- package/dist/diff/similarity.d.ts.map +1 -0
- package/dist/diff/similarity.js +20 -0
- package/dist/diff/similarity.js.map +1 -0
- package/dist/diff/text-diff.d.ts +42 -0
- package/dist/diff/text-diff.d.ts.map +1 -0
- package/dist/diff/text-diff.js +134 -0
- package/dist/diff/text-diff.js.map +1 -0
- package/dist/entity-directory.d.ts +13 -0
- package/dist/entity-directory.d.ts.map +1 -0
- package/dist/entity-directory.js +35 -0
- package/dist/entity-directory.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +23 -0
- package/dist/errors.js.map +1 -0
- package/dist/gcr-reader.d.ts +57 -0
- package/dist/gcr-reader.d.ts.map +1 -0
- package/dist/gcr-reader.js +264 -0
- package/dist/gcr-reader.js.map +1 -0
- package/dist/gcr-writer.d.ts +23 -0
- package/dist/gcr-writer.d.ts.map +1 -0
- package/dist/gcr-writer.js +84 -0
- package/dist/gcr-writer.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/{src/index.ts → dist/index.js} +6 -66
- package/dist/index.js.map +1 -0
- package/dist/managed-concept-collection.d.ts +31 -0
- package/dist/managed-concept-collection.d.ts.map +1 -0
- package/dist/managed-concept-collection.js +87 -0
- package/dist/managed-concept-collection.js.map +1 -0
- package/dist/migration/hyperedge-migrator.d.ts +33 -0
- package/dist/migration/hyperedge-migrator.d.ts.map +1 -0
- package/dist/migration/hyperedge-migrator.js +70 -0
- package/dist/migration/hyperedge-migrator.js.map +1 -0
- package/dist/models/abstract-hyperedge.d.ts +35 -0
- package/dist/models/abstract-hyperedge.d.ts.map +1 -0
- package/dist/models/abstract-hyperedge.js +112 -0
- package/dist/models/abstract-hyperedge.js.map +1 -0
- package/dist/models/base.d.ts +58 -0
- package/dist/models/base.d.ts.map +1 -0
- package/dist/models/base.js +77 -0
- package/dist/models/base.js.map +1 -0
- package/dist/models/bibliography-data.d.ts +20 -0
- package/dist/models/bibliography-data.d.ts.map +1 -0
- package/dist/models/bibliography-data.js +43 -0
- package/dist/models/bibliography-data.js.map +1 -0
- package/dist/models/bibliography-entry.d.ts +19 -0
- package/dist/models/bibliography-entry.d.ts.map +1 -0
- package/dist/models/bibliography-entry.js +34 -0
- package/dist/models/bibliography-entry.js.map +1 -0
- package/dist/models/citation.d.ts +40 -0
- package/dist/models/citation.d.ts.map +1 -0
- package/dist/models/citation.js +82 -0
- package/dist/models/citation.js.map +1 -0
- package/dist/models/completeness.d.ts +9 -0
- package/dist/models/completeness.d.ts.map +1 -0
- package/{src/models/completeness.ts → dist/models/completeness.js} +4 -9
- package/dist/models/completeness.js.map +1 -0
- package/dist/models/concept-date.d.ts +20 -0
- package/dist/models/concept-date.d.ts.map +1 -0
- package/dist/models/concept-date.js +36 -0
- package/dist/models/concept-date.js.map +1 -0
- package/dist/models/concept-ref.d.ts +32 -0
- package/dist/models/concept-ref.d.ts.map +1 -0
- package/dist/models/concept-ref.js +53 -0
- package/dist/models/concept-ref.js.map +1 -0
- package/dist/models/concept-reference.d.ts +22 -0
- package/dist/models/concept-reference.d.ts.map +1 -0
- package/dist/models/concept-reference.js +39 -0
- package/dist/models/concept-reference.js.map +1 -0
- package/dist/models/concept-source.d.ts +53 -0
- package/dist/models/concept-source.d.ts.map +1 -0
- package/dist/models/concept-source.js +66 -0
- package/dist/models/concept-source.js.map +1 -0
- package/dist/models/concept-system-type.d.ts +6 -0
- package/dist/models/concept-system-type.d.ts.map +1 -0
- package/dist/models/concept-system-type.js +22 -0
- package/dist/models/concept-system-type.js.map +1 -0
- package/dist/models/concept-system.d.ts +44 -0
- package/dist/models/concept-system.d.ts.map +1 -0
- package/dist/models/concept-system.js +115 -0
- package/dist/models/concept-system.js.map +1 -0
- package/dist/models/concept-type.d.ts +7 -0
- package/dist/models/concept-type.d.ts.map +1 -0
- package/{src/models/concept-type.ts → dist/models/concept-type.js} +8 -19
- package/dist/models/concept-type.js.map +1 -0
- package/dist/models/concept.d.ts +94 -0
- package/dist/models/concept.d.ts.map +1 -0
- package/dist/models/concept.js +368 -0
- package/dist/models/concept.js.map +1 -0
- package/dist/models/dataset-color.d.ts +28 -0
- package/dist/models/dataset-color.d.ts.map +1 -0
- package/dist/models/dataset-color.js +74 -0
- package/dist/models/dataset-color.js.map +1 -0
- package/dist/models/definition-type.d.ts +9 -0
- package/dist/models/definition-type.d.ts.map +1 -0
- package/{src/models/definition-type.ts → dist/models/definition-type.js} +6 -15
- package/dist/models/definition-type.js.map +1 -0
- package/dist/models/designation-relationship.d.ts +17 -0
- package/dist/models/designation-relationship.d.ts.map +1 -0
- package/dist/models/designation-relationship.js +30 -0
- package/dist/models/designation-relationship.js.map +1 -0
- package/dist/models/designation.d.ts +110 -0
- package/dist/models/designation.d.ts.map +1 -0
- package/dist/models/designation.js +224 -0
- package/dist/models/designation.js.map +1 -0
- package/dist/models/detailed-definition.d.ts +34 -0
- package/dist/models/detailed-definition.d.ts.map +1 -0
- package/dist/models/detailed-definition.js +63 -0
- package/dist/models/detailed-definition.js.map +1 -0
- package/dist/models/enum.d.ts +21 -0
- package/dist/models/enum.d.ts.map +1 -0
- package/dist/models/enum.js +39 -0
- package/dist/models/enum.js.map +1 -0
- package/dist/models/equivalence-degree.d.ts +7 -0
- package/dist/models/equivalence-degree.d.ts.map +1 -0
- package/dist/models/equivalence-degree.js +20 -0
- package/dist/models/equivalence-degree.js.map +1 -0
- package/dist/models/figure.d.ts +40 -0
- package/dist/models/figure.d.ts.map +1 -0
- package/dist/models/figure.js +82 -0
- package/dist/models/figure.js.map +1 -0
- package/dist/models/formula.d.ts +15 -0
- package/dist/models/formula.d.ts.map +1 -0
- package/dist/models/formula.js +27 -0
- package/dist/models/formula.js.map +1 -0
- package/dist/models/gcr-metadata.d.ts +62 -0
- package/dist/models/gcr-metadata.d.ts.map +1 -0
- package/dist/models/gcr-metadata.js +102 -0
- package/dist/models/gcr-metadata.js.map +1 -0
- package/dist/models/gcr-statistics.d.ts +30 -0
- package/dist/models/gcr-statistics.d.ts.map +1 -0
- package/dist/models/gcr-statistics.js +53 -0
- package/dist/models/gcr-statistics.js.map +1 -0
- package/dist/models/generic-hyperedge.d.ts +32 -0
- package/dist/models/generic-hyperedge.d.ts.map +1 -0
- package/dist/models/generic-hyperedge.js +51 -0
- package/dist/models/generic-hyperedge.js.map +1 -0
- package/dist/models/generic-member.d.ts +14 -0
- package/dist/models/generic-member.d.ts.map +1 -0
- package/dist/models/generic-member.js +51 -0
- package/dist/models/generic-member.js.map +1 -0
- package/dist/models/grammar-info.d.ts +34 -0
- package/dist/models/grammar-info.d.ts.map +1 -0
- package/dist/models/grammar-info.js +59 -0
- package/dist/models/grammar-info.js.map +1 -0
- package/dist/models/hyperedge-colors.d.ts +19 -0
- package/dist/models/hyperedge-colors.d.ts.map +1 -0
- package/dist/models/hyperedge-colors.js +61 -0
- package/dist/models/hyperedge-colors.js.map +1 -0
- package/dist/models/hyperedge-index.d.ts +34 -0
- package/dist/models/hyperedge-index.d.ts.map +1 -0
- package/dist/models/hyperedge-index.js +85 -0
- package/dist/models/hyperedge-index.js.map +1 -0
- package/dist/models/hyperedge-member.d.ts +28 -0
- package/dist/models/hyperedge-member.d.ts.map +1 -0
- package/dist/models/hyperedge-member.js +92 -0
- package/dist/models/hyperedge-member.js.map +1 -0
- package/dist/models/hyperedge-registry.d.ts +47 -0
- package/dist/models/hyperedge-registry.d.ts.map +1 -0
- package/dist/models/hyperedge-registry.js +118 -0
- package/dist/models/hyperedge-registry.js.map +1 -0
- package/dist/models/index.d.ts +53 -0
- package/dist/models/index.d.ts.map +1 -0
- package/{src/models/index.ts → dist/models/index.js} +11 -63
- package/dist/models/index.js.map +1 -0
- package/dist/models/locality.d.ts +17 -0
- package/dist/models/locality.d.ts.map +1 -0
- package/dist/models/locality.js +26 -0
- package/dist/models/locality.js.map +1 -0
- package/dist/models/localized-concept.d.ts +102 -0
- package/dist/models/localized-concept.d.ts.map +1 -0
- package/dist/models/localized-concept.js +195 -0
- package/dist/models/localized-concept.js.map +1 -0
- package/dist/models/localized-string.d.ts +5 -0
- package/dist/models/localized-string.d.ts.map +1 -0
- package/dist/models/localized-string.js +20 -0
- package/dist/models/localized-string.js.map +1 -0
- package/dist/models/multiplicity.d.ts +42 -0
- package/dist/models/multiplicity.d.ts.map +1 -0
- package/dist/models/multiplicity.js +84 -0
- package/dist/models/multiplicity.js.map +1 -0
- package/dist/models/non-verb-rep.d.ts +20 -0
- package/dist/models/non-verb-rep.d.ts.map +1 -0
- package/dist/models/non-verb-rep.js +32 -0
- package/dist/models/non-verb-rep.js.map +1 -0
- package/dist/models/non-verbal-entity.d.ts +30 -0
- package/dist/models/non-verbal-entity.d.ts.map +1 -0
- package/dist/models/non-verbal-entity.js +48 -0
- package/dist/models/non-verbal-entity.js.map +1 -0
- package/dist/models/non-verbal-reference.d.ts +23 -0
- package/dist/models/non-verbal-reference.d.ts.map +1 -0
- package/dist/models/non-verbal-reference.js +44 -0
- package/dist/models/non-verbal-reference.js.map +1 -0
- package/dist/models/non-verbal-references.d.ts +12 -0
- package/dist/models/non-verbal-references.d.ts.map +1 -0
- package/dist/models/non-verbal-references.js +20 -0
- package/dist/models/non-verbal-references.js.map +1 -0
- package/dist/models/partitive-count.d.ts +10 -0
- package/dist/models/partitive-count.d.ts.map +1 -0
- package/{src/models/partitive-count.ts → dist/models/partitive-count.js} +5 -9
- package/dist/models/partitive-count.js.map +1 -0
- package/dist/models/partitive-enumeration.d.ts +5 -0
- package/dist/models/partitive-enumeration.d.ts.map +1 -0
- package/dist/models/partitive-enumeration.js +16 -0
- package/dist/models/partitive-enumeration.js.map +1 -0
- package/dist/models/partitive-hyperedge.d.ts +43 -0
- package/dist/models/partitive-hyperedge.d.ts.map +1 -0
- package/dist/models/partitive-hyperedge.js +63 -0
- package/dist/models/partitive-hyperedge.js.map +1 -0
- package/dist/models/partitive-member.d.ts +14 -0
- package/dist/models/partitive-member.d.ts.map +1 -0
- package/dist/models/partitive-member.js +44 -0
- package/dist/models/partitive-member.js.map +1 -0
- package/dist/models/partitive-presence.d.ts +9 -0
- package/dist/models/partitive-presence.d.ts.map +1 -0
- package/{src/models/partitive-presence.ts → dist/models/partitive-presence.js} +4 -8
- package/dist/models/partitive-presence.js.map +1 -0
- package/dist/models/plurality-marker.d.ts +5 -0
- package/dist/models/plurality-marker.d.ts.map +1 -0
- package/dist/models/plurality-marker.js +20 -0
- package/dist/models/plurality-marker.js.map +1 -0
- package/dist/models/pronunciation.d.ts +19 -0
- package/dist/models/pronunciation.d.ts.map +1 -0
- package/dist/models/pronunciation.js +34 -0
- package/dist/models/pronunciation.js.map +1 -0
- package/dist/models/register.d.ts +104 -0
- package/dist/models/register.d.ts.map +1 -0
- package/dist/models/register.js +297 -0
- package/dist/models/register.js.map +1 -0
- package/dist/models/registrable.d.ts +25 -0
- package/dist/models/registrable.d.ts.map +1 -0
- package/dist/models/registrable.js +23 -0
- package/dist/models/registrable.js.map +1 -0
- package/dist/models/related-concept.d.ts +33 -0
- package/dist/models/related-concept.d.ts.map +1 -0
- package/dist/models/related-concept.js +95 -0
- package/dist/models/related-concept.js.map +1 -0
- package/dist/models/relation-categories.d.ts +38 -0
- package/dist/models/relation-categories.d.ts.map +1 -0
- package/dist/models/relation-categories.js +135 -0
- package/dist/models/relation-categories.js.map +1 -0
- package/dist/models/relation-colors.d.ts +35 -0
- package/dist/models/relation-colors.d.ts.map +1 -0
- package/dist/models/relation-colors.js +68 -0
- package/dist/models/relation-colors.js.map +1 -0
- package/dist/models/relation-loader.d.ts +41 -0
- package/dist/models/relation-loader.d.ts.map +1 -0
- package/dist/models/relation-loader.js +101 -0
- package/dist/models/relation-loader.js.map +1 -0
- package/dist/models/section.d.ts +22 -0
- package/dist/models/section.d.ts.map +1 -0
- package/dist/models/section.js +47 -0
- package/dist/models/section.js.map +1 -0
- package/dist/models/sequential-hyperedge.d.ts +32 -0
- package/dist/models/sequential-hyperedge.d.ts.map +1 -0
- package/dist/models/sequential-hyperedge.js +49 -0
- package/dist/models/sequential-hyperedge.js.map +1 -0
- package/dist/models/sequential-member.d.ts +8 -0
- package/dist/models/sequential-member.d.ts.map +1 -0
- package/{src/models/sequential-member.ts → dist/models/sequential-member.js} +4 -9
- package/dist/models/sequential-member.js.map +1 -0
- package/dist/models/shared-non-verbal-entity.d.ts +16 -0
- package/dist/models/shared-non-verbal-entity.d.ts.map +1 -0
- package/dist/models/shared-non-verbal-entity.js +28 -0
- package/dist/models/shared-non-verbal-entity.js.map +1 -0
- package/dist/models/table.d.ts +15 -0
- package/dist/models/table.d.ts.map +1 -0
- package/dist/models/table.js +27 -0
- package/dist/models/table.js.map +1 -0
- package/dist/rdf/agents-emitter.d.ts +37 -0
- package/dist/rdf/agents-emitter.d.ts.map +1 -0
- package/dist/rdf/agents-emitter.js +107 -0
- package/dist/rdf/agents-emitter.js.map +1 -0
- package/dist/rdf/bibliography-emitter.d.ts +16 -0
- package/dist/rdf/bibliography-emitter.d.ts.map +1 -0
- package/dist/rdf/bibliography-emitter.js +84 -0
- package/dist/rdf/bibliography-emitter.js.map +1 -0
- package/dist/rdf/bnode-id.d.ts +2 -0
- package/dist/rdf/bnode-id.d.ts.map +1 -0
- package/dist/rdf/bnode-id.js +57 -0
- package/dist/rdf/bnode-id.js.map +1 -0
- package/dist/rdf/build-activity-emitter.d.ts +42 -0
- package/dist/rdf/build-activity-emitter.d.ts.map +1 -0
- package/dist/rdf/build-activity-emitter.js +103 -0
- package/dist/rdf/build-activity-emitter.js.map +1 -0
- package/dist/rdf/curie.d.ts +7 -0
- package/dist/rdf/curie.d.ts.map +1 -0
- package/dist/rdf/curie.js +45 -0
- package/dist/rdf/curie.js.map +1 -0
- package/dist/rdf/dataset-emitter.d.ts +37 -0
- package/dist/rdf/dataset-emitter.d.ts.map +1 -0
- package/dist/rdf/dataset-emitter.js +126 -0
- package/dist/rdf/dataset-emitter.js.map +1 -0
- package/dist/rdf/deterministic-id.d.ts +3 -0
- package/dist/rdf/deterministic-id.d.ts.map +1 -0
- package/dist/rdf/deterministic-id.js +68 -0
- package/dist/rdf/deterministic-id.js.map +1 -0
- package/dist/rdf/document-writer.d.ts +11 -0
- package/dist/rdf/document-writer.d.ts.map +1 -0
- package/dist/rdf/document-writer.js +77 -0
- package/dist/rdf/document-writer.js.map +1 -0
- package/dist/rdf/gloss-concept.d.ts +27 -0
- package/dist/rdf/gloss-concept.d.ts.map +1 -0
- package/dist/rdf/gloss-concept.js +95 -0
- package/dist/rdf/gloss-concept.js.map +1 -0
- package/dist/rdf/gloss-designation.d.ts +17 -0
- package/dist/rdf/gloss-designation.d.ts.map +1 -0
- package/dist/rdf/gloss-designation.js +46 -0
- package/dist/rdf/gloss-designation.js.map +1 -0
- package/dist/rdf/gloss-detailed-definition.d.ts +14 -0
- package/dist/rdf/gloss-detailed-definition.d.ts.map +1 -0
- package/dist/rdf/gloss-detailed-definition.js +53 -0
- package/dist/rdf/gloss-detailed-definition.js.map +1 -0
- package/dist/rdf/gloss-generic-hyperedge.d.ts +27 -0
- package/dist/rdf/gloss-generic-hyperedge.d.ts.map +1 -0
- package/{src/rdf/gloss-generic-hyperedge.ts → dist/rdf/gloss-generic-hyperedge.js} +36 -50
- package/dist/rdf/gloss-generic-hyperedge.js.map +1 -0
- package/dist/rdf/gloss-localized-concept.d.ts +24 -0
- package/dist/rdf/gloss-localized-concept.d.ts.map +1 -0
- package/dist/rdf/gloss-localized-concept.js +71 -0
- package/dist/rdf/gloss-localized-concept.js.map +1 -0
- package/dist/rdf/gloss-non-verbal-rep.d.ts +33 -0
- package/dist/rdf/gloss-non-verbal-rep.d.ts.map +1 -0
- package/dist/rdf/gloss-non-verbal-rep.js +163 -0
- package/dist/rdf/gloss-non-verbal-rep.js.map +1 -0
- package/dist/rdf/gloss-partitive-member.d.ts +8 -0
- package/dist/rdf/gloss-partitive-member.d.ts.map +1 -0
- package/{src/rdf/gloss-partitive-member.ts → dist/rdf/gloss-partitive-member.js} +23 -41
- package/dist/rdf/gloss-partitive-member.js.map +1 -0
- package/dist/rdf/gloss-partitive-relation.d.ts +26 -0
- package/dist/rdf/gloss-partitive-relation.d.ts.map +1 -0
- package/dist/rdf/gloss-partitive-relation.js +73 -0
- package/dist/rdf/gloss-partitive-relation.js.map +1 -0
- package/dist/rdf/gloss-source.d.ts +23 -0
- package/dist/rdf/gloss-source.d.ts.map +1 -0
- package/dist/rdf/gloss-source.js +52 -0
- package/dist/rdf/gloss-source.js.map +1 -0
- package/dist/rdf/group-emitter.d.ts +46 -0
- package/dist/rdf/group-emitter.d.ts.map +1 -0
- package/dist/rdf/group-emitter.js +107 -0
- package/dist/rdf/group-emitter.js.map +1 -0
- package/dist/rdf/image-variant-emitter.d.ts +12 -0
- package/dist/rdf/image-variant-emitter.d.ts.map +1 -0
- package/dist/rdf/image-variant-emitter.js +55 -0
- package/dist/rdf/image-variant-emitter.js.map +1 -0
- package/dist/rdf/index.d.ts +26 -0
- package/dist/rdf/index.d.ts.map +1 -0
- package/{src/rdf/index.ts → dist/rdf/index.js} +8 -37
- package/dist/rdf/index.js.map +1 -0
- package/dist/rdf/normalize-enum.d.ts +3 -0
- package/dist/rdf/normalize-enum.d.ts.map +1 -0
- package/{src/rdf/normalize-enum.ts → dist/rdf/normalize-enum.js} +11 -10
- package/dist/rdf/normalize-enum.js.map +1 -0
- package/dist/rdf/predicates.d.ts +277 -0
- package/dist/rdf/predicates.d.ts.map +1 -0
- package/dist/rdf/predicates.js +279 -0
- package/dist/rdf/predicates.js.map +1 -0
- package/dist/rdf/prefixes.d.ts +16 -0
- package/dist/rdf/prefixes.d.ts.map +1 -0
- package/{src/rdf/prefixes.ts → dist/rdf/prefixes.js} +10 -12
- package/dist/rdf/prefixes.js.map +1 -0
- package/dist/rdf/provenance-emitter.d.ts +28 -0
- package/dist/rdf/provenance-emitter.d.ts.map +1 -0
- package/dist/rdf/provenance-emitter.js +74 -0
- package/dist/rdf/provenance-emitter.js.map +1 -0
- package/dist/rdf/sections-builder.d.ts +17 -0
- package/dist/rdf/sections-builder.d.ts.map +1 -0
- package/dist/rdf/sections-builder.js +137 -0
- package/dist/rdf/sections-builder.js.map +1 -0
- package/dist/rdf/shacl-entry.d.ts +2 -0
- package/dist/rdf/shacl-entry.d.ts.map +1 -0
- package/{src/rdf/shacl-entry.ts → dist/rdf/shacl-entry.js} +1 -1
- package/dist/rdf/shacl-entry.js.map +1 -0
- package/dist/rdf/shacl.d.ts +10 -0
- package/dist/rdf/shacl.d.ts.map +1 -0
- package/{src/rdf/shacl.ts → dist/rdf/shacl.js} +38 -56
- package/dist/rdf/shacl.js.map +1 -0
- package/dist/rdf/terms.d.ts +10 -0
- package/dist/rdf/terms.d.ts.map +1 -0
- package/{src/rdf/terms.ts → dist/rdf/terms.js} +6 -3
- package/dist/rdf/terms.js.map +1 -0
- package/dist/rdf/version-emitter.d.ts +57 -0
- package/dist/rdf/version-emitter.d.ts.map +1 -0
- package/dist/rdf/version-emitter.js +68 -0
- package/dist/rdf/version-emitter.js.map +1 -0
- package/dist/rdf/vocabulary-emitter.d.ts +32 -0
- package/dist/rdf/vocabulary-emitter.d.ts.map +1 -0
- package/dist/rdf/vocabulary-emitter.js +46 -0
- package/dist/rdf/vocabulary-emitter.js.map +1 -0
- package/dist/rdf/write-turtle-sync.d.ts +7 -0
- package/dist/rdf/write-turtle-sync.d.ts.map +1 -0
- package/dist/rdf/write-turtle-sync.js +130 -0
- package/dist/rdf/write-turtle-sync.js.map +1 -0
- package/dist/reference-mention.d.ts +49 -0
- package/dist/reference-mention.d.ts.map +1 -0
- package/dist/reference-mention.js +98 -0
- package/dist/reference-mention.js.map +1 -0
- package/dist/reference-resolver.d.ts +52 -0
- package/dist/reference-resolver.d.ts.map +1 -0
- package/dist/reference-resolver.js +311 -0
- package/dist/reference-resolver.js.map +1 -0
- package/dist/render-classification.d.ts +19 -0
- package/dist/render-classification.d.ts.map +1 -0
- package/dist/render-classification.js +82 -0
- package/dist/render-classification.js.map +1 -0
- package/dist/sort.d.ts +5 -0
- package/dist/sort.d.ts.map +1 -0
- package/dist/sort.js +25 -0
- package/dist/sort.js.map +1 -0
- package/dist/transforms/concept-to-gloss.transform.d.ts +32 -0
- package/dist/transforms/concept-to-gloss.transform.d.ts.map +1 -0
- package/dist/transforms/concept-to-gloss.transform.js +60 -0
- package/dist/transforms/concept-to-gloss.transform.js.map +1 -0
- package/dist/transforms/index.d.ts +2 -0
- package/dist/transforms/index.d.ts.map +1 -0
- package/{src/transforms/index.ts → dist/transforms/index.js} +1 -0
- package/dist/transforms/index.js.map +1 -0
- package/dist/utils/assertions.d.ts +4 -0
- package/dist/utils/assertions.d.ts.map +1 -0
- package/dist/utils/assertions.js +17 -0
- package/dist/utils/assertions.js.map +1 -0
- package/dist/uuid.d.ts +4 -0
- package/dist/uuid.d.ts.map +1 -0
- package/dist/uuid.js +23 -0
- package/dist/uuid.js.map +1 -0
- package/dist/v1-reader.d.ts +8 -0
- package/dist/v1-reader.d.ts.map +1 -0
- package/dist/v1-reader.js +56 -0
- package/dist/v1-reader.js.map +1 -0
- package/dist/validators/asset-index.d.ts +23 -0
- package/dist/validators/asset-index.d.ts.map +1 -0
- package/dist/validators/asset-index.js +58 -0
- package/dist/validators/asset-index.js.map +1 -0
- package/dist/validators/binary-has-part-redundancy-rule.d.ts +8 -0
- package/dist/validators/binary-has-part-redundancy-rule.d.ts.map +1 -0
- package/dist/validators/binary-has-part-redundancy-rule.js +57 -0
- package/dist/validators/binary-has-part-redundancy-rule.js.map +1 -0
- package/dist/validators/concept-validator.d.ts +21 -0
- package/dist/validators/concept-validator.d.ts.map +1 -0
- package/dist/validators/concept-validator.js +76 -0
- package/dist/validators/concept-validator.js.map +1 -0
- package/dist/validators/delimiting-coherence-rule.d.ts +8 -0
- package/dist/validators/delimiting-coherence-rule.d.ts.map +1 -0
- package/dist/validators/delimiting-coherence-rule.js +72 -0
- package/dist/validators/delimiting-coherence-rule.js.map +1 -0
- package/dist/validators/external-concept-shape-rule.d.ts +8 -0
- package/dist/validators/external-concept-shape-rule.d.ts.map +1 -0
- package/dist/validators/external-concept-shape-rule.js +48 -0
- package/dist/validators/external-concept-shape-rule.js.map +1 -0
- package/dist/validators/gcr-validator.d.ts +11 -0
- package/dist/validators/gcr-validator.d.ts.map +1 -0
- package/dist/validators/gcr-validator.js +76 -0
- package/dist/validators/gcr-validator.js.map +1 -0
- package/dist/validators/hyperedge-coherence-rule.d.ts +9 -0
- package/dist/validators/hyperedge-coherence-rule.d.ts.map +1 -0
- package/dist/validators/hyperedge-coherence-rule.js +78 -0
- package/dist/validators/hyperedge-coherence-rule.js.map +1 -0
- package/dist/validators/index.d.ts +21 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/{src/validators/index.ts → dist/validators/index.js} +25 -51
- package/dist/validators/index.js.map +1 -0
- package/dist/validators/partitive-relation-coherence-rule.d.ts +2 -0
- package/dist/validators/partitive-relation-coherence-rule.d.ts.map +1 -0
- package/{src/validators/partitive-relation-coherence-rule.ts → dist/validators/partitive-relation-coherence-rule.js} +1 -1
- package/dist/validators/partitive-relation-coherence-rule.js.map +1 -0
- package/dist/validators/ref-keys.d.ts +8 -0
- package/dist/validators/ref-keys.d.ts.map +1 -0
- package/dist/validators/ref-keys.js +27 -0
- package/dist/validators/ref-keys.js.map +1 -0
- package/dist/validators/register-validator.d.ts +10 -0
- package/dist/validators/register-validator.d.ts.map +1 -0
- package/dist/validators/register-validator.js +18 -0
- package/dist/validators/register-validator.js.map +1 -0
- package/dist/validators/relationship-type-rule.d.ts +13 -0
- package/dist/validators/relationship-type-rule.d.ts.map +1 -0
- package/dist/validators/relationship-type-rule.js +34 -0
- package/dist/validators/relationship-type-rule.js.map +1 -0
- package/dist/validators/sourced-from-locality-rule.d.ts +8 -0
- package/dist/validators/sourced-from-locality-rule.d.ts.map +1 -0
- package/dist/validators/sourced-from-locality-rule.js +37 -0
- package/dist/validators/sourced-from-locality-rule.js.map +1 -0
- package/dist/validators/v3-rules.d.ts +60 -0
- package/dist/validators/v3-rules.d.ts.map +1 -0
- package/dist/validators/v3-rules.js +327 -0
- package/dist/validators/v3-rules.js.map +1 -0
- package/dist/validators/validation-error.d.ts +13 -0
- package/dist/validators/validation-error.d.ts.map +1 -0
- package/dist/validators/validation-error.js +17 -0
- package/dist/validators/validation-error.js.map +1 -0
- package/dist/validators/validation-result.d.ts +17 -0
- package/dist/validators/validation-result.d.ts.map +1 -0
- package/dist/validators/validation-result.js +47 -0
- package/dist/validators/validation-result.js.map +1 -0
- package/dist/validators/validation-rule.d.ts +10 -0
- package/dist/validators/validation-rule.d.ts.map +1 -0
- package/dist/validators/validation-rule.js +17 -0
- package/dist/validators/validation-rule.js.map +1 -0
- package/package.json +37 -42
- package/src/concept-collection.ts +0 -166
- package/src/concept-parser.ts +0 -229
- package/src/concept-reader.d.ts +0 -13
- package/src/concept-serializer.ts +0 -99
- package/src/concept-writer.d.ts +0 -7
- package/src/concept-writer.ts +0 -43
- package/src/diff/canonical-json.ts +0 -29
- package/src/diff/change.ts +0 -175
- package/src/diff/collection-diff.ts +0 -197
- package/src/diff/concept-diff.ts +0 -702
- package/src/diff/diff-patch.ts +0 -260
- package/src/diff/diff-renderer.ts +0 -293
- package/src/diff/identity.ts +0 -33
- package/src/diff/index.d.ts +0 -242
- package/src/diff/index.ts +0 -50
- package/src/diff/list-diff.ts +0 -231
- package/src/diff/similarity.ts +0 -20
- package/src/diff/text-diff.ts +0 -167
- package/src/entity-directory.ts +0 -43
- package/src/errors.d.ts +0 -11
- package/src/errors.ts +0 -24
- package/src/gcr-reader.d.ts +0 -65
- package/src/gcr-reader.ts +0 -487
- package/src/gcr-writer.d.ts +0 -22
- package/src/gcr-writer.ts +0 -97
- package/src/index.d.ts +0 -124
- package/src/managed-concept-collection.ts +0 -95
- package/src/migration/hyperedge-migrator.ts +0 -104
- package/src/models/abstract-hyperedge.ts +0 -164
- package/src/models/base.ts +0 -110
- package/src/models/bibliography-data.ts +0 -64
- package/src/models/bibliography-entry.ts +0 -40
- package/src/models/citation.ts +0 -98
- package/src/models/concept-date.ts +0 -48
- package/src/models/concept-ref.ts +0 -64
- package/src/models/concept-reference.ts +0 -50
- package/src/models/concept-source.ts +0 -96
- package/src/models/concept-system-type.ts +0 -39
- package/src/models/concept-system.ts +0 -152
- package/src/models/concept.ts +0 -499
- package/src/models/dataset-color.ts +0 -88
- package/src/models/designation-relationship.ts +0 -39
- package/src/models/designation.ts +0 -297
- package/src/models/detailed-definition.ts +0 -92
- package/src/models/enum.ts +0 -60
- package/src/models/equivalence-degree.ts +0 -34
- package/src/models/figure.ts +0 -110
- package/src/models/formula.ts +0 -36
- package/src/models/gcr-metadata.ts +0 -118
- package/src/models/gcr-statistics.ts +0 -76
- package/src/models/generic-hyperedge.ts +0 -72
- package/src/models/generic-member.ts +0 -80
- package/src/models/grammar-info.ts +0 -78
- package/src/models/hyperedge-colors.ts +0 -87
- package/src/models/hyperedge-index.ts +0 -101
- package/src/models/hyperedge-member.ts +0 -121
- package/src/models/hyperedge-registry.ts +0 -145
- package/src/models/index.d.ts +0 -586
- package/src/models/locality.ts +0 -34
- package/src/models/localized-concept.ts +0 -284
- package/src/models/localized-string.ts +0 -32
- package/src/models/multiplicity.ts +0 -134
- package/src/models/non-verb-rep.ts +0 -48
- package/src/models/non-verbal-entity.ts +0 -65
- package/src/models/non-verbal-reference.ts +0 -73
- package/src/models/non-verbal-references.ts +0 -29
- package/src/models/partitive-enumeration.ts +0 -27
- package/src/models/partitive-hyperedge.ts +0 -90
- package/src/models/partitive-member.ts +0 -56
- package/src/models/plurality-marker.ts +0 -31
- package/src/models/pronunciation.ts +0 -40
- package/src/models/register.ts +0 -315
- package/src/models/registrable.ts +0 -48
- package/src/models/related-concept.ts +0 -117
- package/src/models/relation-categories.ts +0 -167
- package/src/models/relation-colors.ts +0 -90
- package/src/models/relation-loader.ts +0 -115
- package/src/models/section.ts +0 -61
- package/src/models/sequential-hyperedge.ts +0 -70
- package/src/models/shared-non-verbal-entity.ts +0 -36
- package/src/models/table.ts +0 -36
- package/src/rdf/agents-emitter.ts +0 -134
- package/src/rdf/bibliography-emitter.ts +0 -126
- package/src/rdf/bnode-id.ts +0 -55
- package/src/rdf/build-activity-emitter.ts +0 -129
- package/src/rdf/curie.ts +0 -47
- package/src/rdf/dataset-emitter.ts +0 -170
- package/src/rdf/deterministic-id.ts +0 -69
- package/src/rdf/document-writer.ts +0 -87
- package/src/rdf/gloss-concept.ts +0 -115
- package/src/rdf/gloss-designation.ts +0 -72
- package/src/rdf/gloss-detailed-definition.ts +0 -69
- package/src/rdf/gloss-localized-concept.ts +0 -79
- package/src/rdf/gloss-non-verbal-rep.ts +0 -192
- package/src/rdf/gloss-partitive-relation.ts +0 -89
- package/src/rdf/gloss-source.ts +0 -56
- package/src/rdf/group-emitter.ts +0 -133
- package/src/rdf/image-variant-emitter.ts +0 -80
- package/src/rdf/index.d.ts +0 -371
- package/src/rdf/predicates.d.ts +0 -527
- package/src/rdf/predicates.ts +0 -287
- package/src/rdf/provenance-emitter.ts +0 -87
- package/src/rdf/sections-builder.ts +0 -178
- package/src/rdf/shacl-entry.d.ts +0 -6
- package/src/rdf/version-emitter.ts +0 -97
- package/src/rdf/vocabulary-emitter.ts +0 -67
- package/src/rdf/write-turtle-sync.ts +0 -167
- package/src/reference-mention.ts +0 -114
- package/src/reference-resolver.ts +0 -331
- package/src/render-classification.ts +0 -76
- package/src/sort.ts +0 -22
- package/src/transforms/concept-to-gloss.transform.ts +0 -81
- package/src/transforms/index.d.ts +0 -26
- package/src/uuid.ts +0 -32
- package/src/v1-reader.ts +0 -64
- package/src/validators/asset-index.ts +0 -67
- package/src/validators/binary-has-part-redundancy-rule.ts +0 -67
- package/src/validators/concept-validator.ts +0 -93
- package/src/validators/delimiting-coherence-rule.ts +0 -105
- package/src/validators/external-concept-shape-rule.ts +0 -60
- package/src/validators/gcr-validator.ts +0 -75
- package/src/validators/hyperedge-coherence-rule.ts +0 -98
- package/src/validators/index.d.ts +0 -43
- package/src/validators/ref-keys.ts +0 -31
- package/src/validators/register-validator.ts +0 -18
- package/src/validators/relationship-type-rule.ts +0 -39
- package/src/validators/sourced-from-locality-rule.ts +0 -53
- package/src/validators/v3-rules.ts +0 -378
- package/src/validators/validation-error.ts +0 -19
- package/src/validators/validation-result.ts +0 -52
- package/src/validators/validation-rule.ts +0 -21
package/src/rdf/predicates.ts
DELETED
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/gen-predicates.mjs. Do not edit.
|
|
2
|
-
// Source: data/concept-model/glossarist.context.jsonld
|
|
3
|
-
// Regenerate via `npm run gen:predicates`.
|
|
4
|
-
export const PRED = {
|
|
5
|
-
"gloss": {
|
|
6
|
-
"Concept": "https://www.glossarist.org/ontologies/Concept",
|
|
7
|
-
"ConceptCollection": "https://www.glossarist.org/ontologies/ConceptCollection",
|
|
8
|
-
"LocalizedConcept": "https://www.glossarist.org/ontologies/LocalizedConcept",
|
|
9
|
-
"Designation": "https://www.glossarist.org/ontologies/Designation",
|
|
10
|
-
"Expression": "https://www.glossarist.org/ontologies/Expression",
|
|
11
|
-
"Abbreviation": "https://www.glossarist.org/ontologies/Abbreviation",
|
|
12
|
-
"Symbol": "https://www.glossarist.org/ontologies/Symbol",
|
|
13
|
-
"LetterSymbol": "https://www.glossarist.org/ontologies/LetterSymbol",
|
|
14
|
-
"GraphicalSymbol": "https://www.glossarist.org/ontologies/GraphicalSymbol",
|
|
15
|
-
"Prefix": "https://www.glossarist.org/ontologies/Prefix",
|
|
16
|
-
"Suffix": "https://www.glossarist.org/ontologies/Suffix",
|
|
17
|
-
"Pronunciation": "https://www.glossarist.org/ontologies/Pronunciation",
|
|
18
|
-
"GrammarInfo": "https://www.glossarist.org/ontologies/GrammarInfo",
|
|
19
|
-
"DetailedDefinition": "https://www.glossarist.org/ontologies/DetailedDefinition",
|
|
20
|
-
"ConceptSource": "https://www.glossarist.org/ontologies/ConceptSource",
|
|
21
|
-
"Citation": "https://www.glossarist.org/ontologies/Citation",
|
|
22
|
-
"CitationRef": "https://www.glossarist.org/ontologies/CitationRef",
|
|
23
|
-
"ConceptRef": "https://www.glossarist.org/ontologies/ConceptRef",
|
|
24
|
-
"Reference": "https://www.glossarist.org/ontologies/Reference",
|
|
25
|
-
"RelatedConcept": "https://www.glossarist.org/ontologies/RelatedConcept",
|
|
26
|
-
"PartitiveHyperedge": "https://www.glossarist.org/ontologies/PartitiveHyperedge",
|
|
27
|
-
"PartitiveEnumeration": "https://www.glossarist.org/ontologies/PartitiveEnumeration",
|
|
28
|
-
"PluralityMarker": "https://www.glossarist.org/ontologies/PluralityMarker",
|
|
29
|
-
"DesignationRelationship": "https://www.glossarist.org/ontologies/DesignationRelationship",
|
|
30
|
-
"ConceptDate": "https://www.glossarist.org/ontologies/ConceptDate",
|
|
31
|
-
"NonVerbalRepresentation": "https://www.glossarist.org/ontologies/NonVerbalRepresentation",
|
|
32
|
-
"NonVerbalEntity": "https://www.glossarist.org/ontologies/NonVerbalEntity",
|
|
33
|
-
"SharedNonVerbalEntity": "https://www.glossarist.org/ontologies/SharedNonVerbalEntity",
|
|
34
|
-
"Figure": "https://www.glossarist.org/ontologies/Figure",
|
|
35
|
-
"Table": "https://www.glossarist.org/ontologies/Table",
|
|
36
|
-
"Formula": "https://www.glossarist.org/ontologies/Formula",
|
|
37
|
-
"FigureImage": "https://www.glossarist.org/ontologies/FigureImage",
|
|
38
|
-
"CustomLocality": "https://www.glossarist.org/ontologies/CustomLocality",
|
|
39
|
-
"Locality": "https://www.glossarist.org/ontologies/Locality",
|
|
40
|
-
"DatasetRegister": "https://www.glossarist.org/ontologies/DatasetRegister",
|
|
41
|
-
"Section": "https://www.glossarist.org/ontologies/Section",
|
|
42
|
-
"identifier": "https://www.glossarist.org/ontologies/identifier",
|
|
43
|
-
"uri": "https://www.glossarist.org/ontologies/uri",
|
|
44
|
-
"hasLocalization": "https://www.glossarist.org/ontologies/hasLocalization",
|
|
45
|
-
"isLocalizationOf": "https://www.glossarist.org/ontologies/isLocalizationOf",
|
|
46
|
-
"hasStatus": "https://www.glossarist.org/ontologies/hasStatus",
|
|
47
|
-
"hasDomain": "https://www.glossarist.org/ontologies/hasDomain",
|
|
48
|
-
"tag": "https://www.glossarist.org/ontologies/tag",
|
|
49
|
-
"hasRelatedConcept": "https://www.glossarist.org/ontologies/hasRelatedConcept",
|
|
50
|
-
"hasDate": "https://www.glossarist.org/ontologies/hasDate",
|
|
51
|
-
"hasSource": "https://www.glossarist.org/ontologies/hasSource",
|
|
52
|
-
"hasEntryStatus": "https://www.glossarist.org/ontologies/hasEntryStatus",
|
|
53
|
-
"hasDesignation": "https://www.glossarist.org/ontologies/hasDesignation",
|
|
54
|
-
"hasDefinition": "https://www.glossarist.org/ontologies/hasDefinition",
|
|
55
|
-
"hasNote": "https://www.glossarist.org/ontologies/hasNote",
|
|
56
|
-
"hasExample": "https://www.glossarist.org/ontologies/hasExample",
|
|
57
|
-
"hasScopedExample": "https://www.glossarist.org/ontologies/hasScopedExample",
|
|
58
|
-
"hasAnnotation": "https://www.glossarist.org/ontologies/hasAnnotation",
|
|
59
|
-
"hasNonVerbalRep": "https://www.glossarist.org/ontologies/hasNonVerbalRep",
|
|
60
|
-
"domain": "https://www.glossarist.org/ontologies/domain",
|
|
61
|
-
"release": "https://www.glossarist.org/ontologies/release",
|
|
62
|
-
"lineageSimilarity": "https://www.glossarist.org/ontologies/lineageSimilarity",
|
|
63
|
-
"reviewType": "https://www.glossarist.org/ontologies/reviewType",
|
|
64
|
-
"normativeStatus": "https://www.glossarist.org/ontologies/normativeStatus",
|
|
65
|
-
"hasPronunciation": "https://www.glossarist.org/ontologies/hasPronunciation",
|
|
66
|
-
"hasTermType": "https://www.glossarist.org/ontologies/hasTermType",
|
|
67
|
-
"classification": "https://www.glossarist.org/ontologies/classification",
|
|
68
|
-
"hasReference": "https://www.glossarist.org/ontologies/hasReference",
|
|
69
|
-
"hasGrammarInfo": "https://www.glossarist.org/ontologies/hasGrammarInfo",
|
|
70
|
-
"geographicalArea": "https://www.glossarist.org/ontologies/geographicalArea",
|
|
71
|
-
"isInternational": "https://www.glossarist.org/ontologies/isInternational",
|
|
72
|
-
"isAbsent": "https://www.glossarist.org/ontologies/isAbsent",
|
|
73
|
-
"register": "https://www.glossarist.org/ontologies/register",
|
|
74
|
-
"prefix": "https://www.glossarist.org/ontologies/prefix",
|
|
75
|
-
"usageInfo": "https://www.glossarist.org/ontologies/usageInfo",
|
|
76
|
-
"fieldOfApplication": "https://www.glossarist.org/ontologies/fieldOfApplication",
|
|
77
|
-
"isAcronym": "https://www.glossarist.org/ontologies/isAcronym",
|
|
78
|
-
"isInitialism": "https://www.glossarist.org/ontologies/isInitialism",
|
|
79
|
-
"isTruncation": "https://www.glossarist.org/ontologies/isTruncation",
|
|
80
|
-
"text": "https://www.glossarist.org/ontologies/text",
|
|
81
|
-
"image": "https://www.glossarist.org/ontologies/image",
|
|
82
|
-
"caption": "https://www.glossarist.org/ontologies/caption",
|
|
83
|
-
"altText": "https://www.glossarist.org/ontologies/altText",
|
|
84
|
-
"description": "https://www.glossarist.org/ontologies/description",
|
|
85
|
-
"expression": "https://www.glossarist.org/ontologies/expression",
|
|
86
|
-
"latexForm": "https://www.glossarist.org/ontologies/latexForm",
|
|
87
|
-
"content": "https://www.glossarist.org/ontologies/content",
|
|
88
|
-
"hasSubfigure": "https://www.glossarist.org/ontologies/hasSubfigure",
|
|
89
|
-
"src": "https://www.glossarist.org/ontologies/src",
|
|
90
|
-
"format": "https://www.glossarist.org/ontologies/format",
|
|
91
|
-
"role": "https://www.glossarist.org/ontologies/role",
|
|
92
|
-
"pronunciationContent": "https://www.glossarist.org/ontologies/pronunciationContent",
|
|
93
|
-
"pronunciationLanguage": "https://www.glossarist.org/ontologies/pronunciationLanguage",
|
|
94
|
-
"pronunciationScript": "https://www.glossarist.org/ontologies/pronunciationScript",
|
|
95
|
-
"pronunciationCountry": "https://www.glossarist.org/ontologies/pronunciationCountry",
|
|
96
|
-
"pronunciationSystem": "https://www.glossarist.org/ontologies/pronunciationSystem",
|
|
97
|
-
"relationshipType": "https://www.glossarist.org/ontologies/relationshipType",
|
|
98
|
-
"relationshipContent": "https://www.glossarist.org/ontologies/relationshipContent",
|
|
99
|
-
"relationshipRef": "https://www.glossarist.org/ontologies/relationshipRef",
|
|
100
|
-
"relatedConceptBroader": "https://www.glossarist.org/ontologies/relatedConceptBroader",
|
|
101
|
-
"relatedConceptNarrower": "https://www.glossarist.org/ontologies/relatedConceptNarrower",
|
|
102
|
-
"hasPartitiveHyperedge": "https://www.glossarist.org/ontologies/hasPartitiveHyperedge",
|
|
103
|
-
"comprehensive": "https://www.glossarist.org/ontologies/comprehensive",
|
|
104
|
-
"hasPart": "https://www.glossarist.org/ontologies/hasPart",
|
|
105
|
-
"enumeration": "https://www.glossarist.org/ontologies/enumeration",
|
|
106
|
-
"hasPluralityMarker": "https://www.glossarist.org/ontologies/hasPluralityMarker",
|
|
107
|
-
"hyperedgeContent": "https://www.glossarist.org/ontologies/hyperedgeContent",
|
|
108
|
-
"PartitiveRelation": "https://www.glossarist.org/ontologies/PartitiveRelation",
|
|
109
|
-
"PartitiveMember": "https://www.glossarist.org/ontologies/PartitiveMember",
|
|
110
|
-
"hasPartitiveRelation": "https://www.glossarist.org/ontologies/hasPartitiveRelation",
|
|
111
|
-
"hasPartitive": "https://www.glossarist.org/ontologies/hasPartitive",
|
|
112
|
-
"completeness": "https://www.glossarist.org/ontologies/completeness",
|
|
113
|
-
"presence": "https://www.glossarist.org/ontologies/presence",
|
|
114
|
-
"count": "https://www.glossarist.org/ontologies/count",
|
|
115
|
-
"multiplicity": "https://www.glossarist.org/ontologies/multiplicity",
|
|
116
|
-
"isDelimiting": "https://www.glossarist.org/ontologies/isDelimiting",
|
|
117
|
-
"criterion": "https://www.glossarist.org/ontologies/criterion",
|
|
118
|
-
"provides": "https://www.glossarist.org/ontologies/provides",
|
|
119
|
-
"providedBy": "https://www.glossarist.org/ontologies/providedBy",
|
|
120
|
-
"refType": "https://www.glossarist.org/ontologies/refType",
|
|
121
|
-
"source": "https://www.glossarist.org/ontologies/source",
|
|
122
|
-
"urn": "https://www.glossarist.org/ontologies/urn",
|
|
123
|
-
"term": "https://www.glossarist.org/ontologies/term",
|
|
124
|
-
"refId": "https://www.glossarist.org/ontologies/refId",
|
|
125
|
-
"refVersion": "https://www.glossarist.org/ontologies/refVersion",
|
|
126
|
-
"refLink": "https://www.glossarist.org/ontologies/refLink",
|
|
127
|
-
"sourceType": "https://www.glossarist.org/ontologies/sourceType",
|
|
128
|
-
"sourceStatus": "https://www.glossarist.org/ontologies/sourceStatus",
|
|
129
|
-
"sourceId": "https://www.glossarist.org/ontologies/sourceId",
|
|
130
|
-
"sourceOrigin": "https://www.glossarist.org/ontologies/sourceOrigin",
|
|
131
|
-
"modification": "https://www.glossarist.org/ontologies/modification",
|
|
132
|
-
"sourcedFrom": "https://www.glossarist.org/ontologies/sourcedFrom",
|
|
133
|
-
"hasCitationRef": "https://www.glossarist.org/ontologies/hasCitationRef",
|
|
134
|
-
"hasCitationLocality": "https://www.glossarist.org/ontologies/hasCitationLocality",
|
|
135
|
-
"citationOriginal": "https://www.glossarist.org/ontologies/citationOriginal",
|
|
136
|
-
"hasCustomLocality": "https://www.glossarist.org/ontologies/hasCustomLocality",
|
|
137
|
-
"citationRefSource": "https://www.glossarist.org/ontologies/citationRefSource",
|
|
138
|
-
"citationRefId": "https://www.glossarist.org/ontologies/citationRefId",
|
|
139
|
-
"citationRefVersion": "https://www.glossarist.org/ontologies/citationRefVersion",
|
|
140
|
-
"conceptRefSource": "https://www.glossarist.org/ontologies/conceptRefSource",
|
|
141
|
-
"conceptRefId": "https://www.glossarist.org/ontologies/conceptRefId",
|
|
142
|
-
"conceptRefText": "https://www.glossarist.org/ontologies/conceptRefText",
|
|
143
|
-
"customLocalityName": "https://www.glossarist.org/ontologies/customLocalityName",
|
|
144
|
-
"customLocalityValue": "https://www.glossarist.org/ontologies/customLocalityValue",
|
|
145
|
-
"citationLink": "https://www.glossarist.org/ontologies/citationLink",
|
|
146
|
-
"hasLocality": "https://www.glossarist.org/ontologies/hasLocality",
|
|
147
|
-
"dateValue": "https://www.glossarist.org/ontologies/dateValue",
|
|
148
|
-
"dateType": "https://www.glossarist.org/ontologies/dateType",
|
|
149
|
-
"eventDescription": "https://www.glossarist.org/ontologies/eventDescription",
|
|
150
|
-
"representationType": "https://www.glossarist.org/ontologies/representationType",
|
|
151
|
-
"representationRef": "https://www.glossarist.org/ontologies/representationRef",
|
|
152
|
-
"representationText": "https://www.glossarist.org/ontologies/representationText",
|
|
153
|
-
"localityType": "https://www.glossarist.org/ontologies/localityType",
|
|
154
|
-
"referenceFrom": "https://www.glossarist.org/ontologies/referenceFrom",
|
|
155
|
-
"referenceTo": "https://www.glossarist.org/ontologies/referenceTo",
|
|
156
|
-
"gender": "https://www.glossarist.org/ontologies/gender",
|
|
157
|
-
"number": "https://www.glossarist.org/ontologies/number",
|
|
158
|
-
"isNoun": "https://www.glossarist.org/ontologies/isNoun",
|
|
159
|
-
"isVerb": "https://www.glossarist.org/ontologies/isVerb",
|
|
160
|
-
"isAdjective": "https://www.glossarist.org/ontologies/isAdjective",
|
|
161
|
-
"isAdverb": "https://www.glossarist.org/ontologies/isAdverb",
|
|
162
|
-
"isPreposition": "https://www.glossarist.org/ontologies/isPreposition",
|
|
163
|
-
"isParticiple": "https://www.glossarist.org/ontologies/isParticiple",
|
|
164
|
-
"partOfSpeech": "https://www.glossarist.org/ontologies/partOfSpeech",
|
|
165
|
-
"script": "https://www.glossarist.org/ontologies/script",
|
|
166
|
-
"conversionSystem": "https://www.glossarist.org/ontologies/conversionSystem",
|
|
167
|
-
"deprecates": "https://www.glossarist.org/ontologies/deprecates",
|
|
168
|
-
"deprecatedBy": "https://www.glossarist.org/ontologies/deprecatedBy",
|
|
169
|
-
"supersedes": "https://www.glossarist.org/ontologies/supersedes",
|
|
170
|
-
"supersededBy": "https://www.glossarist.org/ontologies/supersededBy",
|
|
171
|
-
"compares": "https://www.glossarist.org/ontologies/compares",
|
|
172
|
-
"contrasts": "https://www.glossarist.org/ontologies/contrasts",
|
|
173
|
-
"sequentiallyRelated": "https://www.glossarist.org/ontologies/sequentiallyRelated",
|
|
174
|
-
"spatiallyRelated": "https://www.glossarist.org/ontologies/spatiallyRelated",
|
|
175
|
-
"temporallyRelated": "https://www.glossarist.org/ontologies/temporallyRelated",
|
|
176
|
-
"hasHomograph": "https://www.glossarist.org/ontologies/hasHomograph",
|
|
177
|
-
"hasFalseFriend": "https://www.glossarist.org/ontologies/hasFalseFriend",
|
|
178
|
-
"abbreviatedFormFor": "https://www.glossarist.org/ontologies/abbreviatedFormFor",
|
|
179
|
-
"shortFormFor": "https://www.glossarist.org/ontologies/shortFormFor",
|
|
180
|
-
"hasDesignationRelationship": "https://www.glossarist.org/ontologies/hasDesignationRelationship",
|
|
181
|
-
"designationRelationshipType": "https://www.glossarist.org/ontologies/designationRelationshipType",
|
|
182
|
-
"designationRelationshipContent": "https://www.glossarist.org/ontologies/designationRelationshipContent",
|
|
183
|
-
"relationshipTarget": "https://www.glossarist.org/ontologies/relationshipTarget",
|
|
184
|
-
"language": "https://www.glossarist.org/ontologies/language",
|
|
185
|
-
"datasetId": "https://www.glossarist.org/ontologies/datasetId",
|
|
186
|
-
"datasetRef": "https://www.glossarist.org/ontologies/datasetRef",
|
|
187
|
-
"datasetYear": "https://www.glossarist.org/ontologies/datasetYear",
|
|
188
|
-
"datasetUrn": "https://www.glossarist.org/ontologies/datasetUrn",
|
|
189
|
-
"datasetUrnAlias": "https://www.glossarist.org/ontologies/datasetUrnAlias",
|
|
190
|
-
"datasetRefAlias": "https://www.glossarist.org/ontologies/datasetRefAlias",
|
|
191
|
-
"datasetStatus": "https://www.glossarist.org/ontologies/datasetStatus",
|
|
192
|
-
"supersedesDataset": "https://www.glossarist.org/ontologies/supersedesDataset",
|
|
193
|
-
"owner": "https://www.glossarist.org/ontologies/owner",
|
|
194
|
-
"sourceRepo": "https://www.glossarist.org/ontologies/sourceRepo",
|
|
195
|
-
"datasetLanguage": "https://www.glossarist.org/ontologies/datasetLanguage",
|
|
196
|
-
"languageOrder": "https://www.glossarist.org/ontologies/languageOrder",
|
|
197
|
-
"hasSection": "https://www.glossarist.org/ontologies/hasSection",
|
|
198
|
-
"hasDefaultOrdering": "https://www.glossarist.org/ontologies/hasDefaultOrdering",
|
|
199
|
-
"datasetDescription": "https://www.glossarist.org/ontologies/datasetDescription",
|
|
200
|
-
"aboutPath": "https://www.glossarist.org/ontologies/aboutPath",
|
|
201
|
-
"logo": "https://www.glossarist.org/ontologies/logo",
|
|
202
|
-
"sectionId": "https://www.glossarist.org/ontologies/sectionId",
|
|
203
|
-
"sectionName": "https://www.glossarist.org/ontologies/sectionName",
|
|
204
|
-
"hasChildSection": "https://www.glossarist.org/ontologies/hasChildSection",
|
|
205
|
-
"hasParentSection": "https://www.glossarist.org/ontologies/hasParentSection",
|
|
206
|
-
"sectionOrdering": "https://www.glossarist.org/ontologies/sectionOrdering",
|
|
207
|
-
"$ns": "https://www.glossarist.org/ontologies/",
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
"skos": {
|
|
211
|
-
"prefLabel": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
|
212
|
-
"altLabel": "http://www.w3.org/2004/02/skos/core#altLabel",
|
|
213
|
-
"hiddenLabel": "http://www.w3.org/2004/02/skos/core#hiddenLabel",
|
|
214
|
-
"definition": "http://www.w3.org/2004/02/skos/core#definition",
|
|
215
|
-
"scopeNote": "http://www.w3.org/2004/02/skos/core#scopeNote",
|
|
216
|
-
"note": "http://www.w3.org/2004/02/skos/core#note",
|
|
217
|
-
"example": "http://www.w3.org/2004/02/skos/core#example",
|
|
218
|
-
"notation": "http://www.w3.org/2004/02/skos/core#notation",
|
|
219
|
-
"inScheme": "http://www.w3.org/2004/02/skos/core#inScheme",
|
|
220
|
-
"hasTopConcept": "http://www.w3.org/2004/02/skos/core#hasTopConcept",
|
|
221
|
-
"broader": "http://www.w3.org/2004/02/skos/core#broader",
|
|
222
|
-
"narrower": "http://www.w3.org/2004/02/skos/core#narrower",
|
|
223
|
-
"related": "http://www.w3.org/2004/02/skos/core#related",
|
|
224
|
-
"exactMatch": "http://www.w3.org/2004/02/skos/core#exactMatch",
|
|
225
|
-
"closeMatch": "http://www.w3.org/2004/02/skos/core#closeMatch",
|
|
226
|
-
"broadMatch": "http://www.w3.org/2004/02/skos/core#broadMatch",
|
|
227
|
-
"narrowMatch": "http://www.w3.org/2004/02/skos/core#narrowMatch",
|
|
228
|
-
"relatedMatch": "http://www.w3.org/2004/02/skos/core#relatedMatch",
|
|
229
|
-
"$ns": "http://www.w3.org/2004/02/skos/core#",
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
"skosxl": {
|
|
233
|
-
"literalForm": "http://www.w3.org/2008/05/skos-xl#literalForm",
|
|
234
|
-
"labelRelation": "http://www.w3.org/2008/05/skos-xl#labelRelation",
|
|
235
|
-
"$ns": "http://www.w3.org/2008/05/skos-xl#",
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
"iso-thes": {
|
|
239
|
-
"broaderGeneric": "http://purl.org/iso25964/skos-thes#broaderGeneric",
|
|
240
|
-
"narrowerGeneric": "http://purl.org/iso25964/skos-thes#narrowerGeneric",
|
|
241
|
-
"broaderPartitive": "http://purl.org/iso25964/skos-thes#broaderPartitive",
|
|
242
|
-
"narrowerPartitive": "http://purl.org/iso25964/skos-thes#narrowerPartitive",
|
|
243
|
-
"broaderInstantial": "http://purl.org/iso25964/skos-thes#broaderInstantial",
|
|
244
|
-
"narrowerInstantial": "http://purl.org/iso25964/skos-thes#narrowerInstantial",
|
|
245
|
-
"$ns": "http://purl.org/iso25964/skos-thes#",
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
"dcterms": {
|
|
249
|
-
"bibliographicCitation": "http://purl.org/dc/terms/bibliographicCitation",
|
|
250
|
-
"$ns": "http://purl.org/dc/terms/",
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
"prov": {
|
|
254
|
-
"wasDerivedFrom": "http://www.w3.org/ns/prov#wasDerivedFrom",
|
|
255
|
-
"hadDerivation": "http://www.w3.org/ns/prov#hadDerivation",
|
|
256
|
-
"qualifiedDerivation": "http://www.w3.org/ns/prov#qualifiedDerivation",
|
|
257
|
-
"$ns": "http://www.w3.org/ns/prov#",
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
"rdfs": {
|
|
261
|
-
"label": "http://www.w3.org/2000/01/rdf-schema#label",
|
|
262
|
-
"comment": "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
263
|
-
"seeAlso": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
|
|
264
|
-
"subClassOf": "http://www.w3.org/2000/01/rdf-schema#subClassOf",
|
|
265
|
-
"$ns": "http://www.w3.org/2000/01/rdf-schema#",
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
"rdf": {
|
|
269
|
-
"value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#value",
|
|
270
|
-
"$ns": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
export const PREFIXES = {
|
|
276
|
-
"gloss": "https://www.glossarist.org/ontologies/",
|
|
277
|
-
"skos": "http://www.w3.org/2004/02/skos/core#",
|
|
278
|
-
"skosxl": "http://www.w3.org/2008/05/skos-xl#",
|
|
279
|
-
"iso-thes": "http://purl.org/iso25964/skos-thes#",
|
|
280
|
-
"dcterms": "http://purl.org/dc/terms/",
|
|
281
|
-
"prov": "http://www.w3.org/ns/prov#",
|
|
282
|
-
"owl": "http://www.w3.org/2002/07/owl#",
|
|
283
|
-
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
|
284
|
-
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
|
|
285
|
-
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
286
|
-
"vann": "http://purl.org/vocab/vann/",
|
|
287
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// Provenance emitter — emits prov:wasGeneratedBy + prov:Activity quads
|
|
2
|
-
// for any resource that needs build/view-time provenance.
|
|
3
|
-
//
|
|
4
|
-
// Replaces concept-browser's src/components/concept-rdf/provenance.ts
|
|
5
|
-
// (runtime provenance at view-time). Same output shape, but operates
|
|
6
|
-
// on standard RDF/JS Quad[] (no RdfGraph abstraction).
|
|
7
|
-
|
|
8
|
-
import { namedNode, blankNode, literal, quad } from './terms.js';
|
|
9
|
-
import { PREFIXES } from './prefixes.js';
|
|
10
|
-
import { RDF_TYPE, RDFS_LABEL } from './curie.js';
|
|
11
|
-
import { deterministicBnodeId } from './bnode-id.js';
|
|
12
|
-
|
|
13
|
-
const PROV_NS = PREFIXES.prov;
|
|
14
|
-
const DCTERMS_NS = PREFIXES.dcterms;
|
|
15
|
-
const XSD_NS = PREFIXES.xsd;
|
|
16
|
-
|
|
17
|
-
const PROV = {
|
|
18
|
-
Activity: `${PROV_NS}Activity`,
|
|
19
|
-
Entity: `${PROV_NS}Entity`,
|
|
20
|
-
SoftwareAgent: `${PROV_NS}SoftwareAgent`,
|
|
21
|
-
Agent: `${PROV_NS}Agent`,
|
|
22
|
-
wasGeneratedBy: `${PROV_NS}wasGeneratedBy`,
|
|
23
|
-
wasAssociatedWith: `${PROV_NS}wasAssociatedWith`,
|
|
24
|
-
generatedAtTime: `${PROV_NS}generatedAtTime`,
|
|
25
|
-
startedAtTime: `${PROV_NS}startedAtTime`,
|
|
26
|
-
endedAtTime: `${PROV_NS}endedAtTime`,
|
|
27
|
-
};
|
|
28
|
-
const DCTERMS = {
|
|
29
|
-
isVersionOf: `${DCTERMS_NS}isVersionOf`,
|
|
30
|
-
title: `${DCTERMS_NS}title`,
|
|
31
|
-
};
|
|
32
|
-
const FOAF_NS = PREFIXES.foaf ?? 'http://xmlns.com/foaf/0.1/';
|
|
33
|
-
const XSD_DATETIME = `${XSD_NS}dateTime`;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef {Object} ProvenanceInput
|
|
37
|
-
* @property {string} subjectUri — the resource being provenance-tagged
|
|
38
|
-
* @property {string} serializer — e.g. "concept-browser"
|
|
39
|
-
* @property {string} serializerVersion — e.g. "0.7.66"
|
|
40
|
-
* @property {string} generatedAt — ISO 8601 date-time
|
|
41
|
-
* @property {string} [canonicalUri] — for dcterms:isVersionOf (versions)
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Emits provenance quads linking subjectUri to a prov:Activity
|
|
46
|
-
* performed by a prov:SoftwareAgent. The activity IRI is relative
|
|
47
|
-
* (under the document base): `activity/serializers/{serializer}/{version}`.
|
|
48
|
-
*
|
|
49
|
-
* Idempotent: same input always produces the same bnode IDs and the
|
|
50
|
-
* same set of quads.
|
|
51
|
-
*
|
|
52
|
-
* @param {ProvenanceInput} input
|
|
53
|
-
* @returns {Generator<import('@rdfjs/dataset').Quad, void, unknown>}
|
|
54
|
-
*/
|
|
55
|
-
export function* provenanceToQuads(input) {
|
|
56
|
-
if (!input?.subjectUri) throw new Error('provenanceToQuads: subjectUri is required');
|
|
57
|
-
if (!input?.serializer) throw new Error('provenanceToQuads: serializer is required');
|
|
58
|
-
if (!input?.serializerVersion) throw new Error('provenanceToQuads: serializerVersion is required');
|
|
59
|
-
if (!input?.generatedAt) throw new Error('provenanceToQuads: generatedAt is required');
|
|
60
|
-
|
|
61
|
-
const subject = namedNode(input.subjectUri);
|
|
62
|
-
const activityIri = namedNode(`activity/serializers/${input.serializer}/${input.serializerVersion}`);
|
|
63
|
-
|
|
64
|
-
// Subject is a prov:Entity, generated by the activity, at the timestamp
|
|
65
|
-
yield quad(subject, namedNode(RDF_TYPE), namedNode(PROV.Entity));
|
|
66
|
-
yield quad(subject, namedNode(PROV.wasGeneratedBy), activityIri);
|
|
67
|
-
yield quad(subject, namedNode(PROV.generatedAtTime), literal(input.generatedAt, namedNode(XSD_DATETIME)));
|
|
68
|
-
|
|
69
|
-
if (input.canonicalUri && input.canonicalUri !== input.subjectUri) {
|
|
70
|
-
yield quad(subject, namedNode(DCTERMS.isVersionOf), namedNode(input.canonicalUri));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Activity is a prov:Activity, associated with the software agent
|
|
74
|
-
yield quad(activityIri, namedNode(RDF_TYPE), namedNode(PROV.Activity));
|
|
75
|
-
yield quad(activityIri, namedNode(RDFS_LABEL), literal(`${input.serializer} ${input.serializerVersion}`));
|
|
76
|
-
|
|
77
|
-
// Software agent as a deterministic blank node — same input always
|
|
78
|
-
// produces the same bnode ID so multiple subjects that share a
|
|
79
|
-
// serializer/version collapse to one agent.
|
|
80
|
-
const agentId = deterministicBnodeId('agent', input.serializer, input.serializerVersion);
|
|
81
|
-
const agent = blankNode(`b${agentId}`);
|
|
82
|
-
yield quad(activityIri, namedNode(PROV.wasAssociatedWith), agent);
|
|
83
|
-
yield quad(agent, namedNode(RDF_TYPE), namedNode(PROV.SoftwareAgent));
|
|
84
|
-
yield quad(agent, namedNode(RDF_TYPE), namedNode(PROV.Agent));
|
|
85
|
-
yield quad(agent, namedNode(RDFS_LABEL), literal(input.serializer));
|
|
86
|
-
yield quad(agent, namedNode(`${FOAF_NS}name`), literal(input.serializer));
|
|
87
|
-
}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — TEMPORARY during TS migration. TODO(Phase 2e): remove and type fully.
|
|
2
|
-
// Sections builder — transforms a Quad[] into the ClassInstance[]
|
|
3
|
-
// shape consumed by Vue UI components (RdfInstanceSection,
|
|
4
|
-
// RdfInstanceHeader, RdfSourcePanel).
|
|
5
|
-
//
|
|
6
|
-
// The grouping logic is RDF-structure-driven, not Vue-specific:
|
|
7
|
-
// 1. Group quads by subject (NamedNode or BlankNode)
|
|
8
|
-
// 2. For each subject:
|
|
9
|
-
// - rdf:type values → classId (first type wins, multi-type joined)
|
|
10
|
-
// - Derive classLabel from classId local name (CURIE local part)
|
|
11
|
-
// - Derive label from skos:prefLabel/rdfs:label/URI segment
|
|
12
|
-
// - Collect remaining predicates → props
|
|
13
|
-
// 3. For bnode objects, recursively nest their triples as a
|
|
14
|
-
// nested PropValue
|
|
15
|
-
// 4. Return ClassInstance[] sorted by subject IRI (insertion order
|
|
16
|
-
// preserved when subjects appear in canonical order)
|
|
17
|
-
//
|
|
18
|
-
// This module consumes standard RDF/JS Quad[] — no custom RdfGraph
|
|
19
|
-
// abstraction. Any consumer (Vue UI, CLI inspector, debug tool) can
|
|
20
|
-
// use it.
|
|
21
|
-
|
|
22
|
-
import { RDF_TYPE, RDFS_LABEL, compactIri } from './curie.js';
|
|
23
|
-
import { PREFIXES } from './prefixes.js';
|
|
24
|
-
|
|
25
|
-
const SKOS_PREF_LABEL = `${PREFIXES.skos}prefLabel`;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @typedef {Object} PropValue
|
|
29
|
-
* @property {string} predicate
|
|
30
|
-
* @property {string[]} values
|
|
31
|
-
* @property {boolean} [nested]
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* @typedef {Object} ClassInstance
|
|
35
|
-
* @property {string} classId
|
|
36
|
-
* @property {string} classLabel
|
|
37
|
-
* @property {string} label
|
|
38
|
-
* @property {PropValue[]} props
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* @typedef {Object} SectionsBuilderOptions
|
|
42
|
-
* @property {string} [language='eng'] — preferred language for skos:prefLabel
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Build ClassInstance[] from a Quad[]. Bnodes referenced as objects
|
|
47
|
-
* are recursively nested into the parent prop.
|
|
48
|
-
*
|
|
49
|
-
* @param {import('@rdfjs/dataset').Quad[]} quads
|
|
50
|
-
* @param {SectionsBuilderOptions} [options]
|
|
51
|
-
* @returns {ClassInstance[]}
|
|
52
|
-
*/
|
|
53
|
-
export function quadSectionsToClassInstances(quads, options = {}) {
|
|
54
|
-
const language = options.language ?? 'eng';
|
|
55
|
-
if (!quads || quads.length === 0) return [];
|
|
56
|
-
|
|
57
|
-
// Group quads by subject
|
|
58
|
-
const bySubject = new Map();
|
|
59
|
-
const bnodeQuads = new Map(); // separate bnode quads for nested lookup
|
|
60
|
-
const order = [];
|
|
61
|
-
|
|
62
|
-
for (const q of quads) {
|
|
63
|
-
const subj = q.subject;
|
|
64
|
-
const isBnode = subj.termType === 'BlankNode';
|
|
65
|
-
const key = subj.value;
|
|
66
|
-
const target = isBnode ? bnodeQuads : bySubject;
|
|
67
|
-
if (!target.has(key)) {
|
|
68
|
-
target.set(key, { subject: subj, quads: [] });
|
|
69
|
-
if (!isBnode) order.push(key);
|
|
70
|
-
}
|
|
71
|
-
target.get(key).quads.push(q);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const result = [];
|
|
75
|
-
for (const key of order) {
|
|
76
|
-
const entry = bySubject.get(key);
|
|
77
|
-
result.push(resourceToClassInstance(entry.subject, entry.quads, bnodeQuads, language));
|
|
78
|
-
}
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function resourceToClassInstance(subject, quads, bnodeQuads, language) {
|
|
83
|
-
const types = [];
|
|
84
|
-
const otherQuads = [];
|
|
85
|
-
let prefLabel = null;
|
|
86
|
-
let rdfsLabel = null;
|
|
87
|
-
|
|
88
|
-
for (const q of quads) {
|
|
89
|
-
if (q.predicate.value === RDF_TYPE) {
|
|
90
|
-
types.push(q.object.value);
|
|
91
|
-
} else if (q.predicate.value === SKOS_PREF_LABEL) {
|
|
92
|
-
// Prefer prefLabel in the requested language; first one wins per lang
|
|
93
|
-
if (!prefLabel || (q.object.language === language && prefLabel.language !== language)) {
|
|
94
|
-
prefLabel = { value: q.object.value, language: q.object.language };
|
|
95
|
-
}
|
|
96
|
-
} else if (q.predicate.value === RDFS_LABEL && !rdfsLabel) {
|
|
97
|
-
rdfsLabel = q.object.value;
|
|
98
|
-
} else {
|
|
99
|
-
otherQuads.push(q);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const subjectStr = subject.value;
|
|
104
|
-
// Compact classId and classLabel to CURIE form for UI consumers.
|
|
105
|
-
// The Vue components compare against CURIEs ('gloss:Concept') not
|
|
106
|
-
// absolute IRIs, so the builder is responsible for the conversion.
|
|
107
|
-
const rawClassId = types.length > 0 ? types[0] : '';
|
|
108
|
-
const classId = rawClassId ? compactIri(rawClassId) : '';
|
|
109
|
-
const classLabel = deriveClassLabel(rawClassId);
|
|
110
|
-
const label = prefLabel?.value ?? rdfsLabel ?? deriveSubjectLabel(subjectStr);
|
|
111
|
-
|
|
112
|
-
// Group predicates (preserve insertion order). Compact IRIs to CURIEs
|
|
113
|
-
// for display — UI consumers expect 'gloss:hasDefinition' rather than
|
|
114
|
-
// 'https://www.glossarist.org/ontologies/hasDefinition'.
|
|
115
|
-
const props = [];
|
|
116
|
-
const seenPredKeys = new Set();
|
|
117
|
-
|
|
118
|
-
for (const q of otherQuads) {
|
|
119
|
-
const isBnodeObj = q.object.termType === 'BlankNode';
|
|
120
|
-
const formatted = formatTerm(q.object, bnodeQuads);
|
|
121
|
-
if (formatted === '') continue;
|
|
122
|
-
const predicate = compactIri(q.predicate.value);
|
|
123
|
-
const dedupKey = `${predicate}#${isBnodeObj ? 'n' : 'f'}#${formatted}`;
|
|
124
|
-
if (seenPredKeys.has(dedupKey)) continue;
|
|
125
|
-
seenPredKeys.add(dedupKey);
|
|
126
|
-
|
|
127
|
-
const prop = { predicate, values: [formatted] };
|
|
128
|
-
if (isBnodeObj) prop.nested = true;
|
|
129
|
-
props.push(prop);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
classId,
|
|
134
|
-
classLabel,
|
|
135
|
-
label,
|
|
136
|
-
props,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function formatTerm(term, bnodeQuads) {
|
|
141
|
-
switch (term.termType) {
|
|
142
|
-
case 'NamedNode':
|
|
143
|
-
return compactIri(term.value);
|
|
144
|
-
case 'Literal':
|
|
145
|
-
return term.value;
|
|
146
|
-
case 'BlankNode': {
|
|
147
|
-
const entry = bnodeQuads.get(term.value);
|
|
148
|
-
if (!entry) return '';
|
|
149
|
-
const parts = entry.quads.map(q => {
|
|
150
|
-
const val = formatTerm(q.object, bnodeQuads);
|
|
151
|
-
return val ? `${compactIri(q.predicate.value)}: ${val}` : '';
|
|
152
|
-
}).filter(p => p);
|
|
153
|
-
return parts.join('; ');
|
|
154
|
-
}
|
|
155
|
-
default:
|
|
156
|
-
return '';
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function deriveClassLabel(classId) {
|
|
161
|
-
if (!classId) return '';
|
|
162
|
-
// ClassId is now CURIE form (compacted). Just take the local part.
|
|
163
|
-
if (classId.includes(':') && !classId.includes('://')) {
|
|
164
|
-
return classId.slice(classId.indexOf(':') + 1);
|
|
165
|
-
}
|
|
166
|
-
// Fallback for absolute IRIs that didn't compact
|
|
167
|
-
const noFrag = classId.split('#').pop();
|
|
168
|
-
const last = noFrag.split('/').pop();
|
|
169
|
-
return last || classId;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function deriveSubjectLabel(subject) {
|
|
173
|
-
if (!subject) return '';
|
|
174
|
-
// Last path segment or fragment
|
|
175
|
-
const noFrag = subject.split('#').pop();
|
|
176
|
-
const last = noFrag.split('/').pop();
|
|
177
|
-
return last || subject;
|
|
178
|
-
}
|
package/src/rdf/shacl-entry.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Type declarations for the Node-only SHACL validator subpath.
|
|
2
|
-
//
|
|
3
|
-
// Mirrors src/rdf/shacl-entry.js. Separated from ./rdf so that browser
|
|
4
|
-
// bundles don't pull in node:fs/promises, node:path, node:url.
|
|
5
|
-
|
|
6
|
-
export { validateShacl, loadShapes, clearShapesCache, quadsToDataset } from './shacl';
|