metadata-qa-api icon indicating copy to clipboard operation
metadata-qa-api copied to clipboard

TargetNode

Open pkiraly opened this issue 9 years ago • 0 comments

TargetNode := node:IRI|literal|BNode

sh:targetNode: A TargetNode matches node if node appears as a node (any subject or object in a triple) in the data graph.

# In a graph with multiple nodes:
<http://a.example/Alice> foaf:name "Alice" ; foaf:knows <http://a.example/Bob> .
<http://a.example/Bob> foaf:name "Bob" .
<http://a.example/Sue> foaf:name "Sue" .
# sh:targetNode could select a subset of them to be tested against the <Person> and <Name> shapes:
<PersonShape> sh:targetNode <http://a.example/Bob>, <http://a.example/Sue> .
<NameShape> sh:targetNode "Alice", "Bob" .

Parent issue is Targets #36

pkiraly avatar Sep 29 '16 07:09 pkiraly