NIF Navigator

arrow

From NeuroLex

(Redirected from SparqlEndPoint)
Jump to: navigation, search

The SPARQL endpoint is hosted at http://api.talis.com/stores/neurolex/services/sparql.


It contains triples generated from the NeuroLex RDF export that is exposed at http://neurolex.org/OWL/nlx_stage_all.rdf. If you would like to do SPARQL 1.1 reasoning with this RDF file, additional information is available.

We demonstrate a simple query that retrieves all known things located in the Granular layer of the cerebellar cortex.

prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix property: <http://neurolex.org/wiki/Special:URIResolver/Property-3A>

select DISTINCT ?name ?id where {?x property:Id "birnlex_779"^^xsd:string .
?cells property:Located_in ?x.
?cells property:Label ?name.
?cells property:Id ?id}

To execute the above query, place it in the dialog box "Query text" and press "Run Query". By default the result is displayed in XML SPARQL result format as follows:

<sparql xmlns="http://www.w3.org/2005/sparql-results#"> 
  <head> 
    <variable name="name"/> 
    <variable name="id"/> 
  </head> 
  <results> 
    <result> 
      <binding name="name"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">Cerebellum unipolar			brush cell</literal> 
      </binding> 
      <binding name="id"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">nifext_132</literal> 
      </binding> 
    </result> 
    <result> 
      <binding name="name"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">Cerebellum Golgi			cell</literal> 
      </binding> 
      <binding name="id"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">sao1415726815</literal> 
      </binding> 
    </result> 
    <result> 
      <binding name="name"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">Cerebellum granule			cell</literal> 
      </binding> 
      <binding name="id"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">nifext_128</literal> 
      </binding> 
    </result> 
    <result> 
      <binding name="name"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">Cerebellum Lugaro			cell</literal> 
      </binding> 
      <binding name="id"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">nifext_133</literal> 
      </binding> 
    </result> 
    <result> 
      <binding name="name"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">Cerebellar			glomerulus</literal> 
      </binding> 
      <binding name="id"> 
        <literal datatype="http://www.w3.org/2001/XMLSchema#string">nlx_subcell_20090502</literal> 
      </binding> 
    </result> 
  </results> 
</sparql> 

Here results binding to name "y" provide the name of the entity that match the query and results binding to name "z" show their NIF IDs. Currently this is the only format that is exported from this resource. NOTE: there are results that are coming out twice, where some cells have a large space in the middle of them. We are investigating the reason for this result.



bookmark