Skip to content

Java, Perl, Python, Javascript, Ruby, etc. examples to query alphasparql.bioontology.org

License

Notifications You must be signed in to change notification settings

smtifahim/sparql-code-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: [email protected]


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.

About

Java, Perl, Python, Javascript, Ruby, etc. examples to query alphasparql.bioontology.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 49.4%
  • Perl 21.8%
  • Python 14.8%
  • HTML 5.9%
  • JavaScript 4.2%
  • Ruby 3.9%