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] BioPortal sparql

manuelso manuelso at stanford.edu
Wed Nov 28 16:06:00 PST 2012


Hi Nikolina,

I think you have a typo in one of your prefixes Try with these ...

 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

You can see the query running here: 

http://goo.gl/0zMpz

I normally use this service called prefix.cc to get the right prefix  … http://prefix.cc/skos,rdfs.sparql

Best,

Manuel

On Nov 28, 2012, at 3:06 PM, Nikolina Koleva <nikolina.koleva19 at yahoo.de> wrote:

> Dear all,
> 
> I am experimenting with the BioPortal SPARQL. I want to extract the root path of a given concept in a given ontology.
> 
> In the paper: 
> Manuel Salvadores, Matthew Horridge, Paul Alexander, Ray W. Fergerson, Mark A. Musen and Natasha F. Noy, Using SPARQL to Query BioPortal Ontologies and Metadata, in Proceedings of the 11th International Semantic Web Conference (ISWC 2012), Boston, US, November, 2012.
> 
> Figure 4 shows a SPARQL query that must retrieve two ancestors of a given element. The results are also shown there.
> 
> When executing the query in the web interface I get no results (see attachment). 
> The query that I am running is:
> 
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX skos: <http://www.w3.org/2008/05/skos#>
> 
> SELECT DISTINCT ?ss0 ?nstep ?label{
> { GRAPH <http://bioportal.bioontology.org/ontologies/SNOMEDCT> {
>         <http://purl.bioontology.org/ontology/SNOMEDCT/122040007> rdfs:subClassOf ?ss1 . 
>         ?ss1 rdfs:subClassOf ?ss0 . 
>         ?ss0 skos:prefLabel ?label
>         BIND ('2' AS ?nstep) .
>      } } 
>      UNION { GRAPH <http://bioportal.bioontology.org/ontologies/SNOMEDCT> {
>         <http://purl.bioontology.org/ontology/SNOMEDCT/122040007> rdfs:subClassOf ?ss0 . 
>         ?ss0 skos:prefLabel ?label.
>         BIND ('1' AS ?nstep) .
>      } } 
>  } ORDER BY ?nstep
> 
> I tried it with another term that also has two parents (363664003) and it hadn't work, too.
> Is there something that I am doing wrong?
> 
> Best,
> Nikolina
> 
> <sparqlNoresults.png>
> 
> 
> 
> _______________________________________________
> 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/20121128/16d14dba/attachment.html>


More information about the bioontology-support mailing list