[Pellet-users] SPARQL query in Pellet

Evren Sirin evren at clarkparsia.com
Mon Oct 22 13:01:04 UTC 2007


This is expected behavior and is discussed in this FAQ entry [1].

Cheers,
Evren

[1] http://pellet.owldl.com/faq/different-results/

On 10/19/07 3:45 PM, anushya marcus wrote:
> Hello,
>  
> I have a question regarding SPARQL query results that I get through 
> Pellet. I am using the following query to obtain information about the 
> asserted and inferred subclasses of the concepts in my ontology. (The 
> ontology used for the query is attached).
>  
> When I run this query to get the subClasses of "Person" Class, it 
> returns the SomeValuesFrom restriction as one of its super classes.
>  
> -----------------------------------------------------
> Query:
> PREFIX rdf:  < http://www.w3.org/1999/02/22-rdf-syntax-ns 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns> #>
> PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema 
> <http://www.w3.org/2000/01/rdf-schema> #>
> PREFIX myOnt: < http://localhost/UserDefDataTypes/test.owl 
> <http://localhost/UserDefDataTypes/test.owl> #>
> PREFIX owl:  < http://www.w3.org/2002/07/owl 
> <http://www.w3.org/2002/07/owl> #>
>  
> SELECT ?x WHERE { myOnt:Person rdfs:subClassOf  ?x.}
> -----------------------------------------------------
> Query Results (3 answers):
> x
> ===============================================================
> owl:Thing
> test:Person
> restriction(test:hasBirthPlace someValuesFrom(test:BirthPlace))
> -----------------------------------------------------
>  
> However, when I run the same query to get the subClasses of the 
> "Adult" Class (which is a subClass of "Person"), it doesn't return 
> this same SomeValuesFrom restriction (which it inherits from the 
> "Person" class).
>  
> -----------------------------------------------------
>  
> SELECT ?x WHERE { myOnt:Adult rdfs:subClassOf  ?x.}
> -----------------------------------------------------
> Query Results (3 answers):
> x
> ===========
> test:Person
> owl:Thing
> test:Adult
> -----------------------------------------------------
>  
> I am using Pellet 1.5 through command line.
> Why is it, that the inherited SomeValuesFrom restriction is not 
> returned in the query results? Can some one please clarify?
>  
> Many thanks in advance for your help,
> Anushya
>
> For ideas on reducing your carbon footprint visit Yahoo! For Good 
> <http://uk.promotions.yahoo.com/forgood/environment.html> this month.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/



More information about the Pellet-users mailing list