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

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 UTC