And
Opened this issue · 0 comments
pkiraly commented
And := shapes:Set[Shape]
sh:and: Testing an And parameter against a value node returns pass if validating each member of the set shapes against the value node returned pass, otherwise fail.
<Person> sh:property [ sh:predicate foaf:name; sh:nodeKind sh:Literal ] .
<Customer> sh:property [ sh:predicate corp:custId; sh:datatype xsd:integer ] .
<User> sh:constraint [ sh:and (<Person> <Customer>) ] .
<user1> foaf:name "Alice"; corp:custId 1234 .
<user2> foaf:name "Bob"; corp:custId 1234.0 .
<User> <user1> pass
<User> <user2> fail "1234.0" is an xsd:double.