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

feat: allow multiple template SPARQL queries for an object/item endpo… #319

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

recalcitrantsupplant
Copy link
Collaborator

…int. Remove unused file based template queries - configuration was complicated with having to specify file paths - and not currently used by anyone. Only data repo template queries are now supported.

From dev documentation, to add a template SPARQL query, use the form:

PREFIX prez: <https://prez.dev/ont/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT DATA { GRAPH <https://prez/system> {
    [ a prez:TemplateQuery ;
        rdf:value """<template_queries>""" ;
        prez:forEndpoint "http://www.opengis.net/ogcapi-features-1/1.0/feature" ;
    ]
    }}

Prez will now handle multiple literal values for rdf:value and execute all of these queries, returning the graph merge of the result.

…int. Remove unused file based template queries - configuration was complicated with having to specify file paths - and not currently used by anyone. Only data repo template queries are now supported.
Copy link
Contributor

@ashleysommer ashleysommer left a comment

Choose a reason for hiding this comment

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

looks great! I'm glad it wasn't too much code to change to enable this feature.

@recalcitrantsupplant recalcitrantsupplant merged commit a26c895 into main Jan 9, 2025
2 checks passed
@recalcitrantsupplant recalcitrantsupplant deleted the david/support-multiple-template-queries branch January 9, 2025 00:39
Copy link

github-actions bot commented Jan 9, 2025

🎉 This PR is included in version 4.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants