Querying Neurolex database from Python

9 views
Skip to first unread message

Thierry

unread,
Apr 5, 2011, 11:59:03 AM4/5/11
to neurolex
Hi all,

Is there a way to extract Neurolex data from a program written in
Python ?

Cordially,

Thierry Brizzi.

Stephen Larson

unread,
Apr 5, 2011, 12:58:46 PM4/5/11
to neur...@googlegroups.com, Thierry
Hi Thierry,

   Yes; you can use the SPARQL endpoint which is documented here: http://neurolex.org/wiki/NeuroLex_SPARQL_endpoint.  The SPARQL protocol can be called over HTTP, so it is straightforward to utilize via any programming language.  Additionally I believe you can google for some Python SPARQL wrappers.

   A more structured version of the NeuroLex data is available here: https://confluence.crbs.ucsd.edu/display/NIF/Sparql+endpoint as a structured ontology.

   Please let us know if you have additional questions.

Thanks,
  Stephen


--
You received this message because you are subscribed to the Google Groups "neurolex" group.
To post to this group, send email to neur...@googlegroups.com.
To unsubscribe from this group, send email to neurolex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/neurolex?hl=en.


Finn Aarup Nielsen

unread,
Apr 5, 2011, 1:10:02 PM4/5/11
to neurolex

Hi Thierry,

On Tue, 5 Apr 2011, Thierry wrote:

> Is there a way to extract Neurolex data from a program written in
> Python ?

Neurolex uses Semantic MediaWiki so it should be possible to query that
extension and get back, e.g., CSV. (I haven't tried)

In this file
http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/5936/pdf/imm5936.pdf
you can see an example on calling a Semantic MediaWiki from Python.

You probably need to formulate a query in the Semantic MediaWiki query
language on the wiki as the construction of the query URL seems to be
obscure.


best regards
Finn


___________________________________________________________________

Finn Aarup Nielsen, DTU Informatics, Denmark
Lundbeck Foundation Center for Integrated Molecular Brain Imaging
http://www.imm.dtu.dk/~fn/ http://nru.dk/staff/fnielsen/
___________________________________________________________________

Raphael Ritz

unread,
Apr 5, 2011, 3:38:27 PM4/5/11
to neur...@googlegroups.com
On 4/5/11 6:58 PM, Stephen Larson wrote:
Hi Thierry,

   Yes; you can use the SPARQL endpoint which is documented here: http://neurolex.org/wiki/NeuroLex_SPARQL_endpoint.  The SPARQL protocol can be called over HTTP, so it is straightforward to utilize via any programming language.  Additionally I believe you can google for some Python SPARQL wrappers.

Reply all
Reply to author
Forward
0 new messages