- From: Simon Steyskal <simon.steyskal@wu.ac.at>
- Date: Thu, 01 Oct 2015 12:23:53 +0200
- To: kcoyle@kcoyle.net
- Cc: public-data-shapes-wg@w3.org
Hi! > Also, I would appreciate getting the SHACL for this very common > situation: > > foaf:name (min1 max1) > OR > foaf:forename (min1 max1) AND foaf:lastname (min1 max1) I guess that should do the trick. ex:nameShape a sh:Shape ; sh:constraint [ a sh:OrConstraint ; sh:shapes( [ sh:property [ sh:predicate foaf:name ; sh:minCount 1 ; sh:maxCount 1 ; ] ] [ sh:property [ sh:predicate foaf:forename ; sh:minCount 1 ; sh:maxCount 1 ; ] ; sh:property [ sh:predicate foaf:lastname ; sh:minCount 1 ; sh:maxCount 1 ; ] ] ) ] . --- DDipl.-Ing. Simon Steyskal Institute for Information Business, WU Vienna www: http://www.steyskal.info/ twitter: @simonsteys Am 2015-10-01 12:15, schrieb Karen Coyle: > I've started to create DCMI tests in: > > data-shapes/data-shapes-test-suite/tests/dcmi/ > > However, I don't have a way to test my tests to see if I've coded them > correctly. Before I do many more, could someone who DOES have that > ability please run them for me? Thanks. > > Also, I would appreciate getting the SHACL for this very common > situation: > > foaf:name (min1 max1) > OR > foaf:forename (min1 max1) AND foaf:lastname (min1 max1) > > I'll then create variations. Thanks again. > kc
Received on Thursday, 1 October 2015 10:24:31 UTC