Obo foundry ontologies

From OpenVet-Projects/VetClaw · View interactive version

Obo foundry ontologies is an AI agent skill from the GitHub repository OpenVet-Projects/VetClaw. Access OBO Foundry biomedical ontologies relevant to veterinary medicine including VBO (breeds), UBERON (anatomy), HP/MP (phenotypes), ChEBI (chemicals), and NCBITaxon (species taxonomy).

How to use this skill

Skill file

OBO Foundry Ontologies

Overview

OBO (Open Biomedical Ontologies) Foundry is a collaborative effort to develop standardized, shared biomedical ontologies that enable structured reasoning across species, phenotypes, anatomical features, and chemicals. For veterinary AI, OBO ontologies provide formal semantic frameworks for breed classification, anatomical mapping, inherited disease phenotypes, and cross-species gene annotation.

When to Use

Key Veterinary Ontologies

Vertebrate Breed Ontology (VBO):

UBERON (Uber-Anatomy Ontology):

HP/MP (Human/Mammalian Phenotype Ontologies):

ChEBI (Chemical Entities of Biological Interest):

NCBITaxon (NCBI Taxonomy Ontology):

Ontology Structure & Semantic Relationships

Hierarchical Relationships:

VBO hierarchy example:
VBO_0000001 (Dog)
  ├── VBO_0000048 (Herding Group)
  │   ├── VBO_0000147 (Labrador Retriever)
  │   ├── VBO_0000456 (Collie)
  │   └── VBO_0000789 (German Shepherd)
  └── VBO_0000049 (Sporting Group)
      ├── VBO_0000234 (Golden Retriever)
      └── ...

UBERON hierarchy example:
UBERON_0011005 (Organ)
  ├── UBERON_0001068 (Heart)
  │   ├── UBERON_0001076 (Left Ventricle)
  │   └── UBERON_0001078 (Right Atrium)
  └── UBERON_0001555 (Kidney)
      ├── UBERON_0001557 (Renal Cortex)
      └── UBERON_0001558 (Renal Medulla)

Semantic Relationships (Beyond is-a):

SPARQL Querying for Veterinary Data

SPARQL Basics: Structured query language for linked semantic data (RDF graphs).

Example 1: Find All Herding Dog Breeds

PREFIX vbo: <http://purl.obolibrary.org/obo/VBO_>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?breed ?breedLabel
WHERE {
  ?breed rdfs:subClassOf vbo:0000048 .  # 0000048 = Herding Group
  ?breed rdfs:label ?breedLabel .
}

Returns: VBO codes for Collie, Sheltie, Australian Shepherd, German Shepherd, etc.

Example 2: Cross-Species Organ Mapping (Kidney Toxicity)

PREFIX uberon: <http://purl.obolibrary.org/obo/UBERON_>

SELECT ?species ?organ
WHERE {
  ?organ rdfs:subClassOf uberon:0001555 .  # 0001555 = Kidney
  ?organ rdfs:label ?organLabel .
}

Returns: Dog kidney = Human kidney = Cat kidney (all UBERON_0001555, enabling cross-species toxicity lookup)

Example 3: Link Breed to Genetic Disorder (MDR1 + Collies)

PREFIX vbo: <http://purl.obolibrary.org/obo/VBO_>
PREFIX omia: <http://omia.org/>

SELECT ?breed ?disorder
WHERE {
  ?breed rdfs:subClassOf vbo:0000048 .  # Herding Group
  ?breed <http://predisposes_to> ?disorder .
  ?disorder rdfs:label "Multidrug Resistance 1" .
}

Returns: Collie, Sheltie, Australian Shepherd + MDR1 mutation link

Veterinary Use Cases

1. Precision Medicine Drug Trials:

2. Breed Predisposition Reasoning:

3. Cross-Species Genomics:

4. Anatomical Standardization in EHR:

5. Phenotype-to-Disease Mapping:

Accessing OBO Ontologies

Public Repositories:

File Formats:

Python Integration:

# Using pronto library to load OBO ontologies
import pronto

# Load VBO
vbo = pronto.Ontology("http://purl.obolibrary.org/obo/vbo.owl")

# Query breed by ID
collie = vbo["VBO:0000456"]
print(f"Breed: {collie.name}")

# Find parent classes (breed group)
for parent in collie.superclasses():
    print(f"Group: {parent.name}")

# Load UBERON
uberon = pronto.Ontology("http://purl.obolibrary.org/obo/uberon.owl")
kidney = uberon["UBERON:0001555"]
print(f"Anatomy: {kidney.name}, Definition: {kidney.definition}")

Ontology Standards & Governance

Limitations

Sources

Advanced Integration

The public SDK covers openFDA animal adverse-event reports. For this resource, use the access methods documented above.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.