shacl for range only (in case of implicit targets)

4 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Jul 27, 2021, 7:17:19 AM7/27/21
to topbrai...@googlegroups.com

I have in rdfs:

 

x:hasUnit a rdf:Property ;

  rdfs:range qudt:Unit .

 

Can my corresponding shacl with implicit targets simply be?:

 

x:hasUnit a sh:NodeShape ;

  sh:class qudt:Unit .

 

or do I need some sh:targetObjectsOf?

 

nen2660:hasUnit

  a sh:NodeShape ;

  sh:class qudt:Unit ;

  sh:targetObjectsOf nen2660:hasUnit ;

.

 

 

 

Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl

Location

 

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.

 

Bohms, H.M. (Michel)

unread,
Jul 27, 2021, 9:19:02 AM7/27/21
to topbrai...@googlegroups.com

Or…..

 

Can I be implicit but needing a sh:property

 

:hasUnit

  a sh:NodeShape ;

  sh:property [

    sh:path :hasUnit ;

    sh:class qudt:Unit ;

  ]

.

 

Or is this nonsense ( something being a rdf:Property and a sh:NodeShape at the same time)

 

 

Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl

Location

 

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.

 

Holger Knublauch

unread,
Jul 27, 2021, 7:57:50 PM7/27/21
to topbrai...@googlegroups.com

To establish a global range-like property constraint, you could do

ex:hasUnitShape
    a sh:NodeShape ;
    sh:targetObjectsOf ex:hasUnit ;


    sh:class qudt:Unit .

Holger

--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/0c8c9645c45245d7aff5adafbff2c8a6%40tno.nl.

Bohms, H.M. (Michel)

unread,
Jul 28, 2021, 3:24:57 AM7/28/21
to topbrai...@googlegroups.com

Thx Holger

So there is no implicit variant here without  a target?

Like:

ex:hasUnit


    a sh:NodeShape ;
    sh:class qudt:Unit .

(where ex:hasUnit is also an rdfs:Property somewhere else/imported).

Holger Knublauch

unread,
Jul 28, 2021, 4:11:05 AM7/28/21
to topbrai...@googlegroups.com

No.

Holger

Reply all
Reply to author
Forward
0 new messages