Purely from the data validation perspective, yes. If you, however, you wanted to tell tools that the property should be available for all resources to enter values, you would need to still associate it with something like owl:Thing or rtfs:Resource e.g.,:
ex:Shape1 a sh:NodeShape; sh:targetClass owl:Thing; sh:property [sh:path ex:someproperty; sh:class ex:somerangeclass]. Or owl:Thing a sh:NodeShape; sh:property [sh:path ex:someproperty; sh:class ex:somerangeclass]. Even better if you had your own class for all resources that you are working with. > On Apr 2, 2020, at 11:25 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users > <topbraid-users@googlegroups.com> wrote: > > One more > > Suppose I have a property with ONLY a range specified > > In that case I do need the PropertyShape right? > > (since it becomes a universal constraint, not only in he context of some > domain classes) > > > > > > Dr. ir. H.M. (Michel) Böhms > Senior Data Scientist > > T +31888663107 > M +31630381220 > E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl> > Location > <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> > > > <image001.gif> <http://www.tno.nl/> > This message may contain information that is not intended for you. If you are > not the addressee or if this message was sent to you by mistake, you are > requested to inform the sender and delete the message. TNO accepts no > liability for the content of this e-mail, for the manner in which you use it > and for damage of any kind resulting from the risks inherent to the > electronic transmission of messages. > > > > > Van: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > Namens Irene Polikoff > Verzonden: Thursday, April 2, 2020 5:09 PM > Aan: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > Onderwerp: Re: [topbraid-users] shacl mapping question for domain/ranges > > As explained in https://spinrdf.org/shacl-and-owl.html > <https://spinrdf.org/shacl-and-owl.html>, we translate functional into > sh:maxCount. > > Other than that, they do not introduce anything additional. > > > On Apr 2, 2020, at 11:02 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > wrote: > > > Would I only need the extra property shape complexity in case of the global > property constraints like functional etc.? > > > > > Dr. ir. H.M. (Michel) Böhms > Senior Data Scientist > > > T +31888663107 > M +31630381220 > E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl> > Location > <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> > > > <image001.gif> <http://www.tno.nl/> > This message may contain information that is not intended for you. If you are > not the addressee or if this message was sent to you by mistake, you are > requested to inform the sender and delete the message. TNO accepts no > liability for the content of this e-mail, for the manner in which you use it > and for damage of any kind resulting from the risks inherent to the > electronic transmission of messages. > > > > > Van: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > Namens dprice > Verzonden: Thursday, April 2, 2020 4:49 PM > Aan: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > Onderwerp: Re: [topbraid-users] shacl mapping question for domain/ranges > > No - don’t need sh:targetSubjectsOf or sh:targetObjectsOf for the basic case. > > Reference the property shape from the NodeShape that has the property as a > possible predicate using sh:property. Set the sh:class or sh:datatype in the > property shape and the basics are done. > > Suggest reading this as it has a lot of good examples and compares RDFS/OWL > and SHACL: > > https://spinrdf.org/shacl-and-owl.html > <https://spinrdf.org/shacl-and-owl.html> > > Cheers, > David > > On 2 Apr 2020, at 15:34, 'Bohms, H.M. (Michel)' via TopBraid Suite Users > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > wrote: > > So in the end: > > > ex:somepropertyShape1 > a sh:PropertyShape ; > sh:path ex:someproperty ; > sh:targetSubjectsOf ex:someproperty ; > sh:class ex:somedomainclass . > > ex:somepropertyShape2 > a sh:PropertyShape ; > sh:path ex:someproperty ; > sh:targetObjectsOf ex:someproperty ; > sh:class ex:somerangeclass . > > the path and target subjectsof feel a bit double... > > > > > > > Dr. ir. H.M. (Michel) Böhms > Senior Data Scientist > > > > T +31888663107 > M +31630381220 > E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl> > Location > <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> > > > <image001.gif> <http://www.tno.nl/> > This message may contain information that is not intended for you. If you are > not the addressee or if this message was sent to you by mistake, you are > requested to inform the sender and delete the message. TNO accepts no > liability for the content of this e-mail, for the manner in which you use it > and for damage of any kind resulting from the risks inherent to the > electronic transmission of messages. > > > > > Van: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > Namens dprice > Verzonden: Thursday, April 2, 2020 4:29 PM > Aan: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com> > Onderwerp: Re: [topbraid-users] shacl mapping question for domain/ranges > > SHACL spec says: > 2.3 Property Shapes > > A property shape is a shape <https://www.w3.org/TR/shacl/#dfn-shape> in the > shapes graph <https://www.w3.org/TR/shacl/#dfn-shapes-graph> that is the > subject <https://www.w3.org/TR/shacl/#dfn-subject> of a triple > <https://www.w3.org/TR/shacl/#dfn-rdf-triple> that has sh:path as its > predicate <https://www.w3.org/TR/shacl/#dfn-predicate>. > > See https://www.w3.org/TR/shacl/#property-shapes > <https://www.w3.org/TR/shacl/#property-shapes> > > Make a separate property shape and in it use sh:path to refer to the > property. Something like: > > ex:someproperty_shape > a sh:PropertyShape ; > sh:path ex:someproperty ; > ... > > sh:path can have more complex structures, but that’s a basic starting point. > See https://www.w3.org/TR/shacl/#dfn-shacl-property-path > <https://www.w3.org/TR/shacl/#dfn-shacl-property-path> > > Cheers, > David > > > > > On 2 Apr 2020, at 15:06, 'Bohms, H.M. (Michel)' via TopBraid Suite Users > <topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>> > wrote: > > > In RDFS: > > ex:someproperty > a rdf:Property ; > rdfs:domain ex:somedomainclass ; > rdfs:range ex:somerangeclass ; > > In SHACL: > > ex:someproperty > a rdf:Property, sh:PropertyShape ; > ….? > > Or not possible and need for: > > ex:somepropertyShape1 > a sh:PropertyShape ; > sh:targetSubjectsOf ex:someproperty ; > sh:class ex:somedomainclass . > > ex:somepropertyShape1 > a sh:PropertyShape ; > sh:targetObjectsOf ex:someproperty ; > sh:class ex:somerangeclass . > > > > > > Dr. ir. H.M. (Michel) Böhms > Senior Data Scientist > > > > > T +31888663107 > M +31630381220 > E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl> > Location > <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> > > > <image001.gif> <http://www.tno.nl/> > This message may contain information that is not intended for you. If you are > not the addressee or if this message was sent to you by mistake, you are > requested to inform the sender and delete the message. TNO accepts no > liability for the content of this e-mail, for the manner in which you use it > and for damage of any kind resulting from the risks inherent to the > electronic transmission of messages. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/ce25c5df596b4406a7311e9f27dfcb34%40tno.nl > > <https://groups.google.com/d/msgid/topbraid-users/ce25c5df596b4406a7311e9f27dfcb34%40tno.nl?utm_medium=email&utm_source=footer>. > > UK +44 (0) 7788 561308 > US +1 (336) 283-0808 > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/7A2451BE-9F50-4794-B063-6EE443F202A6%40topquadrant.com > > <https://groups.google.com/d/msgid/topbraid-users/7A2451BE-9F50-4794-B063-6EE443F202A6%40topquadrant.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/feeb11ed39f24ab48502b96bd376592a%40tno.nl > > <https://groups.google.com/d/msgid/topbraid-users/feeb11ed39f24ab48502b96bd376592a%40tno.nl?utm_medium=email&utm_source=footer>. > > UK +44 (0) 7788 561308 > US +1 (336) 283-0808 > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/6968267F-0626-494F-977E-F76F3FBCC156%40topquadrant.com > > <https://groups.google.com/d/msgid/topbraid-users/6968267F-0626-494F-977E-F76F3FBCC156%40topquadrant.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/18c9d1a8767943108581af75aae53bbc%40tno.nl > > <https://groups.google.com/d/msgid/topbraid-users/18c9d1a8767943108581af75aae53bbc%40tno.nl?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/B6D998C7-EF9D-4B82-9AD3-83422EDE79AF%40topquadrant.com > > <https://groups.google.com/d/msgid/topbraid-users/B6D998C7-EF9D-4B82-9AD3-83422EDE79AF%40topquadrant.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/da89311847274bbfbbe46231ca1bd23c%40tno.nl > > <https://groups.google.com/d/msgid/topbraid-users/da89311847274bbfbbe46231ca1bd23c%40tno.nl?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8785070C-02F7-403F-B673-B4286C29DC64%40topquadrant.com.