From 959a0db69fa0a61b8a131ee49f9a553f0e01f3e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Mar 2023 19:14:40 -0400 Subject: Add base URI command-line option --- test/serd_test_util/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/serd_test_util') diff --git a/test/serd_test_util/__init__.py b/test/serd_test_util/__init__.py index ac831054..f465a4b7 100644 --- a/test/serd_test_util/__init__.py +++ b/test/serd_test_util/__init__.py @@ -148,14 +148,14 @@ def earl_assertion(test, passed, asserter): ) -def load_rdf(filename, base_uri, command_prefix): +def load_rdf(command_prefix, filename): """Load an RDF file as dictionaries via serd-pipe (only supports URIs).""" rdf_type = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" model = {} instances = {} - cmd = command_prefix + [filename, base_uri] + cmd = command_prefix + [filename] proc = subprocess.run( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True ) -- cgit v1.2.1