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

Values clauses can only introduce a single binding #249

Open
RickMoynihan opened this issue Apr 27, 2023 · 0 comments
Open

Values clauses can only introduce a single binding #249

RickMoynihan opened this issue Apr 27, 2023 · 0 comments

Comments

@RickMoynihan
Copy link
Member

It would be nice to extend values clauses to support introducing multiple bindings, as it's currently just one i.e. you can do this:

(select [?ds ?title ?pub ?creator ?area ?resolution]
          [(values ?ds
                   [:crime
                    :deprivation])
           (optional
            [[?ds :dcterms/spatial ?area]
             [?ds :dcat/spatialResolutionInMeters ?resolution]])
           (optional
            [[?ds :dcterms/publisher ?pub]])
           (optional
            [[?ds :dcterms/creator ?creator]])]

          data)

But not this:

(select [?ds ?title ?pub ?creator ?area ?resolution]
          [(values [?ds ?title]
                   [[:crime "Crimes"]
                    [:deprivation "Indicies of Multiple Deprivation"]])
           (optional
            [[?ds :dcterms/spatial ?area]
             [?ds :dcat/spatialResolutionInMeters ?resolution]])
           (optional
            [[?ds :dcterms/publisher ?pub]])
           (optional
            [[?ds :dcterms/creator ?creator]])]

          data)

It would be nice to support the above.

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

No branches or pull requests

1 participant