Ontology Information Web Services

These web services provide REST access to the EIModel API, a simple programmatic interface around the eagle-i ontology, see:  http://search.eagle-i.net/javadoc/org/eaglei/model/package-summary.html. They are packaged in the model.war web application and deployed centrally at http://search.eagle-i.net/model

The results are always returned as JSON, generated with GSON from the EIClass Java class (or Lists thereof), see:  http://search.eagle-i.net/javadoc/org/eaglei/model/EIClass.html


Information about one ontology class - /model/ontology

This call returns details of a given ontology type.

URL: /model/ontology (GET and POST)

Args:
uri-- URI of the ontology type for which information is sought

pretty-- if present, a "pretty" JSON serializer is used for formatting the result.

Example:

Get details about the class Tissue Microarrayer:

http://search.eagle-i.net/model/ontology?uri=http://purl.obolibrary.org/obo/ERO_0000512


List subclasses - /model/ontology/subclasses

http://search.eagle-i.net/javadoc/org/eaglei/model/EIClass.html

This call returns subclasses of a given ontology type.

URL: /model/ontology/subclasses (GET and POST)

Args:
uri-- URI of the ontology type for which subclasses are sought.

deep-- if present, this argument instructs that a recursive listing of subclasses be performed. If absent, only direct subclasses are returned.

pretty-- if present, a "pretty" JSON serializer is used for formatting the result.

Example:

Get direct subclasses of the Instrument class: 

http://search.eagle-i.net/model/ontology/subclasses?uri=http://purl.obolibrary.org/obo/ERO_0000004


List superclasses - /model/ontology/path

This call returns superclasses of a given ontology type, up to an eagle-i primary type (i.e. BFO ignored). Current limitation:  only one path is returned; some classes have multiple inferred parents, in which case an arbitrary path is chosen.

URL: /model/ontology/path (GET and POST)

Args:
uri-- URI of the ontology type for which superclasses are sought

pretty-- if present, a "pretty" JSON serializer is used for formatting the result.

Example:

Get superclasses of Tissue Microarrayer. 

http://search.eagle-i.net/model/ontology/path?uri=http://purl.obolibrary.org/obo/ERO_0000512

  • No labels