Hi Michel,

this SPARQL engine is configured to only run on the asserted triples. The usual mechanism to ask for instances of a given class is to use a path expression:

    ?instance rdf:type/rdfs:subClassOf* $superClass

in your case

    ?Anomaly rdf:type/rdfs:subClassOf* anomaly:Anomaly

This computes the "inferences" on the fly.

HTH
Holger


On 2020-12-09 6:38 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:

I have a data file (anomalies-of-ijsselbridge.ttl)

With instances of subclasses of class Anomaly.

When I do:

*PREFIX*anomaly: <https://w3id.org/def/anomaly#>

*PREFIX*rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

*SELECT**

*WHERE*{

?Anomaly rdf:type anomaly:Anomaly .

?Anomaly anomaly:forPhysicalObject ?BridgePart .

?Anomaly anomaly:globalEffect ?GlobalEffect

}

Has no results since I first have to run the superclass inferences.

When I do that (or more generally run TopSpin) I do not get these superclass instances.

Any idea what I could do wrong?

(query on subclass runs fine)

Thx a lot, 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 [email protected] <mailto:[email protected]>

        

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 [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/b3d58d518e3a44f692930205d01bbc8a%40tno.nl <https://groups.google.com/d/msgid/topbraid-users/b3d58d518e3a44f692930205d01bbc8a%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/b70342fa-ae64-8d25-ed83-107161829e8d%40topquadrant.com.

Reply via email to