Skip to content

Commit

Permalink
#6 Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
SArndt-TIB committed Dec 10, 2024
1 parent aa72506 commit b0f0bf2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions OntoMetadataShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:severity sh:Info ;
sh:datatype rdf:langString ;
sh:uniqueLang true ;
sh:message """You should make the ontology title an rdf:langString by adding a language tag to it.\nThere may be only title per language.\nRecommended property: <http://purl.org/dc/terms/title>.\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:title \"Some Ontology\"@en .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should make the ontology title an rdf:langString by adding a language tag to it.\nThere may be only one title per language.\nRecommended property: <http://purl.org/dc/terms/title>.\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:title \"Some Ontology\"@en .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology title literal value is an rdf:langString and whether only one title per language is given. It produces an info message if the title does not carry a language tag or if several titles in the same language are present."@en ;
sh:name "Ontology title - datatype"@en ;
] ;
Expand Down Expand Up @@ -382,7 +382,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path <https://schema.org/funder> ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """If applicable, you should reference any institutions funding the work on the ontology.\nThe funding instution(s) should be referenced by PIDs, e.g. RORs (https://ror.org/) or Crossref Funder Registry IDs (https://www.crossref.org/services/funder-registry/)).\nRecommended property: <https://schema.org/funder>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funder> <https://ror.org/018mejw64> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """If applicable, you should reference any institutions funding the work on the ontology.\nThe funding institution(s) should be referenced by PIDs, e.g. RORs (https://ror.org/) or Crossref Funder Registry IDs (https://www.crossref.org/services/funder-registry/)).\nRecommended property: <https://schema.org/funder>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funder> <https://ror.org/018mejw64> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology references funding information. It produces an info message if not."@en ;
sh:name "Ontology funder"@en ;
] ;
Expand Down Expand Up @@ -457,7 +457,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path dcterms:subject ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """You should provide ontology subjects with IRIs from controlled vocabularies or ontologies.\nYou can search for fitting terms on TIB Terminology Service (https://terminology.tib.eu).\nRecommended property: <http://purl.org/dc/terms/subject>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:subject <https://d-nb.info/gnd/4067537-3>, <https://d-nb.info/gnd/4070177-3>, <http://uri.gbv.de/terminology/bk/42.15>, <https://github.com/tibonto/dfgfo/201-03>.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide ontology subjects with IRIs from controlled vocabularies or ontologies. Subjects should not be given as free text.\nYou can search for fitting terms on TIB Terminology Service (https://terminology.tib.eu).\nRecommended property: <http://purl.org/dc/terms/subject>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:subject <https://d-nb.info/gnd/4067537-3>, <https://d-nb.info/gnd/4070177-3>, <http://uri.gbv.de/terminology/bk/42.15>, <https://github.com/tibonto/dfgfo/201-03>.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology provides its subjects via IRIs. It produces an info message if it does not."@en ;
sh:name "Ontology subject(s) - datatype"@en ;
] ;
Expand Down Expand Up @@ -487,7 +487,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (dcterms:language <https://schema.org/inLanguage>) ];
sh:severity sh:Info ;
sh:pattern "(^http://id.loc.gov/vocabulary/iso639-2/[a-z]{3}$|^https://id.loc.gov/vocabulary/iso639-2/[a-z]{3}$)" ;
sh:message """You should provide ontology annotation language values that match the pattern for language identifiers from 'ISO 639-2: Codes for the Representation of Names of Languages - Part 2: Alpha-3 Code for the Names of Languages' (cf. https://id.loc.gov/vocabulary/iso639-2.html).\nExample identifier: <http://id.loc.gov/vocabulary/iso639-2/tgl>\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide ontology annotation language values that match the pattern for language identifiers from 'ISO 639-2: Codes for the Representation of Names of Languages - Part 2: Alpha-3 Code for the Names of Languages' (cf. https://id.loc.gov/vocabulary/iso639-2.html).\nExample identifier: <http://id.loc.gov/vocabulary/iso639-2/tgl>\nRecommended property: https://schema.org/inLanguage\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the values for language coverage match the pattern for language identifiers from 'ISO 639-2: Codes for the Representation of Names of Languages - Part 2: Alpha-3 Code for the Names of Languages'. It produces an info message if they do not."@en ;
sh:name "Ontology annotation language(s) - pattern"@en ;
] ;
Expand Down Expand Up @@ -707,7 +707,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (dc:description dcterms:description schema:description)] ;
sh:severity sh:Info ;
sh:uniqueLang true ;
sh:message """You should only provide one ontology description per language.\nRecommended property: <https://schema.org/description>\nExample statements (text/turtle): <https://www.purl.org/SomeOntology> schema:description \"Free text describing the ontology and how it came to be. Basically everything you might want to add and which does not fit into the abstract.\"@en, \"Freitext, der die Ontologie und ihre Genese beschreibt. Hier können umfangreiche Hintergrundinformationen zur Ontologie gegeben werden, die über ein kurzes Abstract hinausgehen.\" .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should only provide one ontology description per language.\nRecommended property: <https://schema.org/description>\nExample statements (text/turtle): <https://www.purl.org/SomeOntology> schema:description \"Free text describing the ontology and how it came to be. Basically everything you might want to add and which does not fit into the abstract.\"@en, \"Freitext, der die Ontologie und ihre Genese beschreibt. Hier können umfangreiche Hintergrundinformationen zur Ontologie gegeben werden, die über ein kurzes Abstract hinausgehen.\"@de .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether multiple ontology descriptions in the same language are present. It produces an info message if there are multiple descriptions in the same language."@en ;
sh:name "Ontology description - unique language"@en ;
] ;
Expand Down Expand Up @@ -933,7 +933,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (<http://xmlns.com/foaf/0.1/logo> <https://schema.org/logo> <http://xmlns.com/foaf/0.1/depiction> <https://w3id.org/mod#depiction> <https://schema.org/image>)] ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """You should provide links to depictions related to the ontology as IRIs.\nRecommended property: <http://xmlns.com/foaf/0.1/logo>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> foaf:logo <https://www.example.com/MyOntoLogo.jpg>\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/ """@en ;
sh:message """You should provide links to depictions related to the ontology as IRIs.\nRecommended property: <http://xmlns.com/foaf/0.1/logo>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> foaf:logo <https://www.example.com/MyOntoLogo.jpg> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/ """@en ;
sh:description "This shape checks whether the ontology's related depictions are provided via IRI. It produces an info message if they are not."@en ;
sh:name "Ontology logo/ depiction/ related visualizations"@en ;
];
Expand Down Expand Up @@ -1022,7 +1022,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:severity sh:Info ;
sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message """You should provide at most one ontology issue date that conforms to xsd:dateTime.\nRecommended property: <http://purl.org/dc/terms/issued>\nExample statement: <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/> \"2023-11-21T00:00:00\"^^xsd:dateTime .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/ """@en ;
sh:message """You should provide at most one ontology issue date that conforms to xsd:dateTime.\nRecommended property: <http://purl.org/dc/terms/issued>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/> \"2023-11-21T00:00:00\"^^xsd:dateTime .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/ """@en ;
sh:description "This shape checks whether the ontology's issue date conforms to xsd:dateTime. It produces an info message if it does not."@en ;
sh:name "Ontology issue date - datatype"@en ;
] ;
Expand All @@ -1048,7 +1048,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:severity sh:Info ;
sh:xone ( [sh:datatype xsd:string ;] [sh:datatype rdf:langString ;] );
# sh:datatype xsd:string ;
sh:message """You should provide textual information about the ontology version as an xsd:string.\nIt is recommended to use semantic versioning (cf. https://semver.org/) or OBO style date-based versioning (http://obofoundry.org/principles/fp-004-versioning.html).\nIf you need to add a larger comment in natural language, you should provide the info as an rdf:langString, i.e. with a language tag. We do not encourage this, since such statements can most likely be expressed in more granular fashion with formal statements.\nRecommended property: <http://www.w3.org/2002/07/owl#versionInfo>\nExample statement 1: <https://www.purl.org/SomeOntology> owl:versionInfo \"2023-01-01\"^^xsd:string .\nExample statement 2: <https://www.purl.org/SomeOntology> owl:versionInfo \"1.0.0\"^^xsd:string.\nExample statement 3: <https://www.purl.org/SomeOntology> owl:versionInfo \"Ontology version 1.0.0 of the subject classification in tabular format from Nov 2024.\"@en.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide textual information about the ontology version as an xsd:string.\nIt is recommended to use semantic versioning (cf. https://semver.org/) or OBO style date-based versioning (http://obofoundry.org/principles/fp-004-versioning.html).\nIf you need to add a larger comment in natural language, you should provide the info as an rdf:langString, i.e. with a language tag. We do not encourage this, since such statements can most likely be expressed in more granular fashion with formal statements.\nRecommended property: <http://www.w3.org/2002/07/owl#versionInfo>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> owl:versionInfo \"2023-01-01\"^^xsd:string .\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> owl:versionInfo \"1.0.0\"^^xsd:string.\nExample statement 3: <https://www.purl.org/SomeOntology> owl:versionInfo \"Ontology version 1.0.0 of the subject classification in tabular format from Nov 2024.\"@en.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology provides at most one textual version information as an xsd:string. It produces an info message if not."@en ;
sh:name "Ontology version information"@en ;
] ;
Expand All @@ -1057,7 +1057,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (owl:versionInfo pav:version)];
sh:severity sh:Info ;
sh:maxCount 1 ;
sh:message """You should provide at most one textual information about the ontology version.\nThe value should be providee as an xsd:string.\nIt is recommended to use semantic versioning (cf. https://semver.org/) or OBO style date-based versioning (http://obofoundry.org/principles/fp-004-versioning.html).\nRecommended property: <http://www.w3.org/2002/07/owl#versionInfo>\nExample statement 1: <https://www.purl.org/SomeOntology> owl:versionInfo \"2023-01-01\"^^xsd:string .\nExample statement 2: <https://www.purl.org/SomeOntology> owl:versionInfo \"1.0.0\"^^xsd:string.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide at most one textual information about the ontology version.\nThe value should be providee as an xsd:string.\nIt is recommended to use semantic versioning (cf. https://semver.org/) or OBO style date-based versioning (http://obofoundry.org/principles/fp-004-versioning.html).\nRecommended property: <http://www.w3.org/2002/07/owl#versionInfo>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> owl:versionInfo \"2023-01-01\"^^xsd:string .\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> owl:versionInfo \"1.0.0\"^^xsd:string.\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology provides at most one textual version information as an xsd:string. It produces an info message if not."@en ;
sh:name "Ontology version information"@en ;
] ;
Expand Down

0 comments on commit b0f0bf2

Please sign in to comment.