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

RE: Why don't i have any result? Part 2

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Fri, 26 Jun 2009 09:33:55 +0000
To: Lee Feigenbaum <lee@thefigtrees.net>, Samuel Pedro <samuelcpspam@gmail.com>
CC: "public-sparql-dev@w3.org" <public-sparql-dev@w3.org>
Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA3646E445727@GVW1118EXC.americas.hpqcorp.net>
Last time, the Protégé data was in-memory and the Jena version was in an SQL database backed storage layer.  Jena only provides the value equivalence for in-memory graphs.

	Andy

> -----Original Message-----
> From: public-sparql-dev-request@w3.org [mailto:public-sparql-dev-
> request@w3.org] On Behalf Of Lee Feigenbaum
> Sent: 26 June 2009 03:58
> To: Samuel Pedro
> Cc: public-sparql-dev@w3.org
> Subject: Re: Why don't i have any result? Part 2
> 
> Hi Samuel,
> 
> It's probably the same thing as the other time. The data has the label
> as a typed literal with datatype xsd:string -- in SPARQL this is
> represented lexically as:
> 
> "bifinhos com cogumelos"^^xsd:string
> 
> If you change your query to that, I expect you'd get results with both
> protege and jena. What's happening apparently here is that Jena is
> adhering to the precise semantics of SPARQL while protege is being a bit
> lax.
> 
> Lee
> 
> Samuel Pedro wrote:
> > I'm trying to know witch class have that label, and again with protege i
> > have the right result and with jena i'm not.
> > I'm missing any other Prefix?
> >
> > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> > PREFIX owl: <http://www.w3.org/2002/07/owl#>
> > SELECT ?class
> > WHERE { ?class rdf:type owl:Class .
> > ?class rdfs:label "bifinhos com cogumelos" }
> >
> >
> > the class that have that label is this
> >
> >
> > <owl:Class rdf:about="#BifinhosComCogumelos">
> >     <rdfs:subClassOf>
> >       <owl:Restriction>
> >         <owl:someValuesFrom rdf:resource="#Ovo"/>
> >         <owl:onProperty>
> >           <owl:ObjectProperty rdf:about="#hasIngredient"/>
> >         </owl:onProperty>
> >       </owl:Restriction>
> >     </rdfs:subClassOf>
> >     <rdfs:subClassOf>
> >       <owl:Restriction>
> >         <owl:someValuesFrom>
> >           <owl:Class rdf:about="#Alface"/>
> >         </owl:someValuesFrom>
> >         <owl:onProperty>
> >           <owl:ObjectProperty rdf:about="#hasIngredient"/>
> >         </owl:onProperty>
> >       </owl:Restriction>
> >     </rdfs:subClassOf>
> >     <rdfs:subClassOf rdf:resource="#PratosdeCarne"/>
> >     <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
> >     >bifinhos com cogumelos</rdfs:label>
> >   </owl:Class>
> >
> >
> > Any ideias of whats wrong this time? Is there another way of do this
> query?

Received on Friday, 26 June 2009 09:35:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 26 June 2009 09:35:06 GMT