-
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-Star grammar imprecisions #256
Comments
Yes - SPARQL allows literals in the subject position. (See also "generalized RDF" in RDF 1.1).
Blank nodes in patterns behave like variables - they match the data. VALUES does not involved matching and so not allow blank node syntax. So in the same way QuotedTriple variables or blank nodes. |
Is it absolutely correct, though? Under some inference regimes, triples with literals as subjects can be inferred. E.g.:
would entail
And so
should match if that entailment regime was supported, right? |
owl:sameAs is defined only for individuals, not for literals (that is, according to the RDF-based semantics of OWL, the rdfs:domain of owl:sameAs is owl:Thing; and a literal is not an owl:Thing). Therefore, writing
should already be inconsistent in itself. No? |
My mistake, sorry for the noise. |
https://www.w3.org/TR/sparql11-query/#sparqlTriplePatterns The reason literals are allowed in the subject is because special casing matching makes complication for no benefit. Ditto CONSTRUCT.
and
|
@hartig |
"we"? |
With the proposed SPARQL-Star grammar :
the subject of any quoted triple is allowed to be a literal, and the
DataValueTerm
rule (used for VALUES clauses) prevents the subject/object of the quoted triple to be a blank node.It seems necessary to create different rules for quoted subjects and object, such as:
The text was updated successfully, but these errors were encountered: