-

Difference between revisions of "SemWeb:Bio2RDF Endpoints"

From Open Bioinformatics Foundation
Jump to: navigation, search
Line 79: Line 79:
 
</pre>
 
</pre>
  
* http://atlas.bio2rdf.org/sparql
+
* http://atlas.bio2rdf.org/sparql and * http://quebec.bio2rdf.org/sparql are the same
* http://quebec.bio2rdf.org/sparql
+
<pre>
 +
SELECT ?label1, count(*)
 +
WHERE {
 +
?s1 ?p1 ?o1 .
 +
?s1 <http://www.w3.org/2000/01/rdf-schema#label> ?label1 .
 +
?o1 bif:contains "morissette" .
 +
}
 +
ORDER BY DESC (count(*))
 +
</pre>
 +
 
 
* http://bind.bio2rdf.org/sparql
 
* http://bind.bio2rdf.org/sparql
 
* http://biocarta.bio2rdf.org/sparql
 
* http://biocarta.bio2rdf.org/sparql

Revision as of 15:47, 8 July 2010

Here are the current working Sparql Endpoints for Bio2RDF has of July 7th 2010, 17:23 PM

SELECT
*
WHERE
{
<http://bio2rdf.org/pdb:1GOF> ?p ?o .
optional {?o ?p2 ?o2 .}
optional {?o2 ?p3 ?o3 .}
}
select distinct ?g ?o
where {
graph ?g 
{
?s ?p ?o .
?o bif:contains "HK1" .
}
}
select ?label ?o
where
{
graph ?g {
?s ?p ?o .
?o bif:contains "HK1" .
}
graph ?g {
?s2 a <http://bio2rdf.org/pubmed:JournalArticle> .
?s2 rdfs:label ?label .
}
}
limit 5
select distinct ?rl ?fs ?fe
where {
?o <http://bio2rdf.org/ncbi_resource:featureStart> ?fs .
filter (xsd:integer(?fs) < 10000) 
?refseq <http://bio2rdf.org/ncbi_resource:feature> ?o .
?refseq rdfs:label $rl .
?o <http://bio2rdf.org/ncbi_resource:featureEnd> ?fe .
}
limit 5
select ?ol ?desc
where {
?omim a <http://bio2rdf.org/omim_resource:MendelianDisorders> .
?omim rdfs:label ?ol .
?omim <http://purl.org/dc/terms/description> ?desc .
?desc bif:contains "HK1" .
}
limit 100
select ?al ?o
where {
?s a <http://bio2rdf.org/ns/affymetrix#Probeset> .
?s rdfs:label ?al .
?s ?p ?o .
?o bif:contains "calcium" .
}
limit 100
SELECT ?label1, count(*)
WHERE {
?s1 ?p1 ?o1 .
?s1 <http://www.w3.org/2000/01/rdf-schema#label> ?label1 .
?o1 bif:contains "morissette" .
}
ORDER BY DESC (count(*))

URI are build with this pattern

http://bio2rdf.org/[namespace]:[identifier]

To get information about this URI, you can either ask directly

http://bio2rdf.org/[namespace]:[identifier]

or ask the corresponding endpoint about it. The corresponding endpoints is located at

http://[namespace].bio2rdf.org/sparql

P.S.: The refseq endpoint is experimental. Instead of using the URI pattern http://bio2rdf.org/refseq:[identifier] it use http://bio2rdf.org/ncbi:[identifier]