Ok, I’ll stick to the original

Thx michel






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>



[cid:image001.gif@01D61721.49C03060]<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 <topbraid-users@googlegroups.com> Namens 
Holger Knublauch
Verzonden: Monday, April 20, 2020 2:03 PM
Aan: topbraid-users@googlegroups.com
Onderwerp: Re: [topbraid-users] syntax in shacl error



On 20/04/2020 5:58 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:
One more shacl question though....
Wrt:

smls:Activity
  a rdfs:Class, sh:NodeShape;
  sh:property [
    sh:path rdf:type ;
    sh:not [ sh:or ( [ sh:hasValue smls:PhysicalObject ; ]
                     [ sh:hasValue smls:InformationObject ; ]
                     [ sh:hasValue smls:State ; ]
                     [ sh:hasValue smls:Event ; ]
                     [ sh:hasValue smls:SpatialRegion ; ]
                     [ sh:hasValue smls:TemporalRegion ; ]
                    ) ;
            ] ; ] .


Is it possible to do the “not/or” one level lower? So just on the values: 
sms:State, Event, SpatialRegion, ... a bit like the OWL unions....

In the shacl spec I see no eamples so I guess not.....I was thinking about:

smls:Activity
  a rdfs:Class, sh:NodeShape;
  sh:property [
    sh:path rdf:type ;
    sh:hasValue sh:not [ sh:or ( smls:PhysicalObject
                               smls:InformationObject
                               smls:State
                               smls:Event ; ]
                               smls:SpatialRegion
                               smls:TemporalRegion
                             ) ;
            ] ; ] .

But this gives error for punctuation after “not”......

No, this is not valid Turtle, and I don't see how to construct better RDF 
triples to express this. You can however define and use your own SHACL 
constraint component similar to the AllDifferent example that I had outlined 
before.

Holger



Thx Michel



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>



[cid:image001.gif@01D61721.49C03060]<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: 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<topbraid-users@googlegroups.com><mailto:topbraid-users@googlegroups.com>
Verzonden: Thursday, April 16, 2020 8:52 PM
Aan: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>
Onderwerp: RE: [topbraid-users] syntax in shacl error


Got it, stupid mistake indeed, missing ]





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>



[cid:image001.gif@01D61721.49C03060]<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: 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>>
Verzonden: Thursday, April 16, 2020 7:46 PM
Aan: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>
Onderwerp: RE: [topbraid-users] syntax in shacl error

Even shorter:

smls:Activity
  a rdfs:Class, sh:NodeShape;
  sh:property [
    sh:path rdf:type ;
    sh:not [ sh:or ( [ sh:hasValue smls:PhysicalObject ; ]
                     [ sh:hasValue smls:InformationObject ; ]
                     [ sh:hasValue smls:State ; ]
                     [ sh:hasValue smls:Event ; ]
                     [ sh:hasValue smls:SpatialRegion ; ]
                     [ sh:hasValue smls:TemporalRegion ; ]
                    ) ;
            ] .






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>



[cid:image001.gif@01D61721.49C03060]<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: 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>>
Verzonden: Thursday, April 16, 2020 7:43 PM
Aan: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>
Onderwerp: RE: [topbraid-users] syntax in shacl error

Pinpointed the error to:

# baseURI: https://w3id.org/def/smls-shacl
# imports: http://qudt.org/schema/qudt
# imports: http://qudt.org/vocab/quantitykind
# imports: http://qudt.org/vocab/unit
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://datashapes.org/dash
# prefix: smls

@prefix smls: 
<https://w3id.org/def/smls-shacl#<https://w3id.org/def/smls-shacl>> .
@prefix dash: <http://datashapes.org/dash#<http://datashapes.org/dash>> .
@prefix sh: <http://www.w3.org/ns/shacl#<http://www.w3.org/ns/shacl>> .
@prefix owl: <http://www.w3.org/2002/07/owl#<http://www.w3.org/2002/07/owl>> .
@prefix quantitykind: <http://qudt.org/vocab/quantitykind/> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix rdf: 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#<http://www.w3.org/1999/02/22-rdf-syntax-ns>>
 .
@prefix rdfs: 
<http://www.w3.org/2000/01/rdf-schema#<http://www.w3.org/2000/01/rdf-schema>> .
@prefix skos: 
<http://www.w3.org/2004/02/skos/core#<http://www.w3.org/2004/02/skos/core>> .
@prefix unit: <http://qudt.org/vocab/unit/> .
@prefix xsd: 
<http://www.w3.org/2001/XMLSchema#<http://www.w3.org/2001/XMLSchema>> .

<https://w3id.org/def/smls-shacl>
  a owl:Ontology ;
  owl:imports <http://qudt.org/schema/qudt> ;
  owl:imports <http://qudt.org/vocab/quantitykind> ;
  owl:imports <http://qudt.org/vocab/unit> ;
  owl:imports <http://www.w3.org/2004/02/skos/core> ;
  owl:imports <http://datashapes.org/dash> ;
.
smls:Activity
  a rdfs:Class ;
.
smls:ActivityShape
  a sh:NodeShape ;
  sh:targetClass smls:Activity ;
  sh:property [
    sh:path ( [ sh:path rdf:type ; ]
              [ sh:zeroOrMorePath rdfs:subClassOf ; ] ) ;
    sh:not [ sh:or ( [ sh:hasValue smls:PhysicalObject ; ]
                     [ sh:hasValue smls:InformationObject ; ]
                     [ sh:hasValue smls:State ; ]
                     [ sh:hasValue smls:Event ; ]
                     [ sh:hasValue smls:SpatialRegion ; ]
                     [ sh:hasValue smls:TemporalRegion ; ]
                    ) ;
            ] ;
.

The path seems fine...
So it must be in the not / or combi I guess....






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>



[cid:image001.gif@01D61721.49C03060]<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 16, 2020 7:07 PM
Aan: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>
Onderwerp: Re: [topbraid-users] syntax in shacl error

I don’t know about your use of sh:or, but there is no such thing as 
sh:Property. There is sh:property.

My recommendation is to use TopBraid Composer to create your shapes. 
Personally, I would find it challenging to use a plain text editor to put 
together a set of shapes (or any other code where syntax can be complex) 
without any errors.

On Apr 16, 2020, at 12:18 PM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> wrote:

smls:SpatialLocationShape
  a sh:NodeShape ;
  sh:targetClass smls:SpatialLocation ;
  sh:Property [
    sh:path smls:hasSpatialReference ;
    sh:class smls:SpatialReference ;
    ] ;
  sh:Property [
    sh:path smls:hasSpatialReferenceSystem ;
    sh:class smls:SpatialReferenceSystem ;
    ] ;
.

--
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/98BAFB78-B0D6-4F66-81CC-FE8EF95CC0DB%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/98BAFB78-B0D6-4F66-81CC-FE8EF95CC0DB%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/690bdbb4c5a449cdb11a38c2917e73d6%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/690bdbb4c5a449cdb11a38c2917e73d6%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/6965b7457582475ba0ff8b1dbfb50365%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/6965b7457582475ba0ff8b1dbfb50365%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/b46afb446ad24890878d9048da2a2894%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/b46afb446ad24890878d9048da2a2894%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/c516d267ebd740d28fc60da0f0cb631f%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/c516d267ebd740d28fc60da0f0cb631f%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/ab73fd9d-9b65-6ce9-65b9-57d57629b5f6%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/ab73fd9d-9b65-6ce9-65b9-57d57629b5f6%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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/5e6cdf47082043df9f7cd28288195188%40tno.nl.

Reply via email to