Hi,
On Stardog Studio, I have issues with basic reasoning tasks. I defined Installation to be equivalent to wearing a racket and would like for tom, when wearing a racket, to be classified as Installation :
You would need to place your ontology/TBox into the <tag:stardog:api:context:schema> named graph, or change the reasoning.schema.graphs setting on the database from its default. If I do that your query works as intended.
You could implement your owl axiom more intuitively as a Stardog Rule as follows.
rule :wearsRacket
if {
?x :wears :racket .
}
then {
?x a :Installation .
}
You can enter the rule in Studio. Just enter the text above, select the worksheet type as SRS in the bottom right hand corner, select your database and named graph and choose Add Data
Or you can use Designer Rule Builder
You could also enter the rule programatically as
insert data {
graph <urn:mySchema> # your reasoning schema graph
{
:wearsRacket a stardog:rule:SPARQLRule .
:wearsRacket stardog:rule:content """IF {
?x :wears :racket .
}
THEN
{
?x a :Installation .
}
"""
}
}