Skip to content

Commit

Permalink
Merge pull request #95 from djarecka/owl_files
Browse files Browse the repository at this point in the history
removing owl files
  • Loading branch information
dbkeator committed Aug 28, 2018
2 parents 93a8254 + 3c70ce0 commit b69c248
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2,472 deletions.
12 changes: 7 additions & 5 deletions nidm/experiment/Utils.py
Expand Up @@ -358,9 +358,7 @@ def load_nidm_owl_files():
"sio_import.ttl",
"stato_import.ttl"
]
owls=[
"nidm-experiment.owl"
]

#load each import
for resource in imports:
temp_graph = Graph()
Expand All @@ -373,11 +371,15 @@ def load_nidm_owl_files():
logging.info("Error opening %s import file..continuing" %os.path.join(imports_path,resource))
continue

owls=[
"https://raw.githubusercontent.com/incf-nidash/nidm-specs/master/nidm/nidm-experiment/terms/nidm-experiment.owl"
]

#load each owl file
for resource in owls:
temp_graph = Graph()
try:
temp_graph.parse(os.path.join(terms_path,resource),format="turtle")
temp_graph.parse(location=resource, format="turtle")
union_graph=union_graph+temp_graph
except Exception:
logging.info("Error opening %s owl file..continuing" %os.path.join(terms_path,resource))
Expand Down Expand Up @@ -760,4 +762,4 @@ def map_variables_to_terms(df,apikey,directory, output_file=None,json_file=None,
#root.mainloop()
#input("Press Enter to continue...")

return column_to_terms
return column_to_terms
198 changes: 0 additions & 198 deletions nidm/terms/demographics2.owl

This file was deleted.

0 comments on commit b69c248

Please sign in to comment.