rdf - Extract the superclass of a owl:unionOf list -


is possible superclass of owl:unionof list? have following:

ex:a rdf:type owl:class ;      owl:unionof (ex:pet ex:animal1 ) .  ex:b rdf:type owl:class ;      owl:unionof (ex:pet ex:animal2) . 

what i'm trying simple this:

    select ?x {       ?x superclass ex:pet     }  

where results should ex:a , ex:b. if ex:pet replaced ex:animal1, result ex:a.

the relationship should other way around: if sparql endpoint supports inferences,

select ?x  {ex:pet subclassof ?x. };  

should work.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -