diff options
author | David Robillard <d@drobilla.net> | 2019-12-18 19:09:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 7f508b89230b339684a4013dbbad741d9e16e40a (patch) | |
tree | 1c366ec60c6fcac68f96e01df06e4dc3c142f1ab /wscript | |
parent | b6b777a0c0145449bce9855bc3851ad1b5edf409 (diff) | |
download | serd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.gz serd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.bz2 serd-7f508b89230b339684a4013dbbad741d9e16e40a.zip |
Add support for parsing variables
This adds a reader flag and serdi option for extending a syntax with support
for SPARQL-like variables, for storing things like patterns or simple queries.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -679,8 +679,17 @@ def test(tst): import tempfile # Create test output directories - for i in ['bad', 'good', 'lax', 'normalise', 'terse', 'multifile', - 'TurtleTests', 'NTriplesTests', 'NQuadsTests', 'TriGTests']: + for i in ['bad', + 'good', + 'lax', + 'normalise', + 'pattern', + 'terse', + 'multifile', + 'TurtleTests', + 'NTriplesTests', + 'NQuadsTests', + 'TriGTests']: try: test_dir = os.path.join('tests', i) os.makedirs(test_dir) @@ -807,6 +816,7 @@ def test(tst): test_suite(tst, serd_base + 'bad/', 'bad', None, 'Turtle') test_suite(tst, serd_base + 'lax/', 'lax', None, 'Turtle', ['-l']) test_suite(tst, serd_base + 'lax/', 'lax', None, 'Turtle') + test_suite(tst, serd_base + 'pattern/', 'pattern', None, 'Turtle', ['-x']) test_suite(tst, serd_base + 'normalise/', 'normalise', None, 'Turtle', ['-n']) test_suite(tst, serd_base + 'terse/', 'terse', None, 'Turtle', ['-t'], |