From 5d43cb36087292a397992aa1b59326fc355d5247 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Dec 2019 19:09:49 -0500 Subject: 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. --- test/pattern/manifest.ttl | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 test/pattern/manifest.ttl (limited to 'test/pattern/manifest.ttl') diff --git a/test/pattern/manifest.ttl b/test/pattern/manifest.ttl new file mode 100644 index 00000000..a7f238bc --- /dev/null +++ b/test/pattern/manifest.ttl @@ -0,0 +1,89 @@ +@prefix mf: . +@prefix rdf: . +@prefix rdfs: . +@prefix rdft: . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd pattern syntax test cases" ; + mf:entries ( + <#bad-pattern-graph-nq> + <#bad-pattern-object-nq> + <#bad-pattern-object-nt> + <#bad-pattern-object-ttl> + <#bad-pattern-predicate-nq> + <#bad-pattern-predicate-nt> + <#bad-pattern-predicate-ttl> + <#bad-pattern-subject-nq> + <#bad-pattern-subject-nt> + <#bad-pattern-subject-ttl> + <#test-graph-pattern> + <#test-pattern-nt> + <#test-pattern-ttl> + ) . + +<#bad-pattern-graph-nq> + rdf:type rdft:TestNQuadsNegativeSyntax ; + mf:name "bad-pattern-graph-nq" ; + mf:action . + +<#bad-pattern-object-nq> + rdf:type rdft:TestNQuadsNegativeSyntax ; + mf:name "bad-pattern-object-nq" ; + mf:action . + +<#bad-pattern-object-nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-pattern-object-nt" ; + mf:action . + +<#bad-pattern-object-ttl> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pattern-object-ttl" ; + mf:action . + +<#bad-pattern-predicate-nq> + rdf:type rdft:TestNQuadsNegativeSyntax ; + mf:name "bad-pattern-predicate-nq" ; + mf:action . + +<#bad-pattern-predicate-nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-pattern-predicate-nt" ; + mf:action . + +<#bad-pattern-predicate-ttl> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pattern-predicate-ttl" ; + mf:action . + +<#bad-pattern-subject-nq> + rdf:type rdft:TestNQuadsNegativeSyntax ; + mf:name "bad-pattern-subject-nq" ; + mf:action . + +<#bad-pattern-subject-nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-pattern-subject-nt" ; + mf:action . + +<#bad-pattern-subject-ttl> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pattern-subject-ttl" ; + mf:action . + +<#test-graph-pattern> + rdf:type rdft:TestNQuadsPositiveSyntax ; + mf:name "test-graph-pattern" ; + mf:action . + +<#test-pattern-nt> + rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "test-pattern-nt" ; + mf:action . + +<#test-pattern-ttl> + rdf:type rdft:TestTurtleEval ; + mf:name "test-pattern" ; + mf:action ; + mf:result . -- cgit v1.2.1