W3C home > Mailing lists > Public > public-sparql-dev@w3.org > April to June 2009

Re: Why don't i have any result?

From: Richard Newman <rnewman@franz.com>
Date: Tue, 23 Jun 2009 11:17:27 -0700
Cc: public-sparql-dev@w3.org
Message-Id: <3E297C22-5DD0-4129-B203-943B72F66EDA@franz.com>
To: Samuel Pedro <samuelcpspam@gmail.com>
On  23 Jun 2009, at 11:10 AM, Samuel Pedro wrote:

> Why this query doens't return any result with jena and with protege  
> does??

Presumably because Protege considers

x y "foo"^^xsd:string

to entail

x y "foo"

while Jena does not?

Try your query as

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?equivalentClass
WHERE {
   ?equivalentClass owl:equivalentClass ?Class .
   ?Class rdfs:label "champinhons"^^xsd:string
}
Received on Tuesday, 23 June 2009 18:18:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 June 2009 18:18:12 GMT