Hi Tony,
see http://w3c.github.io/data-shapes/shacl/
Each value of|sh:property|must be anIRI
<http://w3c.github.io/data-shapes/shacl/#dfn-iri>or ablank node
<http://w3c.github.io/data-shapes/shacl/#dfn-blank-node>that is
thesubject <http://w3c.github.io/data-shapes/shacl/#dfn-subject>of
precisely onetriple
<http://w3c.github.io/data-shapes/shacl/#dfn-rdf-triple>with
eitherpredicate
<http://w3c.github.io/data-shapes/shacl/#dfn-predicate>|sh:predicate|or|sh:path|.
In other words, you need individual sh:property nodes for each
predicate. TopBraid API would pick a "random" one of these if you have
multiple, but it's in fact an invalid shapes graph.
HTH
Holger
On 10/11/2016 0:48, Tony Hammond wrote:
Hi:
We just encountered a problem with object lists in using the SHACL
API. (We're actually using our own fork but this is only in order to
add a helper method to make launching easier for us.)
We had been using constraint patterns with sh:predicate using object
lists as follows:
sh:property [
sh:predicate skos:historyNote , skos:note ;
sh:datatype rdf:langString ;
] ;
but it seems that only the last value in the comma-separated list is
processed.
Is that the expected behaviour? Does that mean we need t reframe the
constraints to operate on one property at a time, e.g.
sh:property [
sh:predicate skos:historyNote ;
sh:datatype rdf:langString ;
] ;
sh:property [
sh:predicate skos:note ;
sh:datatype rdf:langString ;
] ;
Thanks for any help,
Tony
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include the TopBraid
Suite family of products and its base technologies such as
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Group "TopBraid
Suite Users", the topics of which include the TopBraid Suite family of products and
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.