Skip to content

Commit c453c2b

Browse files
committed
Introduce version-agnostic SPARQL test classes and mf:specVersion
This makes the SPARQL syntax test classes more flexible towards future spec versions. Closes #143
1 parent 8ee0206 commit c453c2b

File tree

3 files changed

+713
-519
lines changed

3 files changed

+713
-519
lines changed

ns/test-manifest.ttl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@
9797
rdfs:domain :ManifestEntry ;
9898
rdfs:range :ResultCardinality .
9999

100+
:specVersion rdf:type rdf:Property ;
101+
rdfs:comment "The specification version this test applies to" ;
102+
rdfs:domain :ManifestEntry ;
103+
.
104+
100105
## ---- Test Case Type ---
101106

102107
:PositiveSyntaxTest rdf:type rdfs:Class ;
@@ -111,6 +116,14 @@
111116
rdfs:label "Positive Syntax Test for SPARQL1.1 Update" ;
112117
rdfs:comment "A type of test specifically for syntax testing of SPARQL1.1 Update. Syntax tests are not required to have an associated result, only an action." .
113118

119+
:PositiveSyntaxTestSparql rdf:type rdfs:Class ;
120+
rdfs:label "Positive Syntax Test for SPARQL Query" ;
121+
rdfs:comment "A type of test specifically for syntax testing of new features in the SPARQL Query Language. Syntax tests are not required to have an associated result, only an action. Tests are expected to define their spec version." .
122+
123+
:PositiveUpdateSyntaxTestSparql rdf:type rdfs:Class ;
124+
rdfs:label "Positive Syntax Test for SPARQL Update" ;
125+
rdfs:comment "A type of test specifically for syntax testing of SPARQL Update. Syntax tests are not required to have an associated result, only an action. Tests are expected to define their spec version." .
126+
114127

115128
:NegativeSyntaxTest rdf:type rdfs:Class ;
116129
rdfs:label "Negative Syntax Test" ;
@@ -124,6 +137,14 @@
124137
rdfs:label "Negative Syntax Test for SPARQL1.1 Update" ;
125138
rdfs:comment "A type of test specifically for syntax testing of SPARQL1.1 Update. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error." .
126139

140+
:NegativeSyntaxTestSparql rdf:type rdfs:Class ;
141+
rdfs:label "Negative Syntax Test for SPARQL Query" ;
142+
rdfs:comment "A type of test specifically for syntax testing of new features in the SPARQL Query Language. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error. Tests are expected to define their spec version." .
143+
144+
:NegativeUpdateSyntaxTestSparql rdf:type rdfs:Class ;
145+
rdfs:label "Negative Syntax Test for SPARQL Update" ;
146+
rdfs:comment "A type of test specifically for syntax testing of SPARQL Update. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error. Tests are expected to define their spec version." .
147+
127148

128149
:QueryEvaluationTest rdf:type rdfs:Class ;
129150
rdfs:label "Query Evaluation Test" ;

0 commit comments

Comments
 (0)