- From: Lee Feigenbaum <lee@thefigtrees.net>
- Date: Thu, 25 Jun 2009 22:58:18 -0400
- To: Samuel Pedro <samuelcpspam@gmail.com>
- CC: public-sparql-dev@w3.org
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 02:58:58 UTC