I’m building constraints for form building, and I'm wondering the best way to constrain a PropertyShape to say for a given property not only link to individuals of a particular class type, but also individuals
from a particular scheme.
For example, in the following we want to use the property rdau:P60552 to link to individuals skos:inScheme <http://rdaregistry.info/termList/configPlayback> .
sh:property [
sh:path <http://rdaregistry.info/Elements/u/P60552> ;
sh:class <http://www.w3.org/2004/02/skos/core#Concept> ;
sh:description "Relates a resource to a number of sound channels used to make a recording." ;
sh:name "Has playback channels" ;
sh:nodeKind sh:IRI ;
I have a feeling based on the SHACL spec the answer is somewhere in the SPARQL-based constraints, but could someone confirm?
Thanks in advance for any pointers,
Steven
--
Steven Folsom
Metadata Specialist
Cornell University Library
http://orcid.org/0000-0003-3427-5769
http://vivo.cornell.edu/individual/sf433
@sf433
sh:property [
sh:path http://rdaregistry.info/Elements/u/P60552/skos:inScheme ;
sh:nodeKind sh:IRI ;
sh:or (
[ sh:value <http://rdaregistry.info/termList/configPlayback> ;
]
[ sh:value <http://xyz.org/otherscheme> ;
]
) ;
];
sh:property [
sh:path
<http://rdaregistry.info/Elements/u/P60552/skos:inScheme> ;
sh:nodeKind
sh:IRI ;
sh:in ( <http://rdaregistry.info/termList/configPlayback> <http://xyz.org/otherscheme> ) ;
sh:minCount 1 ;