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 2, 2024
1 parent 71a1305 commit bf83f2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OntoMetadataShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (<http://purl.org/vocab/vann/preferredNamespacePrefix> <https://w3id.org/mod#acronym>)];
sh:severity sh:Info ;
sh:datatype xsd:string ;
sh:message """You should provide the ontology's preferred namespace prefix or acronym as an xsd:string.\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> vann:preferredNamespacePrefix \"so\"^^xsd:string .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide the ontology's preferred namespace prefix or acronym as an xsd:string.\nRecommended property: <http://purl.org/vocab/vann/preferredNamespacePrefix>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> vann:preferredNamespacePrefix \"so\"^^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's preferred namespace prefix or acronym is an xsd:string. It produces an info message if it is not."@en ;
sh:name "Preferred ontology prefix/ acronym - datatype"@en ;
] ;
Expand Down Expand Up @@ -257,7 +257,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path owl:versionIRI ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI;
sh:message """You should state the versionIRI as an IRI. It should not be given as a sring or literal.\nRecommended property: <http://www.w3.org/2002/07/owl#versionIRI>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/1.0.0>.\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/2019-12-31> .\nExample statement 3 (text/turtle): <http://purl.obolibrary.org/obo/pco.owl> <http://www.w3.org/2002/07/owl#versionIRI> <http://purl.obolibrary.org/obo/pco/releases/2021-05-03/pco.owl> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should state the versionIRI as an IRI. It should not be given as a string or literal.\nRecommended property: <http://www.w3.org/2002/07/owl#versionIRI>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/1.0.0>.\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/2019-12-31> .\nExample statement 3 (text/turtle): <http://purl.obolibrary.org/obo/pco.owl> <http://www.w3.org/2002/07/owl#versionIRI> <http://purl.obolibrary.org/obo/pco/releases/2021-05-03/pco.owl> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape checks whether the ontology versionIRI is provided as an IRI (https://www.w3.org/TR/rdf11-concepts/#dfn-iri) (as compared to a literal). It produces an info message if it is not."@en ;
sh:name "Ontology version IRI - datatype"@en ;
] ;
Expand Down Expand Up @@ -320,7 +320,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path [sh:alternativePath (dcterms:abstract <https://schema.org/abstract>)] ;
sh:severity sh:Info ;
sh:maxLength 500 ;
sh:message """You should limit the ontology abstract to 500 characters maximum.\nThe TIB Terminology Service requires short ontology descriptions for a user-friendly ontology list.\nTo provide more information about the ontology, add an additional description (recommended property: <http://purl.org/dc/terms/escription>) or add a reference to a related article (recommended property: <http://purl.org/dc/terms/isReferencedBy>).\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should limit the ontology abstract to 500 characters maximum.\nThe TIB Terminology Service requires short ontology descriptions for a user-friendly ontology list.\nTo provide more information about the ontology, add an additional description (recommended property: <http://purl.org/dc/terms/description>) or add a reference to a related article (recommended property: <http://purl.org/dc/terms/isReferencedBy>).\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:description "This shape cheks whether the ontology abstract is longer than 500 characters. It produces an info message if it does."@en ;
sh:name "Ontology abstract - length"@en ;
] ;
Expand Down Expand Up @@ -978,7 +978,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:path <https://w3id.org/mod#competencyQuestion> ;
sh:severity sh:Info ;
sh:xone ( [sh:nodeKind sh:IRI ;] [sh:datatype rdf:langString ;] );
sh:message """You should provide the link to the ontology's competency questions as an IRI or provide the questions directly as an rdf:langString.\nRecommended property: <https://w3id.org/mod#competencyQuestion>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <https://w3id.org/mod#competencyQuestion> \"Who developed an ontology?\"@en .\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <https://w3id.org/mod#competencyQuestion> <https://www.example.com/SomeOntologyInfo/Questions#Q1> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You should provide the link to the ontology's competency questions as an IRI or provide the questions directly as an rdf:langString.\nRecommended property: <https://w3id.org/mod#competencyQuestion>\nExample statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <https://w3id.org/mod#competencyQuestion> \"Who developed an ontology?\"@en .\nExample statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <https://w3id.org/mod#competencyQuestion> <https://www.example.com/SomeOntologyInfo/Questions#Q1> .\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ; #inconsistent with forms shape
sh:description "This shape checks whether the ontology provides competency questions as rdf:langString or an IRI to an online document. It produces an info message if it does not."@en ;
sh:name "Competency questions"@en ;
];
Expand Down

0 comments on commit bf83f2e

Please sign in to comment.