-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPARQL syntax test classes in test manifest vocabulary include version in IRI (11
)
#143
Comments
For completeness, there is a "3": Note: IMO find saying "SPARQL 1.1" when it is SPARQL 1.2 is a bit misleading. (3) is slightly more preferable; (2) is OK. Apache Jena has separate parsers for versions of SPARQL (1.0, 1.1. and now 1.2). I don't recall any feedback about their usage. The default is SPARQL+extensions. All extensions are additions and do not change/invalidate any standard SPARQL syntax. |
I'm less in favor of that one, as the RDF syntaxes tests also don't have versions in their test classes ( My current preference is on option (2). |
I don't have a particularly strong opinion here, but option (2) seems to me as the most logical one. |
+1 to option 2 but I don't have a really strong opinion too |
I prefer option 3, but could accept 2. I like knowing that a certain test is specific to a specific version based on the manifest data. This might be accomplished by an extra property hanging off of the test (similar to what we do with |
Option 3 could allow implementations to know if they need to invoke some 1.2-specific rules; In JSON-LD we added another test entry property to indicate the spec version associated with a given test. My personal preference would be option 2, and if we need to distinguish specific behavior to use another property to signal this, which is not uncommon in other test manifests. Otherwise, continuing to create new version-specific classes for the different test types would seem to become more and more difficult to manage over time. |
Ok, to compromise between option 2 and 3, I'll look into making a PR for option 2, but with an additional test property to mark the SPARQL version, similar to what JSON-LD does. |
This makes the SPARQL syntax test classes more flexible towards future spec versions. Closes w3c#143
This makes the SPARQL syntax test classes more flexible towards future spec versions. Closes w3c#143
I've included this change in PR #144 as 52735fd |
I note that the 1.0 syntax tests use (for example) @afs pointed out that the "Sparql" suffix is redundant, I would favor consolidating to |
The test manifest vocabulary introduces the following:
This means that the test classes are hardcoded to SPARQL 1.1, which is inconsistent with the test classes for RDF syntaxes (
PositiveSyntaxTest
andNegativeSyntaxTest
), which do not include such a version label.In order to add new syntax tests for SPARQL 1.2, we can either
PositiveSyntaxTest11
for SPARQL 1.2, orPositiveSyntaxTestSparql
and variants into the vocabulary, and deprecatePositiveSyntaxTest11
and variants.Option 2 seems like the cleanest option to me.
The text was updated successfully, but these errors were encountered: