Skip to content

Commit

Permalink
fixing use of ontoenv
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jan 14, 2024
1 parent 97810df commit 5ed21ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bricksrc/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from rdflib import Literal, URIRef
from .namespaces import SKOS, OWL, RDFS, BRICK, QUDTQK, QUDTDV, QUDT, UNIT

env = OntoEnv(initialize=True, search_dirs="support/")
env = OntoEnv(initialize=True, search_dirs=["support/"])
g = Graph()
g.load_file("support/VOCAB_QUDT-QUANTITY-KINDS-ALL-v2.1.ttl")
g.load_file("support/VOCAB_QUDT-UNITS-ALL-v2.1.ttl")
Expand Down
2 changes: 1 addition & 1 deletion generate_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ def handle_deprecations():

# create new directory for storing imports
os.makedirs("imports", exist_ok=True)
env = ontoenv.OntoEnv(initialize=True)
env = ontoenv.OntoEnv(initialize=True, search_dirs=["support/"])
for name, uri in ontology_imports.items():
depg, loc = env.resolve_uri(str(uri))
depg.serialize(Path("imports") / f"{name}.ttl", format="ttl")
Expand Down

0 comments on commit 5ed21ff

Please sign in to comment.