Skip to content

Commit

Permalink
#6 check consistency of list elements and sh:messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SArndt-TIB committed Nov 29, 2024
1 parent 44edeea commit ddf6bc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OntoMetadataShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ ontometa:OntologyMetadataShape a sh:NodeShape ;
# [sh:hasValue <> ;]
);
# sh:message """The ontology does not declare its own license. Please provide it, if known."""@en ; # optimized message for current TIB TS
sh:message """You must provide exactly one ontology license.\nThe license must be open (Read more about open licenses at https://opendefinition.org/licenses/).\nThe license must be given as an IRI from the following list:\n - <https://creativecommons.org/publicdomain/zero/1.0/>\n - <https://creativecommons.org/licenses/by/4.0/>\n - <http://opendatacommons.org/licenses/by/1.0/>\n - <http://opendatacommons.org/licenses/by/summary/>\n - <http://opendatacommons.org/licenses/pddl/summary/>\n - <http://opendatacommons.org/licenses/pddl/1.0/>\n - <http://creativecommons.org/licenses/by/4.0/legalcode>\n - <http://creativecommons.org/licenses/by/3.0/legalcode>\n - <https://creativecommons.org/publicdomain/zero/1.0/legalcode>\n - <http://creativecommons.org/licenses/by-sa/4.0/>\n - <http://creativecommons.org/licenses/by-sa/4.0/legalcode>\n - <http://creativecommons.org/licenses/by-sa/3.0/legalcode>\n - <http://opendatacommons.org/licenses/odbl/summary/>\n - <http://opendatacommons.org/licenses/odbl/1.0/>\n - <https://spdx.org/licenses/Unlicense.html>\nRecommended property: <http://purl.org/dc/terms/license>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:license <http://creativecommons.org/licenses/by/4.0/> .\nYou want to use a different open license? File an issue at https://gitlab.com/TIBHannover/terminology/tib-terminology-service-issue-tracker/-/issues\nNeed help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/"""@en ;
sh:message """You must provide exactly one ontology license.\nThe license must be open (Read more about open licenses at https://opendefinition.org/licenses/).\nThe license must be given as an IRI from the following list:\n\n - <https://opendatacommons.org/licenses/by/1-0/>\n - <https://opendatacommons.org/licenses/pddl/1-0/>\n - <https://opendatacommons.org/licenses/odbl/1-0/>\n - <https://unlicense.org/>\n - <https://creativecommons.org/publicdomain/zero/1.0/legalcode>\n - <https://creativecommons.org/licenses/by/3.0/legalcode>\n - <https://creativecommons.org/licenses/by/4.0/legalcode>\n - <https://creativecommons.org/licenses/by/3.0/de/legalcode>\n - <https://creativecommons.org/licenses/by-sa/3.0/legalcode>\n - <https://creativecommons.org/licenses/by-sa/4.0/legalcode>\n\nRecommended property: <http://purl.org/dc/terms/license>\nExample statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:license <http://creativecommons.org/licenses/by/4.0/> .\nYou want to use a different open license? File an issue at https://gitlab.com/TIBHannover/terminology/tib-terminology-service-issue-tracker/-/issues\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 a license IRI from a list of accepted open licenses. It produces a warning message if not."@en ;
sh:name "Ontology license"@en ;
] ;
Expand Down
6 changes: 3 additions & 3 deletions OntoMetadataShape4Forms.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ ontometa4forms:OntologyMetadataShape a sh:NodeShape ;
sh:group ontometa4forms:RelatedResources ;
];

## Related identifiers
## Alternative identifiers of the ontology
### status: developer and external review needed

sh:property [
Expand Down Expand Up @@ -729,7 +729,7 @@ ontometa4forms:OntologyMetadataShape a sh:NodeShape ;
sh:severity sh:Info ;
# sh:xone (
# [
sh:nodeKind sh:IRI ;
sh:nodeKind sh:IRI ; # inconsistent with ontometa:
# ]
# [sh:datatype rdf:langString ; sh:languageIn ( "en" "de" "ar" "bn" "cs" "da" "es" "fi" "fr" "hi" "it" "ja" "nl" "no" "pl" "ru" "sv" "tr" "uk" "zh") ; # liste verlängern
# ] );
Expand Down Expand Up @@ -788,7 +788,7 @@ ontometa4forms:OntologyMetadataShape a sh:NodeShape ;
sh:path owl:versionInfo ;
sh:severity sh:Info ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:datatype xsd:string ; # not consistent with ontometa:
sh:description "You can provide some textual information about the ontology version, e.g. a semantic versioning number as 2.0.1 or a date in xsd:date or xsd:dateTime format, e.g. 2024-11-26T18:00:01."@en ;
sh:name "Ontology version information"@en ;
sh:group ontometa4forms:VersionGroup ;
Expand Down

0 comments on commit ddf6bc4

Please sign in to comment.