Hi all,
This is a simple question regarding SHACL functions in TBCME. Apologize for posting it here, I didn't find any other places to discuss this. Please point me to it if you know any place like "StackOverflow" for SHACL.
Based on my previous question, I trying to build a validation rule to identify the possible disease type of patients. My current rule is: if the subject has any of the features A, B, C, AND it doesn't have feature D. Then the subject could be predicted as having object X. I am using the function "sh:in" to include the feature A, B, C. However, I am stuck at the place of how to present the negative presence of feature D. I've tried to search for all the SHACL rule on W3C, and here is one I found that could be relevant.
sh:property [
sh:path ex:bCode ;
sh:pattern "D" ;
sh:flags "i" ; # Ignore case
] .
I use the string from feature D as the pattern to ignore. However, it doesn't work. The subject with feature D was still be predicted as subject X.
Was I on the wrong track? What's a more accurate SHACL function to define the non-presence of a feature? The feature I am talking about here is the Nodeshape under properties.
Thanks a lot,
Emily