Hi David,
Well thanks for the reply.
The namespaces are correct and the URI for my class, well the
ontology I am using does not have a uri to a class but surely has a
reference Id that is specified for a class say "Bomb" as "#Bomb".
This is a small portion of my ontology code.
<owl:Class rdf:ID="penetration_bomb">
<rdfs:subClassOf>
<owl:Class rdf:about="#bomb"/>
</rdfs:subClassOf>
</owl:Class>
and I wish to get the answer to the query "Subclass of Bomb"
where the answer should be "penetration_bomb."
On May 12, 11:13 am, David Decraene <
david.MA.decra...@gmail.com>
wrote:
> Hi Neha,
>
> I'm sorry but I'm not experienced with Protege and it's SPARQL
> implementation itself.
> Perhaps it is a problem with namespaces, did you try entering the
> entire URI for 'bomb'?
> Also unsure whether you need the double quotes around the reference..
>
> something like:
> Select ?g
> WHERE { ?g rdfs:subClassOfhttp://
myreference.test.com/ontology#bomb