diff options
Diffstat (limited to 'test/extra/syntactic')
-rw-r--r-- | test/extra/syntactic/inline-blank-subject.ttl | 6 | ||||
-rw-r--r-- | test/extra/syntactic/inline-blanks-and-lists.ttl | 76 | ||||
-rw-r--r-- | test/extra/syntactic/manifest.ttl | 24 |
3 files changed, 106 insertions, 0 deletions
diff --git a/test/extra/syntactic/inline-blank-subject.ttl b/test/extra/syntactic/inline-blank-subject.ttl new file mode 100644 index 00000000..87ea8051 --- /dev/null +++ b/test/extra/syntactic/inline-blank-subject.ttl @@ -0,0 +1,6 @@ +@prefix eg: <http://example.org/eg#> . + +[ + a eg:BlankSubject +] + eg:isA eg:Blank . diff --git a/test/extra/syntactic/inline-blanks-and-lists.ttl b/test/extra/syntactic/inline-blanks-and-lists.ttl new file mode 100644 index 00000000..3fdfa4ee --- /dev/null +++ b/test/extra/syntactic/inline-blanks-and-lists.ttl @@ -0,0 +1,76 @@ +@prefix eg: <http://example.org/eg#> . + +[ + a eg:TopBlank +] . + +[ + a [] +] . + +[ + a () +] . + +[] + a [] , + [] . + +[] + a [] , + () . + +[] + a () , + [] . + +[] + a () , + () . + +eg:s2 + a eg:SparseThing , + [] , + () , + [] , + [] , + () , + () , + <http://example.org/uri21> , + [] , + <http://example.org/uri22> , + () , + <http://example.org/uri23> , + [] , + eg:o21 , + [] , + eg:o22 , + () , + eg:o23 , + [] , + eg:o24 , + [ + a eg:Child + ] , + [] , + eg:o25 , + [ + a eg:FirstChild + ] , [ + a eg:SecondChild + ] , + () , + eg:o26 , + eg:o27 . + +eg:s3 + a eg:Thing ; + eg:p1 eg:o1 , + [ + a eg:SubThing ; + eg:p2 eg:o2 + ] , [ + a eg:OtherSubThing ; + eg:p3 eg:o3 + ] ; + eg:p4 eg:o4 . diff --git a/test/extra/syntactic/manifest.ttl b/test/extra/syntactic/manifest.ttl new file mode 100644 index 00000000..22507130 --- /dev/null +++ b/test/extra/syntactic/manifest.ttl @@ -0,0 +1,24 @@ +@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#> . +@prefix serd: <http://drobilla.net/ns/serd#> . + +<> + a mf:Manifest ; + rdfs:comment "Serd syntactic (non-model) pretty-printing test cases" ; + mf:entries ( + <#inline-blank-subject> + <#inline-blanks-and-lists> + ) . + +<#inline-blank-subject> + a rdft:TestTurtleEval ; + mf:action <inline-blank-subject.ttl> ; + mf:name "inline-blank-subject" ; + mf:result <inline-blank-subject.ttl> . + +<#inline-blanks-and-lists> + a rdft:TestTurtleEval ; + mf:action <inline-blanks-and-lists.ttl> ; + mf:name "inline-blanks-and-lists" ; + mf:result <inline-blanks-and-lists.ttl> . |