shacl-af triple rule conditions

18 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Jul 8, 2020, 1:15:26 PM7/8/20
to topbrai...@googlegroups.com

Hi Irene

 

I tried (one way of the earlier owl euquivalence, now in shacl):

 

:Wegdeel

  a owl:Class, sh:NodeShape ;

  rdfs:subClassOf :IMGeo-Object ;

  sh:rule [ a sh:TripleRule ;

    sh:subject sh:this ;

    sh:predicate rdf:type ;

    sh:object :AsfaltverhardingMetDichteDeklagen ;

    sh:condition [ sh:property [

       sh:path :function ;

       sh:hasValue :rijbaan-lokaleweg ; ] ; ] ;

    sh:condition [ sh:property [

       sh:path :fysiekvoorkomen ;

       sh:hasValue :geslotenverharding ; ] ; ] ;

          ] ;

.

 

But in tbc, inferencing is not working and I see empty where clause:

Any idea?

 

Should I combine the conditions differently?

 

Thx Michel

 

 

 

 

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

+31888663107
+31630381220
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.

 

 

 

 

amsterdam.ttl
smls-shacl.ttl

Bohms, H.M. (Michel)

unread,
Jul 8, 2020, 4:29:57 PM7/8/20
to topbrai...@googlegroups.com

Also tried:

 

:Wegdeel

  rdf:type owl:Class ;

  rdf:type sh:NodeShape ;

  rdfs:subClassOf :IMGeo-Object ;

  sh:rule [

      rdf:type sh:TripleRule ;

      sh:condition [

          sh:property [

              sh:path :function ;

              sh:hasValue :rijbaan-lokaleweg ;

            ] ;

          sh:property [

              sh:path :fysiekvoorkomen ;

              sh:hasValue :geslotenverharding ;

            ] ;

        ] ;

      sh:object :AsfaltverhardingMetDichteDeklagen ;

      sh:predicate rdf:type ;

      sh:subject sh:this ;

    ] ;

.

 

With no result (no inference of extra instance of :ASfaltverhardingMetDichteDeklagen),

Thx for advide, Michel

 

Ps

The other way round with sh:values rules goes without problems..

Holger Knublauch

unread,
Jul 9, 2020, 12:54:30 AM7/9/20
to topbrai...@googlegroups.com

I don't see anything obviously wrong. How did you run those rules - using the Run inferences buttons (or TBC or Transform on EDG)?

Hard to comment further without seeing a minimal, complete example that I could run myself.

Holger

--
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/fb55750b1ddc4935ad90a66cb2cbe8f1%40tno.nl.

Bohms, H.M. (Michel)

unread,
Jul 9, 2020, 3:42:25 AM7/9/20
to topbrai...@googlegroups.com

Hi David, I run from TBC.

Attached a minimal example.

Expected behaviour:

New instance for :AsfaltverhardingMetDichteDeklagen

 

 

Thx a lot, Michel

amsterdam-shacl-minimal.ttl
amsterdam-shacl-minimal.ttl.tbc

Holger Knublauch

unread,
Jul 9, 2020, 4:27:35 AM7/9/20
to topbrai...@googlegroups.com

You had a typo, so the hasValue never conformed - functie vs function

Holger

Bohms, H.M. (Michel)

unread,
Jul 9, 2020, 4:40:09 AM7/9/20
to topbrai...@googlegroups.com

Deeply ashamed

 

But at the same time very happy since my owl-equivalence example now works perfectly 2-way in shacl-af ! 😊

 

Thx David!

Reply all
Reply to author
Forward
0 new messages