tags:

views:

935

answers:

2

I am trying to query my ontology through the Protégé Tool. But the result I am getting for my queries is "No Match Found".

My SPARQL query is given below.

SELECT ?g
WHERE { ?g rdfs:subClassOf "#bomb" . }

Please can anyone tel me why am I getting the result as this.

Thanks in advance.

+2  A: 

The graph pattern

?g rdfs:subClassOf "#bomb" .

tries to matche a statement with literal string "#bomb". Since the predicate is rdfs:subClassOf, you probably want to match a class URI. So, change "#bomb" to <your-full-uri-here>.

laalto
A: 

Hello,

Protege 4 don't have support for SPARQL language. Now you might use simples queries like that:

Person that hasChild some *True*

The result is a list of individuals that are father.

rafael mezzomo