Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] weird query behviour

manuelso manuelso at stanford.edu
Mon May 14 14:21:40 PDT 2012


Hi Helena,

In the web interface you cannot see it but the string "polyphenol" is XSD typed as a string. The SPARQL query you are looking for is:

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT *
FROM <http://bioportal.bioontology.org/ontologies/CHEBI>
WHERE { 
?uri <http://bioportal.bioontology.org/metadata/def/prefLabel> "polyphenol"^^xsd:string .
}

We will have to improve our SPARQL web UI so that it shows XSD types to avoid confusion.

Thanks,

Manuel


On May 14, 2012, at 1:50 PM, Helena Deus wrote:

> Hi, 
> 
> When I run this query through the bioportal sparql endpoint:
> 
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
> SELECT *
> FROM <http://bioportal.bioontology.org/ontologies/CHEBI>
> WHERE { 
> <http://purl.obolibrary.org/obo/CHEBI_26195> <http://bioportal.bioontology.org/metadata/def/prefLabel> ?o .
> }
> 
> I get a single result
> o
> "polyphenol"
>  
> But when I run the query like this:
> 
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
> SELECT *
> FROM <http://bioportal.bioontology.org/ontologies/CHEBI>
> WHERE { 
> ?uri <http://bioportal.bioontology.org/metadata/def/prefLabel> "polyphenol" .
> }
> 
> Strangely, empty results... 
> Any help would be greatly appreciated!
> Best, 
> -- 
> Helena F. Deus
> Post-Doctoral Researcher at DERI/NUIG
> http://lenadeus.info/
> 
> _______________________________________________
> bioontology-support mailing list
> bioontology-support at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/bioontology-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20120514/2791cc30/attachment.html>


More information about the bioontology-support mailing list