aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/terse
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-04 06:35:51 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit7219a81ad6cff840eb604983b3752d4f2097532a (patch)
tree5c071ae9575f05a75f17a2d8280e9e9aed6440ac /test/extra/terse
parent1c7a8efa90003d21e19b47bbad185390cea5963c (diff)
downloadserd-7219a81ad6cff840eb604983b3752d4f2097532a.tar.gz
serd-7219a81ad6cff840eb604983b3752d4f2097532a.tar.bz2
serd-7219a81ad6cff840eb604983b3752d4f2097532a.zip
Add support for writing terse output with minimal newlines
Diffstat (limited to 'test/extra/terse')
-rw-r--r--test/extra/terse/blank_object.ttl2
-rw-r--r--test/extra/terse/blank_subject.ttl2
-rw-r--r--test/extra/terse/collection_object.ttl2
-rw-r--r--test/extra/terse/collection_subject.ttl2
-rw-r--r--test/extra/terse/manifest.ttl39
-rw-r--r--test/extra/terse/nil_object.ttl2
-rw-r--r--test/extra/terse/nil_subject.ttl2
7 files changed, 51 insertions, 0 deletions
diff --git a/test/extra/terse/blank_object.ttl b/test/extra/terse/blank_object.ttl
new file mode 100644
index 00000000..270e406b
--- /dev/null
+++ b/test/extra/terse/blank_object.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+eg:s eg:p1 [ eg:p11 1 ; eg:p12 2 ] ; eg:p2 [ eg:p23 3 ; eg:p24 4 ] .
diff --git a/test/extra/terse/blank_subject.ttl b/test/extra/terse/blank_subject.ttl
new file mode 100644
index 00000000..5e3303f9
--- /dev/null
+++ b/test/extra/terse/blank_subject.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+[] eg:p1 1 ; eg:p2 2 .
diff --git a/test/extra/terse/collection_object.ttl b/test/extra/terse/collection_object.ttl
new file mode 100644
index 00000000..3310c418
--- /dev/null
+++ b/test/extra/terse/collection_object.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+eg:s eg:p1 ( 1 2 ) ; eg:p2 ( 3 4 ) .
diff --git a/test/extra/terse/collection_subject.ttl b/test/extra/terse/collection_subject.ttl
new file mode 100644
index 00000000..43670620
--- /dev/null
+++ b/test/extra/terse/collection_subject.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+( 1 2 ) eg:p3 3 ; eg:p4 4 .
diff --git a/test/extra/terse/manifest.ttl b/test/extra/terse/manifest.ttl
new file mode 100644
index 00000000..6773b97d
--- /dev/null
+++ b/test/extra/terse/manifest.ttl
@@ -0,0 +1,39 @@
+@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdft: <http://www.w3.org/ns/rdftest#> .
+
+<>
+ a mf:Manifest ;
+ rdfs:comment "Serd terse writing test suite" ;
+ mf:entries (
+ <#blank_object>
+ <#blank_subject>
+ <#collection_object>
+ <#collection_subject>
+ <#nil_object>
+ <#nil_subject>
+ ) .
+
+<#blank_object>
+ a rdft:TestTurtleEval ;
+ mf:action <blank_object.ttl> ;
+ mf:name "blank_object" ;
+ mf:result <blank_object.ttl> .
+
+<#blank_subject>
+ a rdft:TestTurtleEval ;
+ mf:action <blank_subject.ttl> ;
+ mf:name "blank_subject" ;
+ mf:result <blank_subject.ttl> .
+
+<#collection_object>
+ a rdft:TestTurtleEval ;
+ mf:action <collection_object.ttl> ;
+ mf:name "collection_object" ;
+ mf:result <collection_object.ttl> .
+
+<#collection_subject>
+ a rdft:TestTurtleEval ;
+ mf:action <collection_subject.ttl> ;
+ mf:name "collection_subject" ;
+ mf:result <collection_subject.ttl> .
diff --git a/test/extra/terse/nil_object.ttl b/test/extra/terse/nil_object.ttl
new file mode 100644
index 00000000..4a0f93bd
--- /dev/null
+++ b/test/extra/terse/nil_object.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+eg:s eg:p1 () ; eg:p2 [] , () .
diff --git a/test/extra/terse/nil_subject.ttl b/test/extra/terse/nil_subject.ttl
new file mode 100644
index 00000000..a08f7d82
--- /dev/null
+++ b/test/extra/terse/nil_subject.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+() eg:p1 1 ; eg:p2 2 .