Not sure about “best” but I did this and it works great and aligns with your model:
1) Added to ensure drop-down lists show the right instances for selection in a UI ex:Heavy a ex:LoadLevelType ; rdfs:label "Heavy" ; . ex:Light a ex:LoadLevelType ; rdfs:label "Light" ; . ex:Normal a ex:LoadLevelType ; rdfs:label "Normal" ; . 2) sh:in in the PropertyShape gives me a violation if I go in and make an instance with anything other than the 3 selections ex:Vehicle-loadLevel a sh:PropertyShape ; sh:path ex:loadLevel ; sh:class ex:LoadLevelType ; sh:in ( ex:Light ex:Normal ex:Heavy ) ; . Cheers, David > On 21 Apr 2020, at 10:07, 'Bohms, H.M. (Michel)' via TopBraid Suite Users > <topbraid-users@googlegroups.com> wrote: > > If I want to move: > > ex:loadLevel > a rdf:Property ; > rdfs:domain ex:Vehicle ; > rdfs:range ex:LoadLevelType ; > . > > ex:LoadLevelType > a rdfs:Class ; > rdfs:subClassOf smls:EnumerationType ; > owl:oneOf ( > ex:Light > ex:Normal > ex:Heavy > ) ; > . > > To SHACL; what is the best way to handle the owl:oneOf? > > 1. in a property shape for loadLevel involving sh:targetSubjectsOf with sh:in > > 2. in the nodeshape for vehicle with sh:in on with path ex:loadLevel > > For rdfs ranges I use 2. in case there is also a domain and 1. In case there > is no domain, but here the constraint is more generic on the range class. > > Thx Michel > > Ps > Related: > In general wouldn’t it be more precise to always map a range to a property > shape (involving targetSubjectsOf) so also in case there is a domain > clause...since domain and range are fully independent.... > > > > > > > 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/33cb2621c13641ffbf7e027bf9111354%40tno.nl > > <https://groups.google.com/d/msgid/topbraid-users/33cb2621c13641ffbf7e027bf9111354%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. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/DD08E718-3A78-4210-B9B1-3C48353AC734%40topquadrant.com.