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

Implement a converter of simple ShEx to SPARQL queries #67

Closed
labra opened this issue Jun 20, 2024 · 1 comment
Closed

Implement a converter of simple ShEx to SPARQL queries #67

labra opened this issue Jun 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@labra
Copy link
Contributor

labra commented Jun 20, 2024

Some users are interested in converting simple ShEx shapes to SPARQL queries.

Of course, this conversion is not possible for complex ShEx, but it can be useful for simple cases and could be used, for example, for converting some Wikidata entity schemas to the skeleton of SPARQL queries that a user could later edit.

As an example, the following ShEx:

<Person> { 
 wdt:P31  [ wd:Q5 ]  ;
 wdt:P19  @<Place> * ;
}

could be converted to this SPARQL query:

SELECT * WHERE { 
 ?this wdt:P31 wd:Q5 .
 ?this wdt:P19 ?P19 .
}
@labra
Copy link
Contributor Author

labra commented Jun 22, 2024

First implementation in PR #68 and added to release v0.0.13

@labra labra closed this as completed Jun 22, 2024
@labra labra mentioned this issue Sep 2, 2024
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant