union in sh

6 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Jul 21, 2021, 4:40:38 AMJul 21
to topbrai...@googlegroups.com, Kronemeijer, Redmer

I now have:

 

nen2660:QuantityValue

  a owl:Class ;

  rdfs:subClassOf [

      a owl:Restriction ;

      owl:allValuesFrom xsd:double ;

      owl:onProperty rdf:value ;

    ] ;

.

 

 

People want tof lex this into a double or a decimal

In owl its clear

But in this shacl I get:

nen2660:QuantityValue

  rdf:type rdfs:Class ;

  rdf:type sh:NodeShape ;

  rdfs:seeAlso nen2660-term:QuantityValue ;

  rdfs:subClassOf nen2660:Objectification ;

  skos:definition "The objectification of a value of a quantity (involving a quantitykind and a unit) having a complex value like a simple value sec combined with other metadata or just a combination of simple values"@en ;

  skos:prefLabel "Quantity value"@en ;

  sh:property [

      sh:path rdf:value ;

      sh:datatype [

          rdf:type owl:Class ;

          owl:unionOf (

              xsd:double

              xsd:decimal

            ) ;

        ] ;

    ] ;

.

 

Ie a piece of owl is introduced…after:

Isn’t there a more shacl-native way to do this?

 

Thx michel

 

 

 

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.

 

David Price

unread,
Jul 21, 2021, 6:24:19 AMJul 21
to topbrai...@googlegroups.com, Kronemeijer, Redmer
OWL logic cannot be used in SHACL.

We provide these resources to answer to this kind of question:


SHACL and OWL Compared at https://spinrdf.org/shacl-and-owl.html

where you find this:

Logical Constraints
owl:complementOf sh:not
owl:intersectionOf sh:and
owl:unionOf sh:or
owl:qualifiedMin/MaxCardinality 1 sh:xone
owl:disjointUnionOf sh:node/sh:or/sh:not

Cheers,
David

<image001.png>
Isn’t there a more shacl-native way to do this?
 
Thx michel
 
 
 
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
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/48bc4658abf64299bb7b1b5a709f8d3c%40tno.nl.


Bohms, H.M. (Michel)

unread,
Jul 21, 2021, 7:02:51 AMJul 21
to topbrai...@googlegroups.com, Kronemeijer, Redmer

That is good news.

But tbc does it when I add ‘x or y’ in the form……

 

So how would:

 

nen2660:QuantityValue

  rdf:type rdfs:Class ;

  rdf:type sh:NodeShape ;

  rdfs:seeAlso nen2660-term:QuantityValue ;

  rdfs:subClassOf nen2660:Objectification ;

  skos:definition "The objectification of a value of a quantity (involving a quantitykind and a unit) having a complex value like a simple value sec combined with other metadata or just a combination of simple values"@en ;

  skos:prefLabel "Quantity value"@en ;

  sh:property [

      sh:path rdf:value ;

      sh:datatype [

          rdf:type owl:Class ;

          owl:unionOf (

              xsd:double

              xsd:decimal

            ) ;

        ] ;

    ] ;

.

 

Look like in pure shacl?

 

 

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.

David Price

unread,
Jul 21, 2021, 7:45:48 AMJul 21
to topbrai...@googlegroups.com, Kronemeijer, Redmer
If it’s adding OWL structures then you are using the Composer OWL editing forms - so stop doing that. Import SHACL and drag in the needed SHACL properties (or edit in text editor for even more control).

As I pasted below, owl:unionOf is similar to sh:or so remove the owl:Class stuff and try that.

Cheers,

Reply all
Reply to author
Forward
0 new messages