neha
neha

Reputation:

SPARQL query in Protege

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.

Upvotes: 1

Views: 4064

Answers (2)

rafael mezzomo
rafael mezzomo

Reputation: 11

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.

Upvotes: 1

laalto
laalto

Reputation: 152787

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>.

Upvotes: 3

Related Questions