Skip to content

Commit e06c29e

Browse files
committed
1 parent 5f412e4 commit e06c29e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

xls2rdf-rest/src/main/webapp/doc.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,21 @@ <h4>How to use it ?</h4>
315315
<p />This is how it looks like:<br />
316316
<img src="images/convert-screenshot-manchester.png" />
317317

318+
<h3>Specific support for SHACL logical operators</h3>
319+
320+
<p />SHACL logical operators, typically <a href="https://www.w3.org/TR/shacl/#OrConstraintComponent">sh:or</a>, require a cumbersome RDF structure.
321+
xls2rdf provide specific wrapper to enable to easily turn a list of values in a column to the corresponding SHACL logical operator (typically sh:or, or sh:and or sh:xone).
322+
to do this add the parameter <code>wrapper="sh:or"</code> (or <code>wrapper="sh:and"</code> or <code>wrapper="sh:xone"</code>) to your header, combining it with a <code>separator="x"</code> parameter.
323+
<p />This is how it looks like:<br />
324+
<img src="images/convert-screenshot-shor.png" />
325+
<p />The above example will output the single triple <code>ex sh:class &lt;http://exemple.fr/1&gt;</code> if "http://exemple.fr/1" is the only value in the value, but will output the following if there is the 2 values "http://exemple.fr/1" and "http://exemple.fr/2" in the cell:
326+
<p /><code>
327+
ex sh:or (
328+
[sh:class &lt;http://exemple.fr/1&gt;]
329+
[sh:class &lt;http://exemple.fr/2&gt;]
330+
)
331+
</code>
332+
318333
<h3>Miscellaneous features</h3>
319334

320335
<h4>Named graph management</h4>
@@ -383,7 +398,7 @@ <h2>Column header parameters reference</h2>
383398
<li><code>reconcile="local"</code> or <code>reconcile="external"</code> : whether to reconcile the value either locally or to an external reconcile endpoint (not implemented yet)</li>
384399
<li><code>separator=";"</code> : specifies the separator to split cell in multiple values</li>
385400
<li><code>subjectColumn="dcterms:creator"</code> or <code>subjectColumn="columnId"</code> or <code>subjectColumn="C"</code> : specifies the column containing the URI of the subject for predicates generated from this column</li>
386-
401+
<li><code>wrapper="sh:or"</code> or <code>wrapper="sh:and"</code> or <code>wrapper="sh:xone"</code> : instruct the converter to wrap the list of values of the cell into a SHACL sh:or operator</li>
387402
</ul>
388403

389404
</div>
5.74 KB
Loading

0 commit comments

Comments
 (0)