Hi
A bit confused, and need some help here. Followed @jbarrasa youtube video.
I am trying to write a SHACL script to make sure all nodes have 1 class A and 1 class B via predicate isClassifiedBy.
Data Example:
Product -> isClassifiedBy -> ClassA
Product -> isClassifiedBy -> ClassB
But looks like Neosemantics doesn't support or, and, xone etc at the moment. Any workaround please?
The current script is below:
call n10s.validation.shacl.import.inline('
@prefix neo4j: neo4j://graph.schema# .
@prefix sh: http://www.w3.org/ns/shacl# .
neo4j:ProductShape a sh:NodeShape ;
sh:targetClass neo4j:Product;
sh:property [
sh:path neo4j:isClassifiedBy ;
sh:class neo4j:ClassA ;
];
sh:property [
sh:path neo4j:isClassifiedBy ;
sh:class neo4j:ClassB ;
]
.
','Turtle')
#Neosemantics #SHACL