Skip to content

Commit 5cfae56

Browse files
committed
Initial content for SPARQL 1.2 Query.
1 parent b7c5134 commit 5cfae56

File tree

7 files changed

+458
-5
lines changed

7 files changed

+458
-5
lines changed

.github/workflows/auto-publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Example: Override respecConfig for W3C deployment and validators.
2+
name: Echidna Auto-publish
3+
on:
4+
pull_request:
5+
paths: ["spec/**"]
6+
push:
7+
branches: [main]
8+
paths: ["spec/**"]
9+
jobs:
10+
main:
11+
name: Echidna Auto-publish WD
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: w3c/spec-prod@v2
16+
with:
17+
TOOLCHAIN: respec
18+
SOURCE: spec/index.html
19+
VALIDATE_LINKS: false
20+
VALIDATE_MARKUP: true
21+
ACTIONS_STEP_DEBUG: true
22+
# W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
23+
# W3C_WG_DECISION_URL: https://www.w3.org/2022/11/09-rch-minutes#r03
24+
W3C_BUILD_OVERRIDE: |
25+
specStatus: WD
26+
shortName: rdf12-concepts

.pr-preview.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"src_file": "spec/index.html",
3+
"type": "respec"
4+
}

README.md

+68-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,71 @@
11

22
# Specification 'sparql-query'
33

4-
This is the repository for sparql-query. You're welcome to contribute! Let's make the Web rock our socks
5-
off!
4+
This is the repository for the **_SPARQL Query_** deliverable of the [RDF-star Working Group](https://www.w3.org/groups/wg/rdf-star).
5+
The editors’ draft of the specification can also be [read directly](https://w3c.github.io/sparql-query/spec/).
6+
7+
## Contributing to the Repository
8+
9+
Use the standard fork, branch, and pull request workflow to propose changes to the specification. Please make branch names informative—by including the issue or bug number for example.
10+
11+
Editorial changes that improve the readability of the spec or correct spelling or grammatical mistakes are welcome.
12+
13+
Please read [CONTRIBUTING.md](CONTRIBUTING.md), about licensing contributions.
14+
15+
## Set of Documents
16+
17+
This repository is one of ten RDF 1.2 and twelve SPARQL 1.2 Recommendations produced by the [RDF-star Working Group](https://www.w3.org/groups/wg/rdf-star).
18+
19+
### RDF 1.2 Recommendations:
20+
* [RDF12-NEW][]
21+
* [RDF12-CONCEPTS][]
22+
* [RDF12-N-QUADS][]
23+
* [RDF12-N-TRIPLES][]
24+
* [RDF12-PRIMER][]
25+
* [RDF12-SCHEMA][]
26+
* [RDF12-SEMANTICS][]
27+
* [RDF12-TRIG][]
28+
* [RDF12-TURTLE][]
29+
* [RDF12-XML][]
30+
31+
### SPARQL 1.2 Recommendations:
32+
* [SPARQL12-NEW][]
33+
* [SPARQL12-CONCEPTS][]
34+
* [SPARQL12-QUERY][]
35+
* [SPARQL12-UPDATE][]
36+
* [SPARQL12-SERVICE-DESCRIPTION][]
37+
* [SPARQL12-FEDERATED-QUERY][]
38+
* [SPARQL12-RESULTS-JSON][]
39+
* [SPARQL12-RESULTS-CSV-TSV][]
40+
* [SPARQL12-RESULTS-XML][]
41+
* [SPARQL12-ENTAILMENT][]
42+
* [SPARQL12-PROTOCOL][]
43+
* [SPARQL12-GRAPH-STORE-PROTOCOL][]
44+
45+
## Code of Conduct
46+
47+
W3C functions under a [code of conduct](https://www.w3.org/Consortium/cepc/).
48+
49+
[RDF12-NEW]: https://github.com/w3c/rdf-new
50+
[RDF12-CONCEPTS]: https://github.com/w3c/rdf-concepts
51+
[RDF12-N-QUADS]: https://github.com/w3c/rdf-n-quads
52+
[RDF12-N-TRIPLES]: https://github.com/w3c/rdf-n-triples
53+
[RDF12-PRIMER]: https://github.com/w3c/rdf-primer
54+
[RDF12-SCHEMA]: https://github.com/w3c/rdf-schema
55+
[RDF12-SEMANTICS]: https://github.com/w3c/rdf-semantics
56+
[RDF12-TRIG]: https://github.com/w3c/rdf-trig
57+
[RDF12-TURTLE]: https://github.com/w3c/rdf-turtle
58+
[RDF12-XML]: https://github.com/w3c/rdf-xml
59+
60+
[SPARQL12-NEW]: https://github.com/w3c/sparql-new
61+
[SPARQL12-CONCEPTS]: https://github.com/w3c/sparql-concepts
62+
[SPARQL12-QUERY]: https://github.com/w3c/sparql-query
63+
[SPARQL12-UPDATE]: https://github.com/w3c/sparql-update
64+
[SPARQL12-SERVICE-DESCRIPTION]: https://github.com/w3c/sparql-service-description
65+
[SPARQL12-FEDERATED-QUERY]: https://github.com/w3c/sparql-federated-query
66+
[SPARQL12-RESULTS-JSON]: https://github.com/w3c/sparql-results-json
67+
[SPARQL12-RESULTS-CSV-TSV]: https://github.com/w3c/sparql-results-csv-tsv
68+
[SPARQL12-RESULTS-XML]: https://github.com/w3c/sparql-results-xml
69+
[SPARQL12-ENTAILMENT]: https://github.com/w3c/sparql-entailment
70+
[SPARQL12-PROTOCOL]: https://github.com/w3c/sparql-protocol
71+
[SPARQL12-GRAPH-STORE-PROTOCOL]: https://github.com/w3c/sparql-graph-store-protocol

spec/common/fixup.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
require(["core/pubsubhub"], (respecEvents) => {
2+
respecEvents.sub('end-all', (documentElement) => {
3+
// remove data-cite on 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+
citeParent.removeChild(anchor.parentNode);
9+
citeParent.textContent = text;
10+
}
11+
12+
// Add highlighting and remove comment from pre elements
13+
for (const pre of document.querySelectorAll("pre")) {
14+
// First pre element of aside
15+
const content = pre.innerHTML
16+
.replace(/\*\*\*\*([^*]*)\*\*\*\*/g, '<span class="hl-bold">$1</span>')
17+
.replace(/####([^#]*)####/g, '<span class="comment">$1</span>');
18+
pre.innerHTML = content;
19+
}
20+
});
21+
});
22+
23+
function _esc(s) {
24+
return s.replace(/&/g,'&amp;')
25+
.replace(/>/g,'&gt;')
26+
.replace(/"/g,'&quot;')
27+
.replace(/</g,'&lt;');
28+
}
29+
30+
function updateExample(doc, content) {
31+
// perform transformations to make it render and prettier
32+
return _esc(unComment(doc, content));
33+
}
34+
35+
function unComment(doc, content) {
36+
// perform transformations to make it render and prettier
37+
return content
38+
.replace(/<!--/, '')
39+
.replace(/-->/, '')
40+
.replace(/< !\s*-\s*-/g, '<!--')
41+
.replace(/-\s*- >/g, '-->')
42+
.replace(/-\s*-\s*&gt;/g, '--&gt;');
43+
}

0 commit comments

Comments
 (0)