From c099b9b5a322b40809ae5fe3c9235e103a2d8d03 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Mon, 16 Dec 2024 13:03:36 +0100 Subject: [PATCH] Normalize prefix definitions --- src/datalad-dataset/unreleased.yaml | 3 ++- src/distribution/unreleased.yaml | 7 ++++--- src/identifiers/unreleased.yaml | 4 +++- src/properties/unreleased.yaml | 4 +++- src/prov/unreleased.yaml | 13 +++++++++---- src/roles/unreleased.yaml | 7 ++++--- src/sdd/unreleased.yaml | 15 ++++++++------- src/spatial/unreleased.yaml | 10 ++++++---- src/temporal/unreleased.yaml | 10 ++++++---- src/thing/unreleased.yaml | 4 +++- 10 files changed, 48 insertions(+), 29 deletions(-) diff --git a/src/datalad-dataset/unreleased.yaml b/src/datalad-dataset/unreleased.yaml index df9240f..ca3fc78 100644 --- a/src/datalad-dataset/unreleased.yaml +++ b/src/datalad-dataset/unreleased.yaml @@ -33,7 +33,8 @@ prefixes: dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ dlco: https://concepts.datalad.org/ - dldist: https://concepts.datalad.org/s/distribution/unreleased/ + dlschemas: https://concepts.datalad.org/s/ + dldist: https://concepts/datalad.org/s/distribution/unreleased/ dpv: https://w3id.org/dpv# foaf: http://xmlns.com/foaf/0.1/ gitsha: https://concepts.datalad.org/ns/gitsha/ diff --git a/src/distribution/unreleased.yaml b/src/distribution/unreleased.yaml index fffa4a8..9e5e530 100644 --- a/src/distribution/unreleased.yaml +++ b/src/distribution/unreleased.yaml @@ -57,9 +57,10 @@ prefixes: dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ dlco: https://concepts.datalad.org/ - dldist: https://concepts.datalad.org/s/distribution/unreleased/ - dlprov: https://concepts.datalad.org/s/prov/unreleased/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlschemas: https://concepts.datalad.org/s/ + dldist: https://concepts/datalad.org/s/distribution/unreleased/ + dlprov: https://concepts/datalad.org/s/prov/unreleased/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ dpv: https://w3id.org/dpv# foaf: http://xmlns.com/foaf/0.1/ # custom prefix to use Git's SHA identifiers as schema identifiers diff --git a/src/identifiers/unreleased.yaml b/src/identifiers/unreleased.yaml index a76e425..c161173 100644 --- a/src/identifiers/unreleased.yaml +++ b/src/identifiers/unreleased.yaml @@ -25,7 +25,9 @@ prefixes: ADMS: http://www.w3.org/ns/adms# bibo: http://purl.org/ontology/bibo/ dcterms: http://purl.org/dc/terms/ - dlidentifiers: https://concepts.datalad.org/s/identifiers/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dlidentifiers: https://concepts/datalad.org/s/identifiers/unreleased/ linkml: https://w3id.org/linkml/ skos: http://www.w3.org/2004/02/skos/core# diff --git a/src/properties/unreleased.yaml b/src/properties/unreleased.yaml index 89fe22f..0ca811a 100644 --- a/src/properties/unreleased.yaml +++ b/src/properties/unreleased.yaml @@ -33,7 +33,9 @@ license: MIT prefixes: bibo: http://purl.org/ontology/bibo/ dcterms: http://purl.org/dc/terms/ - dlprops: https://concepts.datalad.org/s/properties/unreleased/ + dlco: https://concepts.datalad.org + dlschemas: https://concepts.datalad.org/s/ + dlprops: https://concepts/datalad.org/s/properties/unreleased/ foaf: http://xmlns.com/foaf/0.1/ linkml: https://w3id.org/linkml/ obo: http://purl.obolibrary.org/obo/ diff --git a/src/prov/unreleased.yaml b/src/prov/unreleased.yaml index 19fceee..3a73268 100644 --- a/src/prov/unreleased.yaml +++ b/src/prov/unreleased.yaml @@ -57,17 +57,22 @@ license: MIT prefixes: bibo: http://purl.org/ontology/bibo/ - dlprov: https://concepts.datalad.org/s/prov/unreleased/ - dlidentifiers: https://concepts.datalad.org/s/identifiers/unreleased/ - dlroles: https://concepts.datalad.org/s/roles/unreleased/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dlprov: https://concepts/datalad.org/s/prov/unreleased/ + dlidentifiers: https://concepts/datalad.org/s/identifiers/unreleased/ + dlroles: https://concepts/datalad.org/s/roles/unreleased/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ foaf: http://xmlns.com/foaf/0.1/ linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ prov: http://www.w3.org/ns/prov# # declare a namespace for emails, such that they can be defined as a curie # e.g.: email:me@example.com # -> https://concepts.datalad.org/ns/email/me@example.com email: https://concepts.datalad.org/ns/email/ + # disambiguate a GEO URI from a curie prefix + geo: "geo:" default_prefix: dlprov diff --git a/src/roles/unreleased.yaml b/src/roles/unreleased.yaml index 59406f4..13f4c47 100644 --- a/src/roles/unreleased.yaml +++ b/src/roles/unreleased.yaml @@ -33,8 +33,9 @@ prefixes: bibo: http://purl.org/ontology/bibo/ dcat: http://www.w3.org/ns/dcat# dcterms: http://purl.org/dc/terms/ - dlroles: https://concepts.datalad.org/s/roles/unreleased/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dlroles: https://concepts/datalad.org/s/roles/unreleased/ linkml: https://w3id.org/linkml/ prov: http://www.w3.org/ns/prov# marcrel: http://id.loc.gov/vocabulary/relators/ @@ -47,7 +48,7 @@ emit_prefixes: - prov imports: - - ../thing/unreleased + - dlschemas:thing/unreleased slots: diff --git a/src/sdd/unreleased.yaml b/src/sdd/unreleased.yaml index fb81577..5ea04a8 100644 --- a/src/sdd/unreleased.yaml +++ b/src/sdd/unreleased.yaml @@ -20,18 +20,19 @@ license: MIT prefixes: ADMS: http://www.w3.org/ns/adms# - annex-uuid: https://concepts.datalad.org/ns/annex-uuid/ - annex-key: https://concepts.datalad.org/ns/annex-key/ + annex-uuid: dlco:ns/annex-uuid/ + annex-key: dlco:ns/annex-key/ bibo: http://purl.org/ontology/bibo/ CiTO: http://purl.org/spar/cito/ dcat: http://www.w3.org/ns/dcat# - datalad-ds: https://concepts.datalad.org/ns/dataset-uuid/ + datalad-ds: dlco:ns/dataset-uuid/ dcterms: http://purl.org/dc/terms/ dlco: https://concepts.datalad.org/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ - dldist: https://concepts.datalad.org/s/distribution/unreleased/ - dlprov: https://concepts.datalad.org/s/prov/unreleased/ - dlsdd: https://concepts.datalad.org/s/sdd/unreleased/ + dlschemas: https://concepts.datalad.org/s/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ + dldist: https://concepts/datalad.org/s/distribution/unreleased/ + dlprov: https://concepts/datalad.org/s/prov/unreleased/ + dlsdd: https://concepts/datalad.org/s/sdd/unreleased/ dex: https://example.org/ns/ex/terms/ dpv: https://w3id.org/dpv# foaf: http://xmlns.com/foaf/0.1/ diff --git a/src/spatial/unreleased.yaml b/src/spatial/unreleased.yaml index bde0891..3b4a3b2 100644 --- a/src/spatial/unreleased.yaml +++ b/src/spatial/unreleased.yaml @@ -18,10 +18,12 @@ license: MIT prefixes: bibo: http://purl.org/ontology/bibo/ - dlspatial: https://concepts.datalad.org/s/agents/unreleased/ - dlidentifiers: https://concepts.datalad.org/s/identifiers/unreleased/ - dlroles: https://concepts.datalad.org/s/roles/unreleased/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dlspatial: https://concepts/datalad.org/s/agents/unreleased/ + dlidentifiers: https://concepts/datalad.org/s/identifiers/unreleased/ + dlroles: https://concepts/datalad.org/s/roles/unreleased/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ linkml: https://w3id.org/linkml/ prov: http://www.w3.org/ns/prov# # disambiguate a GEO URI from a curie prefix diff --git a/src/temporal/unreleased.yaml b/src/temporal/unreleased.yaml index fe0f286..7d1ec2a 100644 --- a/src/temporal/unreleased.yaml +++ b/src/temporal/unreleased.yaml @@ -18,10 +18,12 @@ license: MIT prefixes: bibo: http://purl.org/ontology/bibo/ - dltemporal: https://concepts.datalad.org/s/agents/unreleased/ - dlidentifiers: https://concepts.datalad.org/s/identifiers/unreleased/ - dlroles: https://concepts.datalad.org/s/roles/unreleased/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dltemporal: https://concepts/datalad.org/s/agents/unreleased/ + dlidentifiers: https://concepts/datalad.org/s/identifiers/unreleased/ + dlroles: https://concepts/datalad.org/s/roles/unreleased/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ linkml: https://w3id.org/linkml/ prov: http://www.w3.org/ns/prov# diff --git a/src/thing/unreleased.yaml b/src/thing/unreleased.yaml index ee78385..54859f9 100644 --- a/src/thing/unreleased.yaml +++ b/src/thing/unreleased.yaml @@ -38,7 +38,9 @@ prefixes: bibo: http://purl.org/ontology/bibo/ dcat: http://www.w3.org/ns/dcat# dcterms: http://purl.org/dc/terms/ - dlthing: https://concepts.datalad.org/s/thing/unreleased/ + dlco: https://concepts.datalad.org/ + dlschemas: https://concepts.datalad.org/s/ + dlthing: https://concepts/datalad.org/s/thing/unreleased/ linkml: https://w3id.org/linkml/ obo: http://purl.obolibrary.org/obo/ owl: http://www.w3.org/2002/07/owl#