aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/longhand
diff options
context:
space:
mode:
Diffstat (limited to 'test/extra/longhand')
-rw-r--r--test/extra/longhand/blank_object.ttl2
-rw-r--r--test/extra/longhand/blank_subject.ttl2
-rw-r--r--test/extra/longhand/collection_object.ttl2
-rw-r--r--test/extra/longhand/collection_subject.ttl2
-rw-r--r--test/extra/longhand/longhand.ttl13
-rw-r--r--test/extra/longhand/manifest.ttl16
-rw-r--r--test/extra/longhand/shorthand.ttl13
7 files changed, 50 insertions, 0 deletions
diff --git a/test/extra/longhand/blank_object.ttl b/test/extra/longhand/blank_object.ttl
new file mode 100644
index 00000000..270e406b
--- /dev/null
+++ b/test/extra/longhand/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/longhand/blank_subject.ttl b/test/extra/longhand/blank_subject.ttl
new file mode 100644
index 00000000..5e3303f9
--- /dev/null
+++ b/test/extra/longhand/blank_subject.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+[] eg:p1 1 ; eg:p2 2 .
diff --git a/test/extra/longhand/collection_object.ttl b/test/extra/longhand/collection_object.ttl
new file mode 100644
index 00000000..3310c418
--- /dev/null
+++ b/test/extra/longhand/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/longhand/collection_subject.ttl b/test/extra/longhand/collection_subject.ttl
new file mode 100644
index 00000000..43670620
--- /dev/null
+++ b/test/extra/longhand/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/longhand/longhand.ttl b/test/extra/longhand/longhand.ttl
new file mode 100644
index 00000000..b756ce91
--- /dev/null
+++ b/test/extra/longhand/longhand.ttl
@@ -0,0 +1,13 @@
+@prefix eg: <http://example.org/eg#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[]
+ rdf:type eg:Node ;
+ eg:with [
+ rdf:type eg:NodeChild ;
+ eg:having (
+ [
+ rdf:type eg:ListItem
+ ]
+ )
+ ] .
diff --git a/test/extra/longhand/manifest.ttl b/test/extra/longhand/manifest.ttl
new file mode 100644
index 00000000..313ca846
--- /dev/null
+++ b/test/extra/longhand/manifest.ttl
@@ -0,0 +1,16 @@
+@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 longhand writing test suite" ;
+ mf:entries (
+ <#write-longhand>
+ ) .
+
+<#write-longhand>
+ a rdft:TestTurtleEval ;
+ mf:action <shorthand.ttl> ;
+ mf:name "write-longhand" ;
+ mf:result <longhand.ttl> .
diff --git a/test/extra/longhand/shorthand.ttl b/test/extra/longhand/shorthand.ttl
new file mode 100644
index 00000000..d563021e
--- /dev/null
+++ b/test/extra/longhand/shorthand.ttl
@@ -0,0 +1,13 @@
+@prefix eg: <http://example.org/eg#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[]
+ a eg:Node ;
+ eg:with [
+ a eg:NodeChild ;
+ eg:having (
+ [
+ a eg:ListItem
+ ]
+ )
+ ] .