Hi Michel,

A SHACL engine does not understand any OWL, so you cannot use owl:unionOf.

The SHACL spec says very clearly that “Each value of sh:targetClass in a shape 
is an IRI.” - see https://www.w3.org/TR/shacl/#targetClass 
<https://www.w3.org/TR/shacl/#targetClass>

Cheers,
David

> On 5 Feb 2020, at 12:16, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
> <[email protected]> wrote:
> 
> Dear Irene
>  
> Still bit struggling with TBCtoEDG.
>  
> Following your advice I made my ontology a shacl one in TBC.
>  
> I added:
> alim:NodeShape_1
>   rdf:type sh:NodeShape ;
>   sh:property [
>       sh:path rdfs:seeAlso ;
>       sh:datatype xsd:string ;
>     ] ;
>   sh:targetClass [
>       rdf:type owl:Class ;
>       owl:unionOf (
>           bs:InformationObject
>           bs:Activity
>           bs:PhysicalObject
>         ) ;
>     ] ;
> .
>  
> This way I hoped to get a rdfs:seeAlso property in my 
> bs:InformationObject/alim:Paper form. (I actually have data pointing to an 
> doc on the web).
>  
> However when I use EDG (including this update shacl file) and go to a 
> specific instance of InformationObject I get:
> <image001.jpg>
>  
> And also an error is thrown in TBC:
> <image007.jpg>
>  
> Thx for advice,
> Michel
>  
> Ps
> I attached the actual test ontology
>  
>  
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
> 
> T +31888663107
> M +31630381220
> E [email protected] <mailto:[email protected]>    
> 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>
> 
>  
> <image006.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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/ec66e6a6d0f840b093c55230981f3446%40tno.nl
>  
> <https://groups.google.com/d/msgid/topbraid-users/ec66e6a6d0f840b093c55230981f3446%40tno.nl?utm_medium=email&utm_source=footer>.
> <alim.shapes.ttl>

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/C95E0D48-B1D9-4E80-8120-36CE4B3230CF%40topquadrant.com.

Reply via email to