I am trying to query the subClassOf triple of a class, which will give me details on the structure of said class. (I need this data to perform code generation) To make sure the error is not specific to my ontology, I created a very small example to demonstrate the problem. You can find the ontology attached as a turtle file.
When trying to run the following query against a stardog-4.0-RC1 database,
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <http://www.semanticweb.org/cg/ontologies/2015/9/untitled-ontology-12#>
SELECT *
WHERE {
?class rdf:type owl:Class;
rdfs:subClassOf [ rdf:type owl:Class ;
owl:intersectionOf [ rdf:rest*/rdf:first ?otherClass ] ] .
FILTER (
?class = :SubClass
)
}
group by ?class ?otherClass
class: http://www.semanticweb.org/cg/ontologies/2015/9/untitled-ontology-12#SubClass otherClass: null
10:24:44.142 [localEventLoopGroup-5-3] WARN c.c.pellet.rdf.DefaultRDFAxiomReader - Invalid list structure: List ?2 does not have a first property.
I would be very thankful for any ideas / hints!
Regards,
Chris
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en