From fbbb1c728a3fad84ef3d59b5a21b931f8781ad35 Mon Sep 17 00:00:00 2001 From: arcangelo7 Date: Thu, 30 May 2024 17:02:23 +0200 Subject: [PATCH] virtuoso-opensource in gitignore --- .gitignore | 3 ++- test/ResourceFinder_test.py | 5 +---- test/curator_test.py | 5 +---- 3 files changed, 4 insertions(+), 9 deletions(-) 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)