Skip to content

Commit 9b2d92f

Browse files
committed
Adds some test links for normative language.
There are likely many tests we could add to cover 1.1 and 1.2 behavior. Some of the test references depend on w3c/rdf-tests#190.
1 parent 1c285b0 commit 9b2d92f

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

spec/index.html

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@
77
<script src="./common/local-biblio.js" class="remove"></script>
88
<script src="./common/fixup.js" class="remove"></script>
99
<script class='remove'>
10+
// Use fragment identifier of test as name.
11+
function data_test_display() {
12+
const test_references = document.querySelectorAll('details.respec-tests-details a');
13+
for( const a of test_references ) {
14+
const href = a.href;
15+
const test_reference = href.split('#')[1];
16+
a.textContent = test_reference;
17+
}
18+
}
19+
1020
var respecConfig = {
1121
localBiblio: localBibliography,
1222
specStatus: "ED",
1323
edDraftURI: "https://w3c.github.io/rdf-semantics/spec/",
14-
testSuiteURI: "https://w3c.github.io/rdf-tests/rdf-mt/",
24+
testSuiteURI: "https://w3c.github.io/rdf-tests/rdf/rdf12/",
1525
shortName: "rdf12-semantics",
1626
copyrightStart: "2004",
1727

@@ -34,7 +44,7 @@
3444
doJsonLd: true,
3545
wgPublicList: "public-rdf-star-wg",
3646
xref: [ "RDF12-CONCEPTS" ],
37-
// localBiblio: localBibliography,
47+
postProcess: [data_test_display],
3848

3949
lint: { "no-unused-dfns": false }
4050
};
@@ -630,12 +640,19 @@ <h3>Properties of simple entailment and satisfiability</h3>
630640

631641
<p class="fact">Every graph is simply <a>satisfiable</a>.</p>
632642

633-
<p>This does not always hold for extended notions of interpretation.
643+
<p id="ill-typed-tests" data-tests="
644+
../rdf11/rdf-mt/index.html#datatypes-non-well-formed-literal-2,
645+
../rdf11/rdf-mt/index.html#xmlsch-02-whitespace-facet-1,
646+
../rdf11/rdf-mt/index.html#xmlsch-02-whitespace-facet-2,
647+
../rdf11/rdf-mt/index.html#xmlsch-02-whitespace-facet-4">
648+
This does not always hold for extended notions of interpretation.
634649
For example, a graph containing an <a>ill-typed</a> literal is <a>D-unsatisfiable</a>.</p>
635650

636651
<p>The following <dfn>interpolation</dfn> <strong>lemma</strong> </p>
637652

638-
<p class="fact">G <a>simply entails</a> a graph E if and only if a <a>subgraph</a> of G is an instance of E.</p>
653+
<p id="interpolation-lemma-tests" class="fact" data-tests="
654+
rdf-semantics/index.html#all-identical-triple-terms-are-the-same">
655+
G <a>simply entails</a> a graph E if and only if a <a>subgraph</a> of G is an instance of E.</p>
639656

640657
<p>completely characterizes simple entailment in syntactic
641658
terms. To detect whether one RDF graph <a>simply entails</a> another, check that
@@ -832,7 +849,11 @@ <h2>D-interpretations</h2>
832849
<table>
833850
<caption>Semantic conditions for literals.</caption>
834851
<tbody>
835-
<tr><td class="semantictable">If <code>rdf:langString</code> is in D,
852+
<tr><td id="d-int-langString-tests" class="semantictable" data-tests="
853+
../rdf11/rdf-mt/index.html#tex-01-language-tag-case-1,
854+
../rdf11/rdf-mt/index.html#tex-01-language-tag-case-2,
855+
rdf-semantics/index.html#opaque-language-string-control">
856+
If <code>rdf:langString</code> is in D,
836857
then for every language-tagged string E with lexical form sss and language tag ttt,
837858
IL(E)= &lt; sss, ttt' &gt;, where ttt' is ttt converted to lower case using US-ASCII rules</td></tr>
838859
<tr><td class="semantictable">If <code>rdf:dirLangString</code> is in D,

0 commit comments

Comments
 (0)