On 24/10/2017 18:55, Bohms, H.M. (Michel) wrote:

When running my first shacl rule I get:

“

Operation failed.

On: 24-okt-2017 10:05:43

Reason:

java.lang.IllegalArgumentException: Shapes graph does not include tosh:http://datashapes.org/dash#DefaultValueTypeRule

“

On the rule in:

ruletry:Radiator

  rdf:type rdfs:Class ;

  rdf:type sh:NodeShape ;

rdfs:subClassOf rdfs:Resource ;

  sh:rule [

      rdf:type sh:TripleRule ;

sh:condition [

sh:path ruletry:hasRadiator/ruletry:size ;


The path is not in the syntax you want (what you have above is interpreted as a single URI).

Try

    sh:path ( ruletry:hasRadiator ruletry:size )

See the examples at

    https://www.w3.org/TR/shacl/#property-paths

On the tosh error message, does your file owl:import the dash (http://datashapes.org/dash) namespace? If it's not working, please send me the complete file.

HTH
Holger


sh:hasValue "large" ;

        ] ;

sh:object "big" ;

sh:predicate ruletry:kind ;

sh:subject sh:this ;

    ] ;

.

Guess (?)  related to the fact that tbc changes my coded input above to:

ruletry:Radiator

  rdf:type rdfs:Class ;

  rdf:type sh:NodeShape ;

rdfs:subClassOf rdfs:Resource ;

  sh:rule [

      rdf:type sh:TripleRule ;

sh:condition [

sh:path <http://example.org/ruletry#hasRadiator.ruletry:size> ;

sh:hasValue "large" ;

        ] ;

sh:object "big" ;

sh:predicate ruletry:kind ;

sh:subject sh:this ;

    ] ;

.

        

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=%213m1%214b1%214m5%213m4%211s0x47c5b58c52869997:0x56681566be3b8c88%218m2%213d52.000788%214d4.376707>

<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]>.
For more options, visit https://groups.google.com/d/optout.

--
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to