Hi,

I am querying subclasses of class (here id:365852007) which belongs to RDF collection like this

id:1 rdf:type owl:Class ;
        rdfs:subClassOf [ owl:intersectionOf ( ... id:365852007 ... ) ]  ;
        skos:prefLabel "something"@en .
id:2 rdf:type owl:Class ;
        rdfs:subClassOf [ owl:intersectionOf ( ... id:365852007 ... ) ]  ;
        skos:prefLabel "something else"@en .


... denotes random number of other elements in the list.

SPARQL:

select * where
{
    ?subclass rdfs:subClassOf [ owl:intersectionOf /rdf:rest*/rdf:first id:365852007  ] .
    ?subclass skos:prefLabel ?label .
}


This is slow (~10 secs) and we need to extend the query to subclasses of the subclasses and so on.

Is there any faster way to get this done?

Thanks!

Reply via email to