Skip to content

Commit 66b309b

Browse files
committed
include common files
1 parent d35e342 commit 66b309b

File tree

9 files changed

+389
-1
lines changed

9 files changed

+389
-1
lines changed

spec/common/fixup.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
require(["core/pubsubhub"], (respecEvents) => {
2+
respecEvents.sub('end-all', (documentElement) => {
3+
// remove data-cite where the citation is to ourselves.
4+
const selfCites = Array.from(document.querySelectorAll(`a[data-cite^='${respecConfig.shortName}' i]`));
5+
for (const anchor of selfCites) {
6+
const text = anchor.text + ' (this document)';
7+
const citeParent = anchor.parentNode.parentNode;
8+
const textSpan = document.createElement('span');
9+
textSpan.textContent = text;
10+
citeParent.replaceChild(textSpan, anchor.parentNode);
11+
}
12+
13+
// Add highlighting and remove comment from pre elements
14+
for (const pre of document.querySelectorAll("pre")) {
15+
// First pre element of aside
16+
const content = pre.innerHTML
17+
.replace(/\*\*\*\*([^*]*)\*\*\*\*/g, '<span class="hl-bold">$1</span>')
18+
.replace(/####([^#]*)####/g, '<span class="comment">$1</span>');
19+
pre.innerHTML = content;
20+
}
21+
});
22+
});
23+
24+
function _esc(s) {
25+
return s.replace(/&/g,'&amp;')
26+
.replace(/>/g,'&gt;')
27+
.replace(/"/g,'&quot;')
28+
.replace(/</g,'&lt;');
29+
}
30+
31+
function updateExample(utils, content) {
32+
// perform transformations to make it render and prettier
33+
return _esc(unComment(utils, content));
34+
}
35+
36+
function unComment(utils, content) {
37+
// perform transformations to make it render and prettier
38+
return content
39+
.replace(/<!--/, '')
40+
.replace(/-->/, '')
41+
.replace(/< !\s*-\s*-/g, '<!--')
42+
.replace(/-\s*- >/g, '-->')
43+
.replace(/-\s*-\s*&gt;/g, '--&gt;');
44+
}
45+
46+
// If content is a self-citation, replace it with the document name
47+
function noSelfCite(utils, content) {
48+
if (content.toUpperCase() === `[[[${respecConfig.shortName}]]]`.toUpperCase()) {
49+
return respecConfig.title + ' (this document)';
50+
} else {
51+
return content;
52+
}
53+
}

spec/common/local-biblio.js

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
var localBibliography = {
2+
ISO24707: {
3+
id: "ISO24707",
4+
title: "Information technology — Common Logic (CL) — A framework for a family of logic-based languages",
5+
date: "2018-07",
6+
href: "https://www.iso.org/standard/66249.html",
7+
status: "Published",
8+
publisher: "ISO/EIC"
9+
},
10+
HORST04: {
11+
id: "HORST04",
12+
title: "Extending the RDFS Entailment Lemma",
13+
authors: ["Herman J. ter Horst"],
14+
date: "2004",
15+
isbn: "978-3-540-30475-3",
16+
href: "https://doi.org/10.1007/978-3-540-30475-3_7",
17+
status: "Conference Proceeding",
18+
publisher: "Springer, Berlin, Heidelberg"
19+
},
20+
HORST05: {
21+
id: "HORST05",
22+
title: "Completeness, Decidability and Complexity of Entailment for RDF Schema and a Semantic Extension Involving the OWL Vocabulary",
23+
authors: ["Herman J. ter Horst"],
24+
date: "2005",
25+
href: "https://dx.doi.org/10.2139/ssrn.3199251",
26+
status: "Conference Proceeding",
27+
publisher: "Journal of Web Semantics"
28+
},
29+
SAFETY: {
30+
title: "Saftety of recursive horn clauses with infinite relations",
31+
href: "http://arxiv.org/abs/cs.LO/9809032",
32+
authors: [
33+
"R. Ramakrishnan",
34+
"F. Bancilhon",
35+
"A. Silberschatz"
36+
],
37+
date: "1987",
38+
publisher: "ACM New York"
39+
},
40+
SAX: {
41+
title: "SAX – The Simple API for XML",
42+
href: "https://accu.org/journals/overload/7/34/cornish_515/",
43+
authors: ["Steve Cornish"],
44+
date: "October 1999",
45+
},
46+
STRIPEDRDF: {
47+
id: "STRIPEDRDF",
48+
title: "RDF: Understanding the Striped RDF/XML Syntax",
49+
editors: ["D. Brickley"],
50+
date: "2001",
51+
href: "http://www.w3.org/2001/10/stripes/",
52+
status: "Team Submission",
53+
publisher: "W3C"
54+
},
55+
"RDF-STAR-CG": {
56+
title: "RDF-star and SPARQL-star",
57+
href: "https://w3c.github.io/rdf-star/cg-spec/2021-12-17.html",
58+
authors: [
59+
"Olaf Hartig",
60+
"Pierre-Antoine Champin",
61+
"Gregg Kellogg",
62+
"Andy Seaborne"
63+
],
64+
rawDate: "2021-12-17",
65+
status: "Final Community Group Report",
66+
publisher: "W3C"
67+
},
68+
"RDF12-NEW": {
69+
"authors": [
70+
"The W3C RDF &amp; SPARQL Working Group"
71+
],
72+
"href": "https://w3c.github.io/rdf-new/spec/",
73+
"title": "What’s New in RDF 1.2",
74+
"rawDate": "2022-01-01",
75+
"status": "ED",
76+
"publisher": "W3C"
77+
},
78+
"RDF12-INTEROP": {
79+
"authors": [
80+
"Pierre-Antoine Champin"
81+
],
82+
"href": "https://w3c.github.io/rdf-interop/spec/",
83+
"title": "RDF 1.2 Interoperability",
84+
"rawDate": "2025-06-27",
85+
"status": "ED",
86+
"publisher": "W3C"
87+
},
88+
"SPARQL12-NEW": {
89+
"authors": [
90+
"The W3C RDF &amp; SPARQL Working Group"
91+
],
92+
"href": "https://w3c.github.io/sparql-new/spec/",
93+
"title": "What’s New in SPARQL 1.2",
94+
"rawDate": "2022-01-01",
95+
"status": "ED",
96+
"publisher": "W3C"
97+
},
98+
"SPARQL12-CONCEPTS": {
99+
"authors": [
100+
"The W3C RDF &amp; SPARQL Working Group"
101+
],
102+
"href": "https://w3c.github.io/sparql-concepts/spec/",
103+
"title": "SPARQL 1.2 Concepts",
104+
"rawDate": "2022-01-01",
105+
"status": "ED",
106+
"publisher": "W3C"
107+
},
108+
};

spec/common/participants.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Members of the RDF & SPARQL Working Group Group included
2+
Vladimir Alexiev,
3+
James Anderson,
4+
Amin Anjomshoaa,
5+
Julián Arenas-Guerrero,
6+
Dörthe Arndt,
7+
Bilal Ben Mahria,
8+
Erich Bremer,
9+
Dan Brickley,
10+
Kurt Cagle,
11+
Sarven Capadisli,
12+
Rémi Ceres,
13+
Pierre-Antoine Champin,
14+
David Chaves-Fraga,
15+
Souripriya Das,
16+
Daniil Dobriy,
17+
Enrico Franconi,
18+
Jeffrey Phillips Freeman,
19+
Fabien Gandon,
20+
Benjamin Goering,
21+
Damien Graux,
22+
Adrian Gschwend,
23+
Olaf Hartig,
24+
Timothée Haudebourg,
25+
Ian Horrocks,
26+
Gregg Kellogg,
27+
Mark Kim,
28+
Jose Emilio Labra Gayo,
29+
Ora Lassila,
30+
Richard Lea,
31+
Niklas Lindström,
32+
Pasquale Lisena,
33+
Thomas Lörtsch,
34+
Matthew Nguyen,
35+
Peter Patel-Schneider,
36+
Thomas Pellissier Tanon,
37+
Dave Raggett,
38+
Jean-Yves ROSSI,
39+
Felix Sasaki,
40+
Andy Seaborne,
41+
Alan Snyder,
42+
Stuart Sutton,
43+
Ruben Taelman,
44+
Ted Thibodeau Jr,
45+
Dominik Tomaszuk,
46+
Raphaël Troncy,
47+
William Van Woensel,
48+
Gregory Williams,
49+
Jesse Wright,
50+
Achille Zappa, and
51+
Antoine Zimmermann.

spec/common/participants.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Retrieve the list of users for a working group as a sentence.
2+
// APIKEY and GROUP can be specified via either enironment variable or argument
3+
// usage:
4+
// APIKEY=<apikey> GROUP=wg/rdf-star node participants.js
5+
// or
6+
// node participants.js <apikey> wg/rdf-star
7+
// group defaults to wg/rdf-star
8+
9+
10+
const https = require('https');
11+
const process = require('process');
12+
13+
const APIKEY = process.env.APIKEY || process.argv[2] || '';
14+
const GROUP = process.env.GROUP || process.argv[3] || "wg/rdf-star";
15+
16+
var apikey = APIKEY.length > 0 ? `&apikey=${APIKEY}` : ''
17+
18+
const groupOptions = {
19+
hostname: 'api.w3.org',
20+
path: `/groups/${GROUP}?items=50${apikey}`,
21+
headers: {
22+
'Accept': 'application/json'
23+
}
24+
};
25+
26+
const userOptions = {
27+
hostname: 'api.w3.org',
28+
path: `/groups/${GROUP}/users?items=50${apikey}&former=true`,
29+
headers: {
30+
'Accept': 'application/json'
31+
}
32+
};
33+
34+
https.get(groupOptions, (res) => {
35+
let groupData = '';
36+
let userData = '';
37+
38+
res.on('data', (chunk) => {
39+
groupData += chunk;
40+
});
41+
42+
res.on('end', () => {
43+
const groupName = JSON.parse(groupData).name;
44+
45+
https.get(userOptions, (res) => {
46+
47+
res.on('data', (chunk) => {
48+
userData += chunk;
49+
});
50+
51+
res.on('end', () => {
52+
const users = JSON.parse(userData)._links.users.map(u => u.title);
53+
54+
if (users.length === 1) {
55+
console.log(`The sole member of the ${groupName} Group was ${users[0]}.`);
56+
} else if (users.length === 2) {
57+
const joinedUsers = users.join(' and ');
58+
console.log(`Members of the ${groupName} Group included ${joinedUsers}.`);
59+
} else {
60+
// Find the maximum length of the first part (before the space)
61+
const maxLength = Math.max(...users.map(user => user.split(" ")[0].length));
62+
63+
// Right-align the first component and format the strings
64+
const alignedUsers = users.map(user => {
65+
const [first, ...rest] = user.split(" ");
66+
return first.padStart(maxLength, " ") + " " + rest.join(" ");
67+
});
68+
const joinedUsers = alignedUsers.slice(0, -1).join(",\n");
69+
console.log(`Members of the ${groupName} Group included\n${joinedUsers}, and\n${alignedUsers[users.length - 1]}.`);
70+
}
71+
});
72+
}).on('error', (err) => {
73+
console.error(`Error: ${err.message}`);
74+
});
75+
});
76+
}).on('error', (err) => {
77+
console.error(`Error: ${err.message}`);
78+
});

spec/common/rdf-related.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h4>Set of Documents</h4>
2+
<p>This document is one of eleven RDF 1.2 documents produced by the <a href="https://www.w3.org/groups/wg/rdf-star">RDF &amp; SPARQL Working Group</a>.</p>
3+
<details>
4+
<summary>List of documents</summary>
5+
6+
<p>RDF 1.2 Documents:</p>
7+
<ol>
8+
<li data-transform="noSelfCite">[[[RDF12-NEW]]]</li>
9+
<li data-transform="noSelfCite">[[[RDF12-CONCEPTS]]]</li>
10+
<li data-transform="noSelfCite">[[[RDF12-N-QUADS]]]</li>
11+
<li data-transform="noSelfCite">[[[RDF12-N-TRIPLES]]]</li>
12+
<li data-transform="noSelfCite">[[[RDF12-PRIMER]]]</li>
13+
<li data-transform="noSelfCite">[[[RDF12-SCHEMA]]]</li>
14+
<li data-transform="noSelfCite">[[[RDF12-SEMANTICS]]]</li>
15+
<li data-transform="noSelfCite">[[[RDF12-TRIG]]]</li>
16+
<li data-transform="noSelfCite">[[[RDF12-TURTLE]]]</li>
17+
<li data-transform="noSelfCite">[[[RDF12-XML]]]</li>
18+
<li data-transform="noSelfCite">[[[RDF12-INTEROP]]]</li>
19+
</ol>
20+
</details>

spec/common/related.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<h4>Set of Documents</h4>
2+
<p>This document is one of eleven RDF 1.2 and twelve SPARQL 1.2 documents produced by the <a href="https://www.w3.org/groups/wg/rdf-star">RDF &amp; SPARQL Working Group</a>.</p>
3+
<details>
4+
<summary>List of documents</summary>
5+
6+
<p>RDF 1.2 Documents:</p>
7+
<ol>
8+
<li data-transform="noSelfCite">[[[RDF12-NEW]]]</li>
9+
<li data-transform="noSelfCite">[[[RDF12-CONCEPTS]]]</li>
10+
<li data-transform="noSelfCite">[[[RDF12-N-QUADS]]]</li>
11+
<li data-transform="noSelfCite">[[[RDF12-N-TRIPLES]]]</li>
12+
<li data-transform="noSelfCite">[[[RDF12-PRIMER]]]</li>
13+
<li data-transform="noSelfCite">[[[RDF12-SCHEMA]]]</li>
14+
<li data-transform="noSelfCite">[[[RDF12-SEMANTICS]]]</li>
15+
<li data-transform="noSelfCite">[[[RDF12-TRIG]]]</li>
16+
<li data-transform="noSelfCite">[[[RDF12-TURTLE]]]</li>
17+
<li data-transform="noSelfCite">[[[RDF12-XML]]]</li>
18+
<li data-transform="noSelfCite">[[[RDF12-INTEROP]]]</li>
19+
</ol>
20+
21+
<p>SPARQL 1.2 Documents:</p>
22+
<ol>
23+
<li data-transform="noSelfCite">[[[SPARQL12-NEW]]]</li>
24+
<li data-transform="noSelfCite">[[[SPARQL12-CONCEPTS]]]</li>
25+
<li data-transform="noSelfCite">[[[SPARQL12-QUERY]]]</li>
26+
<li data-transform="noSelfCite">[[[SPARQL12-UPDATE]]]</li>
27+
<li data-transform="noSelfCite">[[[SPARQL12-SERVICE-DESCRIPTION]]]</li>
28+
<li data-transform="noSelfCite">[[[SPARQL12-FEDERATED-QUERY]]]</li>
29+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-JSON]]]</li>
30+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-CSV-TSV]]]</li>
31+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-XML]]]</li>
32+
<li data-transform="noSelfCite">[[[SPARQL12-ENTAILMENT]]]</li>
33+
<li data-transform="noSelfCite">[[[SPARQL12-PROTOCOL]]]</li>
34+
<li data-transform="noSelfCite">[[[SPARQL12-GRAPH-STORE-PROTOCOL]]]</li>
35+
</ol>
36+
</details>

spec/common/sparql-related.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<h4>Set of Documents</h4>
2+
<p>This document is one of twelve SPARQL 1.2 documents produced by the <a href="https://www.w3.org/groups/wg/rdf-star">RDF &amp; SPARQL Working Group</a>.</p>
3+
<details>
4+
<summary>List of documents</summary>
5+
6+
<p>SPARQL 1.2 Documents:</p>
7+
<ol>
8+
<li data-transform="noSelfCite">[[[SPARQL12-NEW]]]</li>
9+
<li data-transform="noSelfCite">[[[SPARQL12-CONCEPTS]]]</li>
10+
<li data-transform="noSelfCite">[[[SPARQL12-QUERY]]]</li>
11+
<li data-transform="noSelfCite">[[[SPARQL12-UPDATE]]]</li>
12+
<li data-transform="noSelfCite">[[[SPARQL12-SERVICE-DESCRIPTION]]]</li>
13+
<li data-transform="noSelfCite">[[[SPARQL12-FEDERATED-QUERY]]]</li>
14+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-JSON]]]</li>
15+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-CSV-TSV]]]</li>
16+
<li data-transform="noSelfCite">[[[SPARQL12-RESULTS-XML]]]</li>
17+
<li data-transform="noSelfCite">[[[SPARQL12-ENTAILMENT]]]</li>
18+
<li data-transform="noSelfCite">[[[SPARQL12-PROTOCOL]]]</li>
19+
<li data-transform="noSelfCite">[[[SPARQL12-GRAPH-STORE-PROTOCOL]]]</li>
20+
</ol>
21+
</details>

spec/common/w3c.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"group": [139681]
3+
, "contacts": ["pchampin"]
4+
, "repo-type": "rec-track"
5+
}

0 commit comments

Comments
 (0)