From 9b8bf9fd2c964dd6f73fb600e53f6834949bfbf7 Mon Sep 17 00:00:00 2001 From: Sarath Menon Date: Tue, 5 Dec 2023 17:11:35 +0100 Subject: [PATCH] remove object store --- pyscal_rdf/graph.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/pyscal_rdf/graph.py b/pyscal_rdf/graph.py index 2c3bfd2..a55798b 100644 --- a/pyscal_rdf/graph.py +++ b/pyscal_rdf/graph.py @@ -93,25 +93,7 @@ def __init__(self, graph_file=None, raise ValueError("store file is needed if store is not memory") self.graph = Graph(store="SQLAlchemy", identifier=identifier) uri = Literal(f"sqlite:///{store_file}") - self.graph.open(uri, create=True) - - elif inspect.isclass(type(store)): - try: - prpath = store.path - dbfile = os.path.join(prpath, 'project.db') - - #now start sqlalchemy instance - self.graph = Graph(store="SQLAlchemy", identifier=identifier) - uri = Literal(f"sqlite:///{dbfile}") - self.graph.open(uri, create=True) - - #here modify structure store if needed - if self.structure_store is None: - self.structure_store = os.path.join(prpath, 'pyscal_rdf_structure_store') - store = 'pyiron_project' - except: - raise ValueError("store should be pyiron_project, SQLAlchemy, or Memory") - + self.graph.open(uri, create=True) else: raise ValueError("store should be pyiron_project, SQLAlchemy, or Memory")