[ https://issues.apache.org/jira/browse/JENA-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-2145: -------------------------------- Priority: Minor (was: Major) > 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: Minor > > 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)