drugbank2pubcehm

14 views
Skip to first unread message

akastrin

unread,
Jun 19, 2017, 4:48:43 AM6/19/17
to bio2rdf
Hi,

I'm playing with the following query but I get the empty result set.

PREFIX n3: <http://bio2rdf.org/drugbank_vocabulary:>
SELECT *
WHERE {
?s a n3:Drug;
n3:xref ?pubchem .
}
LIMIT 100

I use the http://virtuoso.openlifedata.org/sparql endpoint.

I kindly ask for help.

Best, Andrej

Michel Dumontier

unread,
Jun 19, 2017, 4:54:24 AM6/19/17
to bio2rdf
SELECT *
WHERE {
  VALUES ?p {n3:x-pubchemcompound n3:x-pubchemsubstance}
  ?s a n3:Drug.
  ?s ?p ?o .
}
LIMIT 100



--
You received this message because you are subscribed to the Google Groups "bio2rdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bio2rdf+unsubscribe@googlegroups.com.
To post to this group, send email to bio...@googlegroups.com.
Visit this group at https://groups.google.com/group/bio2rdf.
For more options, visit https://groups.google.com/d/optout.



--
Michel Dumontier
Distinguished Professor of Data Science
Maastricht University
http://dumontierlab.com
Reply all
Reply to author
Forward
0 new messages