Skip to content

Commit

Permalink
Replaced EMMO with local animal ontology
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed May 9, 2024
1 parent ba7e997 commit 5875606
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_ontodoc_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ def test_ontodoc():

from ontopy import get_ontology
from ontopy.ontodoc_rst import OntologyDocumentation
from ontopy.testutils import ontodir
import owlready2

emmo = get_ontology("https://w3id.org/emmo/1.0.0-rc1").load()
# emmo = get_ontology("../EMMO/emmo.ttl").load()
# emmo.sync_reasoner(include_imported=True)
# onto = get_ontology("https://w3id.org/emmo/1.0.0-rc1").load()
onto = get_ontology(ontodir / "animal.ttl").load()
# onto.sync_reasoner(include_imported=True)

od = OntologyDocumentation(
emmo, recursive=True, iri_regex="https://w3id.org/emmo"
onto, recursive=True, iri_regex="https://w3id.org/emmo"
)
print(od.get_refdoc())

0 comments on commit 5875606

Please sign in to comment.