Skip to content
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

Feature/sparql from named #780

Merged
merged 20 commits into from
Jun 17, 2024
Merged

Conversation

JaceRockman
Copy link
Contributor

@JaceRockman JaceRockman commented May 23, 2024

Support for translating SPARQL FROM and FROM NAMED clauses to FQL.

[[_ source]]
[[:from (parse-term source)]])
;; DatasetClause ::= FromClause*
;; FromClause ::= <'FROM'> WS ( DefaultGraphClause | NamedGraphClause )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add angle brackets around the left hand side FromClause term to match the bnf file?

@JaceRockman JaceRockman changed the base branch from main to feature/sparql-func May 28, 2024 18:51
@dpetran dpetran marked this pull request as ready for review May 28, 2024 20:10
@dpetran dpetran requested a review from a team May 28, 2024 20:10
Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dpetran
Copy link
Contributor

dpetran commented May 31, 2024

Rebased on #778

@dpetran dpetran force-pushed the feature/sparql-func branch 2 times, most recently from b62ad15 to 63090d7 Compare June 12, 2024 20:57
@dpetran
Copy link
Contributor

dpetran commented Jun 12, 2024

Rebased on #778

The grammar wasn't expecting whitespace between the 'a' and the prev/next term.
Semantics and syntax from SPARQL IN expression.
It's not sparql-specific, so no need to qualify it.
The :Expression parser was turning everything into a string, which works in some cases
but introduces unwanted quoting in others. By deferring stringification until values
need to be incorporated into an actual string expression we avoid the unwanted quoting.

Do note that all the numeric functions now correctly expect numeric values instead of
strings.
abs expects only a single expression as an argument, and that argument does not need to
be quoted.
@dpetran dpetran merged commit 2973fc1 into feature/sparql-func Jun 17, 2024
7 checks passed
@dpetran dpetran deleted the feature/sparql-from-named branch June 17, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants