[shex] Allow SPARQL code in shape map's node selectors (#93)

labra has just created a new issue for https://github.com/shexSpec/shex:

== Allow SPARQL code in shape map's node selectors ==
In order to validate RDF behind SPARQL endpoints, several ShEx implementation have extended node selectors in shape maps with SPARQL queries. 

This allows, for example to use the following syntax:

```
SPARQL ' ' 'SELECT * WHERE {
 ?x rdfs:subClassOf*/rdf:type :Person .
?x :birthPlace :Spain 
}'''@<SpaniardShape>
```

to check all nodes that are instances of `:Person`  and whose `:birthPlace` is `:Spain` to conform with `<SpaniardShape>`.

At this moment, both [Shex.js](https://github.com/shexSpec/shex.js/) and [SHalclEX](https://github.com/labra/shaclex) support this feature and with the recent adoption of ShEx in wikidata this feature is being used a lot.


Please view or discuss this issue at https://github.com/shexSpec/shex/issues/93 using your GitHub account

Received on Sunday, 23 June 2019 07:22:16 UTC