Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-29-2022 11:05 PM - edited 08-29-2022 11:10 PM
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:
08-30-2022 03:40 AM
I found this in w3c SHACL example. That is exactly what i am looking for.
ex:HandShape
a sh:NodeShape ;
sh:targetClass ex:Hand ;
sh:property [
sh:path ex:digit ;
sh:maxCount 5 ;
] ;
sh:property [
sh:path ex:digit ;
sh:qualifiedValueShape [ sh:class ex:Thumb ] ;
sh:qualifiedValueShapesDisjoint true ;
sh:qualifiedMinCount 1 ;
sh:qualifiedMaxCount 1 ;
] ;
sh:property [
sh:path ex:digit ;
sh:qualifiedValueShape [ sh:class ex:Finger ] ;
sh:qualifiedValueShapesDisjoint true ;
sh:qualifiedMinCount 4 ;
sh:qualifiedMaxCount 4 ;
] .
All the sessions of the conference are now available online