Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] sparql panel

Tania Tudorache tudorache at
Mon Feb 11 14:34:34 PST 2008


Yes, you can query the inferred information in several ways. You can use 
the API, see:

The SPARQL implementation is not linked to the inferred information 
provided by a reasoner (e.g. Pellet). So, you will not be able to access 
the inferred information through SPARQL. Actually, there is one way, by 
using the internal representation used by Protege to store inferred 
information. So, for example, you can write a query:

SELECT ?subject ?object
WHERE { ?subject protege:inferredType ?object }

which will return all the inferred types of all individuals in your 
ontology. First, you will have to run a reasoner, like the built-in 
Pellet connection, or a DIG reasoner. But, I discourage this approach 
because we are going to change soon the internal representation of 
inferred knowledge and then this solution won't work anymore.

Please post in future OWL related questions on the OWL mailing list.


Jun Du wrote:
> Hello everyone,
> I have a little question about the SPARQL panel in Protege. I have 
> just built a simple kb with the following structure
> A
> ----B(some instances)
> where the "A" is a superclass of "B" and  "B"  is initiated with some 
> instances and what I'd like to do is to retrieve all the instances of 
> A through SPARQL query, but in the SPARQL query panel the query is 
> always returned with "no matches". Have also tried to use reasoner  
> firstly to compute inferred types, but still no results. My question 
> is: can I query the inferred individuals under Protege?
> Thanks a lot for your help.
> Best Rgds,
> Jun
> ------------------------------------------------------------------------
> Testen Sie - die schnelle, personalisierte Homepage, über die 
> Sie auf alle für Sie relevanten Inhalte zentral zugreifen können. Hier 
> klicken! <>
> ------------------------------------------------------------------------
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at
> Instructions for unsubscribing: 

More information about the protege-discussion mailing list