diff --git a/idranges.toml b/idranges.toml index feb5e32..5fab7c3 100644 --- a/idranges.toml +++ b/idranges.toml @@ -65,7 +65,7 @@ Sofia Garcia https://orcid.org/0000-0001-2345-6789 # MANDATORY: URL of repository or online vocabulary editor # repository = "https://github.com/YOUR-ORG/YOUR-REPO" -repository = "https://github.com/NFDI4Cat/vocab-template" +repository = "https://github.com/NFDI4Cat/voc4cat-template" # Optional: Jinja template for provenance URLs (git blame links) # Available template variables: entity_id, vocab_name, version, github_repo diff --git a/justfile b/justfile index 0710b99..efcae79 100644 --- a/justfile +++ b/justfile @@ -40,7 +40,7 @@ setup: upgrade: uv tool install --upgrade voc4cat --with git+https://github.com/dalito/pyLODE.git@nfdi4cat-2.x -# Check the voc4cat.xlsx file in inbox/ for errors +# Check the vocab_example.xlsx file in inbox/ for errors [group('individual steps')] check: _fake_actions_env @voc4cat --version @@ -53,7 +53,7 @@ check: _fake_actions_env [group('individual steps')] convert: _fake_actions_env # make a backup of the original file just in case - @cp inbox-excel-vocabs/voc4cat.xlsx inbox-excel-vocabs/voc4cat.xlsx.backup + @cp inbox-excel-vocabs/vocab_example.xlsx inbox-excel-vocabs/vocab_example.xlsx.backup @voc4cat convert --config _main_branch/idranges.toml --logfile outbox/voc4cat.log --outdir outbox inbox-excel-vocabs/ @if [ -z "$(ls outbox/*.ttl 2>/dev/null)" ]; then \ @echo "No ttl file in outbox. Building joined vocabulary ttl-file from individual ttl-files in vocabulary.\n" && \ @@ -62,7 +62,7 @@ convert: _fake_actions_env #=== post-convert checks === # Delete xlsx in outbox that may be present from former runs - @rm -f outbox/voc4cat.xlsx + @rm -f outbox/vocab_example.xlsx # check all ttl file(s) in outbox @voc4cat check --redundant-hierarchies --config _main_branch/idranges.toml --logfile outbox/voc4cat.log outbox/ # check if vocabulary changes are allowed @@ -76,7 +76,7 @@ docs: # Rebuild the xlsx file from the joined ttl file. [group('individual steps')] xlsx: - @rm -f outbox/voc4cat.xlsx + @rm -f outbox/vocab_example.xlsx @voc4cat convert --config idranges.toml --logfile outbox/voc4cat.log --template templates/default_sheets.xlsx outbox/ # Join individual ttl files in vocabularies/ to one turtle file in outbox/ diff --git a/vocabularies/vocab_example/0000001.ttl b/vocabularies/vocab_example/0000001.ttl index 47aa74e..a686dc0 100644 --- a/vocabularies/vocab_example/0000001.ttl +++ b/vocabularies/vocab_example/0000001.ttl @@ -1,18 +1,23 @@ PREFIX dcterms: +PREFIX prov: PREFIX rdfs: PREFIX skos: PREFIX xsd: a skos:Concept ; + dcterms:created "2023-08-10"^^xsd:date ; dcterms:identifier "0000001"^^xsd:token ; - rdfs:isDefinedBy ; + dcterms:modified "2025-12-27"^^xsd:date ; + dcterms:provenance ; + rdfs:seeAlso ; skos:altLabel "URI"@en ; + skos:changeNote "0000-0001-2345-6789 Created concept"@en ; skos:definition "Uniform Resource Identifier is a compact string of characters for identifying an abstract or physical resource."@en ; - skos:historyNote "0000-0001-2345-6789 Created concept"@en ; skos:inScheme ; skos:narrower ; skos:prefLabel "Uniform Resource Identifier"@en ; skos:relatedMatch ; skos:topConceptOf ; + prov:hadPrimarySource ; . diff --git a/vocabularies/vocab_example/0000002.ttl b/vocabularies/vocab_example/0000002.ttl index 7e8392d..ad91656 100644 --- a/vocabularies/vocab_example/0000002.ttl +++ b/vocabularies/vocab_example/0000002.ttl @@ -1,18 +1,23 @@ PREFIX dcterms: +PREFIX prov: PREFIX rdfs: PREFIX skos: PREFIX xsd: a skos:Concept ; + dcterms:created "2023-08-10"^^xsd:date ; dcterms:identifier "0000002"^^xsd:token ; - rdfs:isDefinedBy ; + dcterms:modified "2025-12-27"^^xsd:date ; + dcterms:provenance ; + rdfs:seeAlso ; skos:altLabel "CURIE"@en , "CompactURI"@en ; skos:broader ; + skos:changeNote "0000-0001-2345-6789 Created concept"@en ; skos:definition "A CURIE (or Compact URI) defines a generic, abbreviated syntax for expressing Uniform Resource Identifiers (URIs). "@en ; - skos:historyNote "0000-0001-2345-6789 Created concept"@en ; skos:inScheme ; skos:prefLabel "Compact Universal Resource Locator"@en ; + prov:hadPrimarySource ; . diff --git a/vocabularies/vocab_example/0000003.ttl b/vocabularies/vocab_example/0000003.ttl index b154916..f74c744 100644 --- a/vocabularies/vocab_example/0000003.ttl +++ b/vocabularies/vocab_example/0000003.ttl @@ -1,16 +1,21 @@ PREFIX dcterms: +PREFIX prov: PREFIX rdfs: PREFIX skos: PREFIX xsd: a skos:Concept ; + dcterms:created "2023-08-10"^^xsd:date ; dcterms:identifier "0000003"^^xsd:token ; - rdfs:isDefinedBy ; + dcterms:modified "2025-12-27"^^xsd:date ; + dcterms:provenance ; + rdfs:seeAlso ; skos:altLabel "IRI"@en ; + skos:changeNote "0000-0001-2345-6789 Created concept"@en ; skos:definition "Internationalized Resource Identifier (IRI) is an internet protocol standard which builds on the Uniform Resource Identifier (URI) protocol by greatly expanding the set of permitted characters."@en ; - skos:historyNote "0000-0001-2345-6789 Created concept"@en ; skos:inScheme ; skos:prefLabel "Internationalized Resource Identifier"@en ; skos:topConceptOf ; + prov:hadPrimarySource ; . diff --git a/vocabularies/vocab_example/0000010.ttl b/vocabularies/vocab_example/0000010.ttl index 17b4cd6..0fad51a 100644 --- a/vocabularies/vocab_example/0000010.ttl +++ b/vocabularies/vocab_example/0000010.ttl @@ -5,11 +5,14 @@ PREFIX xsd: a skos:Collection ; + dcterms:created "2023-08-10"^^xsd:date ; dcterms:identifier "0000010"^^xsd:token ; - dcterms:isPartOf ; + dcterms:modified "2025-12-27"^^xsd:date ; + dcterms:provenance ; rdfs:isDefinedBy ; + rdfs:seeAlso ; + skos:changeNote "0000-0001-2345-6789 Created collection"@en ; skos:definition "Collection of terms related to linked data."@en ; - skos:historyNote "0000-0001-2345-6789 Created collection"@en ; skos:inScheme ; skos:member , diff --git a/vocabularies/vocab_example/concept_scheme.ttl b/vocabularies/vocab_example/concept_scheme.ttl index f643071..e2a4e13 100644 --- a/vocabularies/vocab_example/concept_scheme.ttl +++ b/vocabularies/vocab_example/concept_scheme.ttl @@ -1,23 +1,43 @@ PREFIX dcat: PREFIX dcterms: PREFIX owl: +PREFIX schema: PREFIX skos: PREFIX xsd: a skos:ConceptScheme ; - dcterms:created "2023-03-10"^^xsd:date ; - dcterms:creator ; - dcterms:hasPart ; + dcterms:created "2025-01-01"^^xsd:date ; + dcterms:creator + , + ; dcterms:identifier ""^^xsd:token ; - dcterms:modified "2023-03-10"^^xsd:date ; + dcterms:modified "2025-12-27"^^xsd:date ; dcterms:publisher ; owl:versionInfo "v2023-03-10" ; - skos:definition "A test vocabulary for the voc4cat template"@en ; + skos:definition "Description of the vocabulary"@en ; skos:hasTopConcept , ; - skos:historyNote "https://orcid.org/0000-0001-2345-6789 Sofia Garcia"@en ; - skos:prefLabel "Test-of-Voc4Cat"@en ; + skos:historyNote "Created 2025-01-01."@en ; + skos:prefLabel "My Vocabulary"@en ; dcat:contactPoint "Sofia Garcia (orcid:0000-0001-2345-6789)" ; . + + + a schema:Organization ; + schema:name "http://example.org/nfdi4cat/" ; + schema:url "http://example.org/nfdi4cat/"^^xsd:anyURI ; +. + + + a schema:Person ; + schema:name "Alice Smith" ; + schema:url "https://orcid.org/0000-0001-2345-6788"^^xsd:anyURI ; +. + + + a schema:Person ; + schema:name "Sofia Garcia" ; + schema:url "https://orcid.org/0000-0001-2345-6789"^^xsd:anyURI ; +.