-
Notifications
You must be signed in to change notification settings - Fork 3
GH-282, GH-283: Restrict triple terms to have only IRI as a constant subject in VALUES and expressions #332
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
base: main
Are you sure you want to change the base?
Conversation
…subject in VALUES and expressions
|
I am neutral on this change. SPARQL (all versions) are what is now called symmetric RDF. There must be some way to write literal in the subject position of triple terms. I do not support keeping I do not support changing |
|
My rational for the change: Allowing the following queries SELECT ?t WHERE { VALUES ?s { <<( <<(:s :p :o )>> :q :z )>> } }SELECT (<<( <<(:s :p :o )>> :q :z )>> AS ?t) WHERE {}means that:
No variant sounds good to me. I would prefer that the SPARQL 1.2 standard still allow SELECT queries to return only valid RDF terms. This does not prevent implementations supporting generalized RDF to support and return such terms by extending the SPARQL grammar. |
hartig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am supporting this change.
| <ul> | ||
| <li>each of the three elements of the triple term expression can only be | ||
| a <a href="#defn_QueryVariable">variable</a> | ||
| or a directly written [=RDF terms=], not arbitrary expressions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| or a directly written [=RDF terms=], not arbitrary expressions. | |
| or a directly written [=RDF term=], not an arbitrary expression. |
| the syntax of the subject and predicate positions is limited to an | ||
| <a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a> or | ||
| <a href="#defn_QueryVariable">variable</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| the syntax of the subject and predicate positions is limited to an | |
| <a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a> or | |
| <a href="#defn_QueryVariable">variable</a>. | |
| the syntax of each subject and predicate position is limited | |
| to an <a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a> or | |
| a <a href="#defn_QueryVariable">variable</a>. |
Replaces #329
Closes #283
Closes #282
This PR breaks test
basic-tripleterm-subject.rq.Preview | Diff