Skip to content

Feature: SPARQL Graph Update#992

Merged
dpetran merged 18 commits intomainfrom
feature/sparql-update2
Mar 21, 2025
Merged

Feature: SPARQL Graph Update#992
dpetran merged 18 commits intomainfrom
feature/sparql-update2

Conversation

@dpetran
Copy link
Contributor

@dpetran dpetran commented Mar 18, 2025

Add support for SPARQL Graph Update syntax: https://www.w3.org/TR/2013/REC-sparql11-update-20130321/#graphUpdate

Since we only allow transacting to a single ledger at a time, we do not support GRAPH patterns or multiple USING/USING NAMED clauses.

https://github.com/fluree/core/issues/175

@dpetran dpetran changed the title Feature/sparql update2 Feature: SPARQL Graph Update Mar 18, 2025
@dpetran dpetran requested a review from a team March 18, 2025 21:27
@dpetran dpetran marked this pull request as draft March 18, 2025 22:23
@dpetran
Copy link
Contributor Author

dpetran commented Mar 18, 2025

Converting to draft while I add the bits necessary to integrate with server.

@dpetran dpetran marked this pull request as ready for review March 21, 2025 16:23
@dpetran
Copy link
Contributor Author

dpetran commented Mar 21, 2025

This is now ready for review with all the server bits finished.

Copy link
Contributor

@zonotope zonotope left a comment

Choose a reason for hiding this comment

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

🥨

parsed-opts (parse-opts txn opts txn-context)
parsed-txn (q-parse/parse-txn txn txn-context)]
(<? (connection/stage-triples db parsed-txn parsed-opts)))))
(let [txn* (if (= :sparql (:format opts))
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it makes sense to convert this check into a function that takes the transaction and the format since it's used multiple times.

@dpetran dpetran merged commit ecc12f1 into main Mar 21, 2025
6 checks passed
@dpetran dpetran deleted the feature/sparql-update2 branch March 21, 2025 22:43
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