This repository contains code examples to query sparql.bioontology.org.
At sparql.bioontology.org we host two databases:
- sparql.bioontology.org/ontologies/sparql to host ontology metadata and content.
- sparql.bioontology.org/mappings/sparql to host BioPortal's mappings.
By default queries pointing to sparql.bioontology.org/sparql use the ontologies endpoint. To issue queries that target data from both endpoints see related information and examples on SPARQL federation.
Examples are provided for the following platforms/languages: - Java: * Java with no 3-party libs (SimpleTest.java) * Java with JenaARQ (JenaARQTest.java) * Java with OpenRDF [*] (OpenRDFAlibabaTest.java) - Python: * Python with no 3-party libs (sparql1.py) * Python with SPARQLWrapper [1] (sparql2.py) - Javascript: * Javacript with the SPARQLClient [2] lib (index.html) * Javascript with node.js. (node_test.js) - Perl using sparql.pm from [3] (test.pl) - Ruby. - TODO * C# * Scala
[1] http://sparql-wrapper.sourceforge.net/ [2] http://thefigtrees.net/lee/sw/sparql.js (slightly modified to allow API keys) [3] https://github.com/swh/Perl-SPARQL-client-library (slightly modified to allow API keys) [*] The jar file alibaba-repository-sparql-2.0-beta9-patched.jar has been patched to allow API keys and GET HTTP requests.
-
BSD 2-clause license ("Simplified BSD License" or "FreeBSD License") applies to this repository, see COPYING file.
-
If you do not have an account in BioPortal you'll need one to use the service. Register at http://bioportal.bioontology.org/accounts/new
-
Please visit the following links to get extra information about this service:
Contact us via email: support@bioontology.org
The National Center for Biomedical Ontology is one of the National Centers for Biomedical Computing supported by the NHGRI, the NHLBI, and the NIH Common Fund under grant U54-HG004028.