Skip to content

Implement a converter of simple ShEx to SPARQL queries #67

@labra

Description

@labra

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 .
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions