diff options
author | David Robillard <d@drobilla.net> | 2023-03-27 19:14:40 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 959a0db69fa0a61b8a131ee49f9a553f0e01f3e1 (patch) | |
tree | c57d91a0bee4ab8ae998ec355d612a583e8d6512 /test/serd_test_util | |
parent | 0e9169e24fcfc4599a62f85991f407f257fec520 (diff) | |
download | serd-959a0db69fa0a61b8a131ee49f9a553f0e01f3e1.tar.gz serd-959a0db69fa0a61b8a131ee49f9a553f0e01f3e1.tar.bz2 serd-959a0db69fa0a61b8a131ee49f9a553f0e01f3e1.zip |
Add base URI command-line option
Diffstat (limited to 'test/serd_test_util')
-rw-r--r-- | test/serd_test_util/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) |