DB2DB Link

Retrieve database to database link.

SPARQL query:

BASE <http://www.genome.jp/linkdb/>
SELECT ?fromlabel ?tolabel ?linktype WHERE {
?from ?link ?to .

?link a          <link> .
?link rdfs:label ?linktype  .

?from <core/database> ?fromdb .
?to   <core/database> ?todb .

?fromdb <core/dblabel> "#{from}" .
?todb   <core/dblabel> "#{to}" .

?from rdfs:label ?fromlabel .
?to   rdfs:label ?tolabel .

FILTER (("#{link}" = "") || (?linktype = "#{link}")) .
} ORDER BY ?fromlabel ?tolabel

Parameters:

(* = required)

Name Description
* from source database name
* to target database name
link link category: equivalent (default), original, reverse

Sample:

http://www.genome.jp/stanza/linkdb/db2db_link?from=compound&to=3dmet&link=original