aboutsummaryrefslogtreecommitdiffstats
path: root/test/multifile
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-05-05 16:12:38 +0200
committerDavid Robillard <d@drobilla.net>2022-01-13 23:05:24 -0500
commitb98bd7a32cf4302e0a210dd8558edd3ab2088525 (patch)
tree5f4960229abe31fab1683341609fe37319a49a91 /test/multifile
parentf7d10ea309fb52d09a58b2832fe4a09a120b16aa (diff)
downloadserd-b98bd7a32cf4302e0a210dd8558edd3ab2088525.tar.gz
serd-b98bd7a32cf4302e0a210dd8558edd3ab2088525.tar.bz2
serd-b98bd7a32cf4302e0a210dd8558edd3ab2088525.zip
Add support for reading multiple files at once
Diffstat (limited to 'test/multifile')
-rw-r--r--test/multifile/input1.ttl2
-rw-r--r--test/multifile/input2.trig7
-rw-r--r--test/multifile/output.nq3
3 files changed, 12 insertions, 0 deletions
diff --git a/test/multifile/input1.ttl b/test/multifile/input1.ttl
new file mode 100644
index 00000000..88c3f8e9
--- /dev/null
+++ b/test/multifile/input1.ttl
@@ -0,0 +1,2 @@
+[]
+ a <http://example.org/Type> .
diff --git a/test/multifile/input2.trig b/test/multifile/input2.trig
new file mode 100644
index 00000000..260080a8
--- /dev/null
+++ b/test/multifile/input2.trig
@@ -0,0 +1,7 @@
+[]
+ a <http://example.org/Type> .
+
+<http://example.org/graph> {
+ []
+ a <http://example.org/OtherType> .
+}
diff --git a/test/multifile/output.nq b/test/multifile/output.nq
new file mode 100644
index 00000000..dd35dc4d
--- /dev/null
+++ b/test/multifile/output.nq
@@ -0,0 +1,3 @@
+_:f0b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Type> .
+_:f1b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Type> .
+_:f1b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/OtherType> <http://example.org/graph> .