Link From An Entry

Retrieve link information of a specified entry.

SPARQL query:

BASE <http://www.genome.jp/linkdb/> 
SELECT DISTINCT ?fromlabel ?linklabel ?tolabel ?tourl WHERE {
?from ?link ?to .
?from rdfs:label "#{dbentry}"   .
?link a          <link> .
?from rdfs:label ?fromlabel .
?link rdfs:label ?linklabel .
?to   rdfs:label ?tolabel .
?to   <core/url> ?tourl .
?to   <core/database> ?todb .
?todb <core/dblabel>  ?todblabel .
FILTER (("#{link}"    = "")   || (?linklabel = "#{link}")) .
FILTER (("#{dblabel}" = "")   || (?todblabel = "#{dblabel}")) .
} ORDER BY ?linklabel ?tolabel

Parameters:

(* = required)

Name Description
* dbentry entry name.
link link category: equivalent, original, reverse
dblabel dblabel of the target database.

Sample:

http://www.genome.jp/stanza/linkdb/link_from_an_entry?dbentry=hsa:5621&link=original&dblabel=Genomics