Skip to content

Commit 1376edc

Browse files
committed
added JSON-LD snippets for SPARQL spec, added owl namespace
1 parent b8e306b commit 1376edc

File tree

3 files changed

+504
-7
lines changed

3 files changed

+504
-7
lines changed

scripts/sync-code-snippets.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ rdf.formats.import(pretty)
1515

1616
const ignore = new Set([
1717
'shacl12-core/5', // can be removed when https://github.com/rubensworks/jsonld-streaming-parser.js/issues/130 is fixed
18-
'shacl12-core/74' // can be removed when RDF/JS parser and serializer support RDF 1.2
18+
'shacl12-core/74', // can be removed when RDF/JS parser and serializer support RDF 1.2
19+
'shacl12-sparql/3', // can be removed when https://github.com/rubensworks/jsonld-streaming-parser.js/issues/130 is fixed
20+
'shacl12-sparql/6', // can be removed when https://github.com/rubensworks/jsonld-streaming-parser.js/issues/130 is fixed
1921
])
2022

2123
const jsonldContext = {
2224
'@context': {
25+
owl: 'http://www.w3.org/2002/07/owl#',
2326
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
2427
rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
2528
sh: 'http://www.w3.org/ns/shacl#',
@@ -29,6 +32,7 @@ const jsonldContext = {
2932
}
3033

3134
const turtlePrefixes = `
35+
@prefix owl: <http://www.w3.org/2002/07/owl#>.
3236
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
3337
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
3438
@prefix sh: <http://www.w3.org/ns/shacl#>.

shacl12-core/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,10 @@ <h3>Document Conventions</h3>
610610
<th>Prefix</th>
611611
<th>Namespace</th>
612612
</tr>
613+
<tr>
614+
<td><code>owl:</code></td>
615+
<td><code>http://www.w3.org/2002/07/owl#</code></td>
616+
</tr>
613617
<tr>
614618
<td><code>rdf:</code></td>
615619
<td><code>http://www.w3.org/1999/02/22-rdf-syntax-ns#</code></td>
@@ -637,6 +641,7 @@ <h3>Document Conventions</h3>
637641
</p>
638642
<pre class="jsonld">{
639643
"@context": {
644+
"owl": "http://www.w3.org/2002/07/owl#",
640645
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
641646
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
642647
"sh": "http://www.w3.org/ns/shacl#",

0 commit comments

Comments
 (0)