Replies: 3 comments 2 replies
-
Hey! You can build the query programmatically by just initializing the structs and enums by hand starting with |
Beta Was this translation helpful? Give feedback.
-
So there is no builder pattern or something similar as you'll find in many other SPARQL libraries. You can construct queries by just using plain Rust constructors. The main struct that is relevant here is GraphPattern, which you'll ultimately wrap in a Query. In order to execute the query against a oxigraph store, you'll have the convert the |
Beta Was this translation helpful? Give feedback.
-
Thanks!, and is it possible to declare the prefix declarations? I noticed that after parsing a query with prefix declarations and displaying it, the prefixed nodes are converted to full IRIs, and it seems that the prefix declarations are not part of the query anymore, right? For my use case, I would like to create a nice SPARQL query with prefix declarations, but I think I can't do it programmatically with Spargebra, is there some way that I can't see? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to create SPARQL queries programmatically in Rust. I was initially planning to use Spargebra but looking to the documentation, I think the only way to create SPARQL queries is parsing them. Is there another way?
My idea is to do something similar to what can be done in Apache Jena as in this example
Beta Was this translation helpful? Give feedback.
All reactions