extract-cbd-shape
Version:
Extract an entity based on CBD and a SHACL shape
32 lines (22 loc) • 812 B
text/turtle
@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
ex:Person1 a ex:Person ;
ex:firstName "Person";
ex:lastName "1";
ex:knows ex:Person2 .
ex:Person2 a ex:Person ;
ex:name "Person 2" ;
ex:knows ex:Person1.
ex:Person3 a ex:Person;
ex:name "Person 3";
ex:knows <https://test.com/name.ttl#Person1> .
ex:Person4 a ex:Person ;
ex:qualifiedName ex:NamePerson4 .
# This triple must be included when extracting Person4, but it’s harder to find due to the sh:xone case
ex:NamePerson4 ex:name "Person 4" .
## This one, if configured with ex:TriggersHTTPShape, will trigger an HTTP request to be done
ex:Person5 a ex:Person;
ex:qualifiedName <https://test.com/name.ttl> .
ex:Person6 a ex:Person ;
ex:name "Person6" ;
ex:knows ex:Person3 .