Re: [shex] ShEx to SPARQL converter

There are a few kinds of results we might want from such queries:
<ol>
  <li>matching nodes<ol>
    <li>result ShapeMap</li>
    <li>supporting triples (or <code>(s, o)</code> tuples)</li>
  </ol></li>
  <li>failing nodes<ol>
    <li>result ShapeMap</li>
    <li>reasons for failure</li>
    <li>failing triples</li>
  </ol></li></li>
</ol>

The [ShEx1 FancyShExDemo](https://www.w3.org/2013/ShEx/FancyShExDemo?schema=PREFIX%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0Astart%20%3D%20%3CIssueShape%3E%0A%0A%3CIssueShape%3E%20%7B%0A%20%20%20%20ex%3AreportedBy%20%40%3CUserShape%3E%2C%0A%20%20%20%20ex%3AassignedTo%20%40%3CEmployeeShape%3E%0A%7D%0A%0A%3CUserShape%3E%20%7B%0A%20%20%20%20a%20(foaf%3APerson)%2C%0A%20%20%20%20(%0A%20%20%20%20%20%20%20foaf%3Aname%20xsd%3Astring%0A%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20foaf%3AgivenName%20xsd%3Astring%2B%2C%0A%20%20%20%20%20%20%20foaf%3AfamilyName%20xsd%3Astring)%2C%0A%20%20%20%20foaf%3Ambox%20IRI%0A%7D%0A%0A%3CEmployeeShape%3E%20%7B%0A%20%20%20%20a%20(foaf%3APerson)%2C%0A%20%20%20%20foaf%3AgivenName%20xsd%3Astring%2B%2C%0A%20%20%20%20foaf%3AfamilyName%20xsd%3Astring%2C%0A%20%20%20%20foaf%3Aphone%20IRI*%2C%0A%20%20%20%20foaf%3Ambox%20IRI%0A%7D%0A&data=%23BASE%20%3Chttp%3A%2F%2Fbase.example%2F%23%3E%0APREFIX%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0A%3CIssue1%3E%0A%20%20%20%20ex%3AreportedBy%20%20%20%3CUser2%3E%20%3B%0A%20%20%20%20ex%3AassignedTo%20%20%20%3CUser2%3E%20.%0A%0A%3CUser2%3E%20a%20foaf%3APerson%20%3B%0A%20%20%20%20foaf%3AgivenName%20%22Bob%22%20%3B%0A%20%20%20%20foaf%3AfamilyName%20%22Smith%22%20%3B%0A%20%20%20%20foaf%3Ambox%20%3Cmailto%3Abob%40example.org%3E%20.%0A%0A&starting-nodes=%3CIssue1%3E&colorize=true) made and attempt at some of these (see the `validating query`,  `remaining triples`, `value dump` links).


-- 
GitHub Notification of comment by ericprud
Please view or discuss this issue at https://github.com/shexSpec/shex/issues/75#issuecomment-353878445 using your GitHub account

Received on Monday, 25 December 2017 16:18:38 UTC