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

Support for RDF Star and SPARQL Star? #1406

Closed
jpmccu opened this issue Sep 8, 2021 · 3 comments
Closed

Support for RDF Star and SPARQL Star? #1406

jpmccu opened this issue Sep 8, 2021 · 3 comments
Labels
enhancement New feature or request SPARQL

Comments

@jpmccu
Copy link
Contributor

jpmccu commented Sep 8, 2021

This may already have an issue, but is there a chance we can get support for RDF* and SPARQL* in RDFlib? It's becoming much more common with the expansion of Wikidata, and it might be nice to support its use.

@mwatts15
Copy link
Contributor

Especially at this point, where SPARQL* is still in a draft phase, I think it would be preferable to define another package, like a "rdflib-star". It should be pretty feasible to implement SPARQL* support with a rdflib.query.Processor plugin, possibly registered with a "rdf.plugins.queryprocessor" entry point. I'm thinking something like:

register("sparql*", Processor, "rdflib_star.plugins.sparql_star.processor", "SPARQLStarProcessor")

A copy of the existing SPARQL parser could be made more extendible though. As it stands, after you copy the root parser elements, you'll need to navigate through the grammar/graph of ParserElements to reach the elements you want to change. I'm thinking of a traversal function that allows you to either specify a name as it's declared in the parser module or specify a path and a replacement ParserElement.

@mwatts15
Copy link
Contributor

This may be closed as a duplicate of #955

@ghost ghost added SPARQL enhancement New feature or request labels Dec 23, 2021
@ghost
Copy link

ghost commented Dec 25, 2021

This may be closed as a duplicate of #955

Closed as a duplicate of #955

@ghost ghost closed this as completed Dec 25, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SPARQL
Projects
None yet
Development

No branches or pull requests

2 participants