OWL (Web Ontology Language)

OWL (Web Ontology Language)

ai4curation

Enables AI systems to read, write, and modify Web Ontology Language (OWL) files by adding, removing, and searching axioms using functional syntax.

13229 views6Local (stdio)

What it does

  • Add axioms to OWL ontologies
  • Remove axioms from OWL files
  • Search axioms by pattern matching
  • Configure and manage multiple ontologies
  • Extract ontology metadata
  • Add prefix mappings

Best for

Semantic web developers building knowledge graphsResearchers working with formal ontologiesAI systems that need to manipulate structured knowledge
Syncs with Protege editor automaticallyUses OWL functional syntaxKeeps ontologies in memory for performance

Tools (19)

add_axiom

Add an axiom to the ontology using OWL functional syntax. Args: owl_file_path: Absolute path to the OWL file axiom_str: String representation of the axiom in OWL functional syntax e.g., "SubClassOf(:Dog :Animal)" Returns: str: Success message or error

add_axioms

Adds a list of axioms to the ontology, using OWL functional syntax. Args: owl_file_path: Absolute path to the OWL file axiom_strs: List of string representation of the axiom in OWL functional syntax e.g., ["SubClassOf(:Dog :Animal)", ...] Returns: str: Success message or error

remove_axiom

Remove an axiom from the ontology using OWL functional syntax. Args: owl_file_path: Absolute path to the OWL file axiom_str: String representation of the axiom in OWL functional syntax Returns: str: Success message or error

find_axioms

Find axioms matching a pattern in the ontology. Args: owl_file_path: Absolute path to the OWL file pattern: A string pattern to match against axiom strings (simple substring matching) limit: (int) Maximum number of axioms to return (default: 100) include_labels: If True, include human-readable labels after ## in the output annotation_property: Optional annotation property IRI to use for labels (defaults to rdfs:label) Returns: list[str]: List of matching axiom strings

get_all_axioms

Get all axioms in the ontology as strings. Args: owl_file_path: Absolute path to the OWL file limit: Maximum number of axioms to return (default: 100) include_labels: If True, include human-readable labels after ## in the output annotation_property: Optional annotation property IRI to use for labels (defaults to rdfs:label) Returns: list[str]: List of all axiom strings

Alternatives