Skip to content

Commit

Permalink
add shorthand table
Browse files Browse the repository at this point in the history
  • Loading branch information
william-vw authored and william-vw committed Nov 13, 2023
1 parent 06009a0 commit 928ccae
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions reports/20230703/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,36 @@ <h4>Left to Right Algorithm</h4>
</aside>
</section>
</section>
<section id='shorthands'>
Similar to Turtle, N3 provides a special shorthand syntax for commonly used URIs.
This may only be used in the predicate position. From the original Team Submission [[N3]]:
<table>
<tr>
<th>Shorthand</th>
<th>URI</th>
</tr>
<tr>
<td><code>a</code></td>
<td>
<code>&lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt;</code></td>
</tr>
<tr>
<td><code>=</code></td>
<td><code>&lt;http://www.w3.org/2002/07/owl#sameAs&gt;</code></td>
</tr>
<tr>
<td><code>=&gt;</code></td>
<td>
<code>&lt;http://www.w3.org/2000/10/swap/log#implies&gt;</code></td>
</tr>
<tr>
<td><code>&lt;=</code></td>
<td>
<code>&lt;http://www.w3.org/2000/10/swap/log#implies&gt;</code> but in
the inverse direction</td>
</tr>
</table>
</section>
<section id='grammar'>
<h3>Grammar</h3>
<div data-include="n3.html"></div>
Expand Down
30 changes: 30 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,36 @@ <h4>Left to Right Algorithm</h4>
</aside>
</section>
</section>
<section id='shorthands'>
Similar to Turtle, N3 provides a special shorthand syntax for commonly used URIs.
This may only be used in the predicate position. From the original Team Submission [[N3]]:
<table>
<tr>
<th>Shorthand</th>
<th>URI</th>
</tr>
<tr>
<td><code>a</code></td>
<td>
<code>&lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt;</code></td>
</tr>
<tr>
<td><code>=</code></td>
<td><code>&lt;http://www.w3.org/2002/07/owl#sameAs&gt;</code></td>
</tr>
<tr>
<td><code>=&gt;</code></td>
<td>
<code>&lt;http://www.w3.org/2000/10/swap/log#implies&gt;</code></td>
</tr>
<tr>
<td><code>&lt;=</code></td>
<td>
<code>&lt;http://www.w3.org/2000/10/swap/log#implies&gt;</code> but in
the inverse direction</td>
</tr>
</table>
</section>
<section id='grammar'>
<h3>Grammar</h3>
<div data-include="../grammar/n3.html"></div>
Expand Down

0 comments on commit 928ccae

Please sign in to comment.