Skip to content

Commit

Permalink
fix ontology paths
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Nov 28, 2023
1 parent 108484b commit 4c9b981
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyscal_rdf/network/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
#prov = OntologyNetwork('pyscal_rdf/data/prov.rdf', delimiter='#')
def read_ontology():
#read in ontologies
cmso = OntologyNetwork(os.path.join(os.path.dirname(__file__), '../pyscal_rdf/data/cmso.owl'))
pldo = OntologyNetwork(os.path.join(os.path.dirname(__file__), '../pyscal_rdf/data/pldo.owl'))
podo = OntologyNetwork(os.path.join(os.path.dirname(__file__), '../pyscal_rdf/data/podo.owl'))
file_location = os.path.dirname(__file__).split('/')
file_location = "/".join(file_location[:-1])

cmso = OntologyNetwork(os.path.join(file_location, 'data/cmso.owl'))
pldo = OntologyNetwork(os.path.join(file_location, 'data/pldo.owl'))
podo = OntologyNetwork(os.path.join(file_location, 'data/podo.owl'))
#msmo = OntologyNetwork('../pyscal_rdf/data/msmo.owl')

#combine them
Expand Down

0 comments on commit 4c9b981

Please sign in to comment.