You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2021/08/09 14:31:00 UTC
[jira] [Commented] (JENA-2145) shaclc serialization of datatypes
should be shorter
[ https://issues.apache.org/jira/browse/JENA-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396075#comment-17396075 ]
Andy Seaborne commented on JENA-2145:
-------------------------------------
> So it should be a simple matter to implement the shorter notation.
Contributions welcome!
> shaclc serialization of datatypes should be shorter
> ---------------------------------------------------
>
> Key: JENA-2145
> URL: https://issues.apache.org/jira/browse/JENA-2145
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Vladimir Alexiev
> Priority: Major
>
> https://github.com/euBusinessGraph/eubg-data/blob/master/model/ebg-shapes.shaclc includes the following:
> {noformat}
> skos:altLabel xsd:string|rdf:langString !pattern="^ | $| {2}" [0..*] .
> {noformat}
> This is output more verbosely as:
> {noformat}
> skos:altLabel ! pattern="^ | $| {2}" datatype=xsd:string | datatype=rdf:langString .
> {noformat}
> The shorter notation is allowed according to https://w3c.github.io/shacl/shacl-compact-syntax/#rule-propertyType:
> "propertyType: If ?iri is one of the RDF datatypes supported by SPARQL 1.1 (such as xsd:string) then produce a triple ?property sh:datatype ?iri, otherwise ?property sh:class ?iri."
> Jena already checks whether the IRI is a known datatype and otherwise outputs "class=". So it should be a simple matter to implement the shorter notation.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)