diff --git a/.gitignore b/.gitignore index ad546358..dcee25e3 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ zip_tasks.tmp figshare.yaml zenodo.yaml internet_archive.yaml -storage \ No newline at end of file +storage +virtuoso-opensource \ No newline at end of file diff --git a/test/ResourceFinder_test.py b/test/ResourceFinder_test.py index c6db0be4..3b1ec426 100644 --- a/test/ResourceFinder_test.py +++ b/test/ResourceFinder_test.py @@ -50,10 +50,7 @@ def add_data_ts(server, data_path, batch_size:int=100, default_graph_uri=URIRef( triples_str += f"{subj.n3()} {pred.n3()} {obj.n3()} . " query = f"INSERT DATA {{ {triples_str} }}" - - with open('query.txt', 'w') as f: - f.write(query) - + ts = SPARQLWrapper(server) ts.setQuery(query) ts.setMethod(POST) diff --git a/test/curator_test.py b/test/curator_test.py index 819cc169..99daf0cd 100644 --- a/test/curator_test.py +++ b/test/curator_test.py @@ -96,10 +96,7 @@ def add_data_ts(server:str=SERVER, data_path:str=os.path.abspath(os.path.join('t triples_str += f"{subj.n3()} {pred.n3()} {obj.n3()} . " query = f"INSERT DATA {{ {triples_str} }}" - - with open('query.txt', 'w') as f: - f.write(query) - + ts = SPARQLWrapper(server) ts.setQuery(query) ts.setMethod(POST)