Re: [topbraid-users] union in sh

2021-07-21 Thread David Price
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,

> On 21 Jul 2021, at 12:02, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> 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
> E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl>
> Location <http://www.tno.nl/locations/DTS>
> 
>  
>  <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> 
> mailto:topbraid-users@googlegroups.com>> 
> Namens David Price
> Verzonden: woensdag 21 juli 2021 12:24
> Aan: topbraid-users@googlegroups.com <mailto:topbraid-users@googlegroups.com>
> CC: Kronemeijer, Redmer  <mailto:redmer.kronemei...@crow.nl>>
> Onderwerp: Re: [topbraid-users] union in sh
>  
> OWL logic cannot be used in SHACL.
>  
> We provide these resources to answer to this kind of question:
>  
> TopQuadrant.com <http://topquadrant.com/> SHACL learning page at 
> https://www.topquadrant.com/technology/shacl/ 
> <https://www.topquadrant.com/technology/shacl/>
>  
> SHACL and OWL Compared at https://spinrdf.org/shacl-and-owl.html 
> <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
> 
> 
> On 21 Jul 2021, at 09:40, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
> mailto:topbraid-users@googlegroups.com>> 
> wrote:
>  
> 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
> E michel.bo...@tno.nl <mailto:michel.bo...@tno.nl>
> Location <http://www.tno.nl/locations/DTS>
> 
>  
>  <http://www.tno.nl/>
> T

RE: [topbraid-users] union in sh

2021-07-21 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
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
E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl>

Location<http://www.tno.nl/locations/DTS>



[cid:image001.gif@01D77E30.B3B96280]<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  Namens 
David Price
Verzonden: woensdag 21 juli 2021 12:24
Aan: topbraid-users@googlegroups.com
CC: Kronemeijer, Redmer 
Onderwerp: Re: [topbraid-users] union in sh

OWL logic cannot be used in SHACL.

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

TopQuadrant.com<http://TopQuadrant.com> SHACL learning page at 
https://www.topquadrant.com/technology/shacl/

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


On 21 Jul 2021, at 09:40, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

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
E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl>

Location<http://www.tno.nl/locations/DTS>



<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/48bc4658abf64299bb7b1b5a709f8d3c%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/48bc4658abf64299bb7b1b5a709f8d3c%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://grou

Re: [topbraid-users] union in sh

2021-07-21 Thread David Price
OWL logic cannot be used in SHACL.

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

TopQuadrant.com  SHACL learning page at 
https://www.topquadrant.com/technology/shacl/ 


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


where you find this:

Logical Constraints
owl:complementOfsh: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

> On 21 Jul 2021, at 09:40, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> 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
> E michel.bo...@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. 
>  
> 
> -- 
> 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/48bc4658abf64299bb7b1b5a709f8d3c%40tno.nl
>  
> .

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/957F932B-1057-4E33-A1EB-93F53A964E0A%40topquadrant.com.