Code Monkey home page Code Monkey logo

tyto's Introduction

gh-action badge readthedocs badge

TYTO

Take Your Terms from Ontologies (TYTO) is a lightweight Python tool that makes the semantic web more user-friendly and accessible.

TYTO provides a handy interface for ontologies for use in your Python application. It automatically generates symbols for URIs based on the ontology terms themselves. Currently the following ontologies are supported:

  • Sequence Ontology (SO)
  • Systems Biology Ontology (SBO)
  • National Cancer Institute Thesaurus (NCIT)
  • Ontology of Units and Measures (OM)

For example:

>>> from tyto import SO, SBO
RDFLib Version: 5.0.0
>>> print(SO.promoter)
http://purl.obolibrary.org/obo/SO_0000167
>>> print(SBO.systems_biology_representation)
http://biomodels.net/SBO/SBO_0000000

These symbols are not hard-coded, rather they are dynamically generated by querying the appropriate ontology endpoints. Alternatively an ontology can be imported from a local OWL file.

Additionally ontologies have methods that allow for other types of inference.

>>> SO.get_term_by_uri('http://purl.obolibrary.org/obo/SO_0000167')
'promoter'

An interface for a new ontology can be configured as follows, thus allowing for dynamic lookup of terms and URIs.

my_ontology = Ontology(endpoint='http://myendpoint.org/sparql#', path='./ontologies/my_ontology.owl')

About our mascot

Tyto deroepstorffi, otherwise known as the Andaman masked owl, is the mascot for this repo. An owl was considered an appropriate choice because TYTO leverages the Web Ontology Language (OWL).

Tyto deroepstorffi

Acknowledgments

Development of this library has been supported by the DARPA Synergistic Discovery and Design (SD2) program and Raytheon BBN Technologies.

tyto's People

Contributors

bbartley avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.