Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Latest commit

 

History

History
58 lines (42 loc) · 2.2 KB

README.md

File metadata and controls

58 lines (42 loc) · 2.2 KB

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.


Extra notes


Support

Contact us via email: support@bioontology.org


Acknowledgments

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.