-
Notifications
You must be signed in to change notification settings - Fork 1
Vec2SPARQL
Robert Hoehndorf edited this page Dec 14, 2018
·
3 revisions
Example SPARQL queries:
Find the 10 functionally most similar proteins to A4 (human):
PREFIX up:<http://purl.uniprot.org/core/>
PREFIX taxon:<http://purl.uniprot.org/taxonomy/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX b2v: <http://bio2vec.net/function#>
PREFIX b2vd: <http://bio2vec.net/dataset#>
PREFIX keywords:<http://purl.uniprot.org/keywords/>
SELECT ?protein ?simprotein ?val ?x ?y
WHERE
{
?protein a up:Protein .
?protein up:mnemonic 'A4_HUMAN'
SERVICE <http://test.bio2vec.net/ds/query> {
(?simprotein ?val ?x ?y) b2v:mostSimilar(b2vd:dataset_2 ?protein 10) .
}
}