Skip to content

Commit ed96446

Browse files
committed
Add test markers. (Depends on #62 being merged)
1 parent 1988384 commit ed96446

File tree

1 file changed

+64
-20
lines changed

1 file changed

+64
-20
lines changed

spec/index.html

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,7 +3004,7 @@ <h4>Production propertyElt</h4>
30043004
<a href="#literalPropertyElt">literalPropertyElt</a> |
30053005
<a href="#parseTypeLiteralPropertyElt">parseTypeLiteralPropertyElt</a> |
30063006
<a href="#parseTypeResourcePropertyElt">parseTypeResourcePropertyElt</a> |
3007-
<a href="#parseTypeResourcePropertyElt">parseTypeTriplePropertyElt</a> |
3007+
<a href="#parseTypeTriplePropertyElt">parseTypeTriplePropertyElt</a> |
30083008
<a href="#parseTypeCollectionPropertyElt">parseTypeCollectionPropertyElt</a> |
30093009

30103010
<a href="#parseTypeOtherPropertyElt">parseTypeOtherPropertyElt</a> |
@@ -3059,7 +3059,8 @@ <h4>Production resourcePropertyElt</h4>
30593059
<a href="#section-Reification" class="sectionRef"></a>
30603060
and <em>e</em>.<a href="#eventterm-element-subject">subject</a> := <em>i</em></p>
30613061

3062-
<p>If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3062+
<p id="resourcePropertyElt-tests3" data-tests="eval#rdf12-xml-an-10">
3063+
If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
30633064
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
30643065
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
30653066

@@ -3104,10 +3105,14 @@ <h4>Production literalPropertyElt</h4>
31043105
statement is reified with
31053106
<em>i</em> := iri(<a href="#eventterm-identifier-identifier">identifier</a> := resolve(<em>e</em>, concat("#", <em>a</em>.<a href="#eventterm-attribute-string-value">string-value</a>)))
31063107
using the reification rules in
3107-
31083108
<a href="#section-Reification" class="sectionRef"></a>
31093109
and <em>e</em>.<a href="#eventterm-element-subject">subject</a> := <em>i</em>.</p>
3110-
<p>If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3110+
3111+
<p id="literalPropertyElt-tests3" data-tests="
3112+
eval/index.html#rdf12-xml-an-01,
3113+
eval/index.html#rdf12-xml-an-02,
3114+
eval/index.html#rdf12-xml-an-03">
3115+
If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
31113116
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
31123117
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
31133118

@@ -3185,12 +3190,13 @@ <h4>Production parseTypeLiteralPropertyElt</h4>
31853190

31863191
<p>If the <code>rdf:ID</code> attribute <em>a</em> is given, the above
31873192
statement is reified with
3188-
31893193
<em>i</em> := iri(<a href="#eventterm-identifier-identifier">identifier</a> := resolve(<em>e</em>, concat("#", <em>a</em>.<a href="#eventterm-attribute-string-value">string-value</a>)))
31903194
using the reification rules in
31913195
<a href="#section-Reification" class="sectionRef"></a>
31923196
and <em>e</em>.<a href="#eventterm-element-subject">subject</a> := <em>i</em>.</p>
3193-
<p>If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3197+
3198+
<p id="parseTypeLiteralPropertyElt-tests3" data-tests="">
3199+
If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
31943200
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
31953201
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
31963202

@@ -3238,7 +3244,8 @@ <h4>Production parseTypeResourcePropertyElt</h4>
32383244
<a href="#section-Reification" class="sectionRef"></a>
32393245
and <em>e</em>.<a href="#eventterm-element-subject">subject</a> := <em>i</em>.</p>
32403246

3241-
<p>If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3247+
<p id="parseTypeResourcePropertyElt-tests3" data-tests="eval/index.html#rdf12-xml-an-05">
3248+
If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
32423249
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
32433250
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
32443251

@@ -3290,7 +3297,16 @@ <h4>Production parseTypeTriplePropertyElt</h4>
32903297
<p>Then process the resulting sequence using production
32913298
<a href="#nodeElementList">nodeElement</a>.</p>
32923299

3293-
<p>After processing the node sequence,
3300+
<p id="parseTypeTriplePropertyElt-tests1" data-tests="
3301+
eval/index.html#rdf12-xml-tt-01,
3302+
eval/index.html#rdf12-xml-tt-02,
3303+
eval/index.html#rdf12-xml-tt-03,
3304+
eval/index.html#rdf12-xml-tt-04,
3305+
eval/index.html#rdf12-xml-tt-05,
3306+
eval/index.html#rdf12-xml-tt-06,
3307+
eval/index.html#rdf12-xml-tt-07,
3308+
eval/index.html#rdf12-xml-tt-08">
3309+
After processing the node sequence,
32943310
<em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>
32953311
MUST be an <a data-cite="RDF12-CONCEPTS#dfn-rdf-graph">RDF graph</a> containing a single triple.</p>
32963312

@@ -3348,10 +3364,10 @@ <h4>Production parseTypeCollectionPropertyElt</h4>
33483364
either of the the above statements is reified with
33493365
<em>i</em> := iri(<a href="#eventterm-identifier-identifier">identifier</a> := resolve(<em>e</em>, concat("#", <em>a</em>.<a href="#eventterm-attribute-string-value">string-value</a>)))
33503366
using the reification rules in
3367+
<a href="#section-Reification" class="sectionRef"></a>.</p>
33513368

3352-
<a href="#section-Reification" class="sectionRef"></a>.
3353-
</p>
3354-
<p>If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3369+
<p id="parseTypeCollectionPropertyElt-tests3" data-tests="">
3370+
If either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
33553371
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
33563372
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
33573373

@@ -3425,8 +3441,11 @@ <h4>Production emptyPropertyElt</h4>
34253441

34263442
<li>
34273443
<p>If there are no attributes <strong>or</strong> only the
3428-
optional <code>rdf:ID</code> attribute <em>i</em>
3429-
then <em>o</em> := literal(<a href="#eventterm-literal-literal-value">literal-value</a>:="", <a href="#eventterm-literal-literal-language">literal-language</a> := <em>e</em>.<a href="#eventterm-element-language">language</a>, <a href="#eventterm-literal-literal-direction">literal-direction</a> := <em>e</em>.<a href="#eventterm-element-direction">direction</a>)
3444+
optional <code>rdf:ID</code> attribute <em>i</em>,
3445+
or the optional attributes `rdf:annotation` or `rdf:annotationNodeID` <em>a</em>,
3446+
then <em>o</em> := literal(<a href="#eventterm-literal-literal-value">literal-value</a>:="",
3447+
<a href="#eventterm-literal-literal-language">literal-language</a> := <em>e</em>.<a href="#eventterm-element-language">language</a>,
3448+
<a href="#eventterm-literal-literal-direction">literal-direction</a> := <em>e</em>.<a href="#eventterm-element-direction">direction</a>)
34303449
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
34313450

34323451
<div class="ntripleOuter"><div class="ntripleInner"><p>
@@ -3439,6 +3458,16 @@ <h4>Production emptyPropertyElt</h4>
34393458
using the reification rules in
34403459
<a href="#section-Reification" class="sectionRef"></a>.</p>
34413460

3461+
<p id="emptyPropertyElt-tests3" data-tests="eval/index.html#rdf12-xml-an-04">
3462+
and then if <em>a</em> is given,
3463+
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
3464+
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
3465+
3466+
<div class="ntripleOuter"><div class="ntripleInner"><p>
3467+
&#160;&#160;<code> <em>a</em>.<a href="#eventterm-identifier-rdf-term">rdf-term</a> &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies&gt; <em>t</em>.<a href="#eventterm-identifier-rdf-term">rdf-term</a> .</code>
3468+
3469+
</p></div></div>
3470+
34423471
<p class="note"><strong>Test:</strong>
34433472
Indicated by
34443473
<a href="https://w3c.github.io/rdf-tests/rdf-xml/rdfms-empty-property-elements/test002.rdf">test002.rdf</a>
@@ -3533,6 +3562,21 @@ <h4>Production emptyPropertyElt</h4>
35333562
using the reification rules in
35343563
<a href="#section-Reification" class="sectionRef"></a>.</p>
35353564

3565+
<p id="emptyPropertyElt-tests3" data-tests="
3566+
eval/index.html#rdf12-xml-an-06,
3567+
eval/index.html#rdf12-xml-an-07,
3568+
eval/index.html#rdf12-xml-an-08,
3569+
eval/index.html#rdf12-xml-an-09,
3570+
eval/index.html#rdf12-xml-an-10">
3571+
and then if either the <code>rdf:annotation</code> or <code>rdf:annotationNodeID</code> attributes <em>a</em> are given,
3572+
the statement above is used to create a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a> <i>t</i>,
3573+
and the following statement is added to <em>e</em>.<a href="#eventterm-element-parent">parent</a>.<a href="#eventterm-element-graph">graph</a>:</p>
3574+
3575+
<div class="ntripleOuter"><div class="ntripleInner"><p>
3576+
&#160;&#160;<code> <em>a</em>.<a href="#eventterm-identifier-rdf-term">rdf-term</a> &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies&gt; <em>t</em>.<a href="#eventterm-identifier-rdf-term">rdf-term</a> .</code>
3577+
3578+
</p></div></div>
3579+
35363580
</li>
35373581

35383582
</ul>
@@ -4049,7 +4093,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
40494093
its:dir | its:version |
40504094
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
40514095
xml:* ) {
4052-
idAttr?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, nodeElement
4096+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, nodeElement
40534097
}
40544098

40554099
literalPropertyElt =
@@ -4060,7 +4104,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
40604104
its:dir | its:version |
40614105
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
40624106
xml:* ) {
4063-
idAttr? , datatypeAttr?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, text
4107+
idAttr? , (annotationAttr | annotationNodeIDAttr)?, datatypeAttr?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, text
40644108
}
40654109

40664110
parseTypeLiteralPropertyElt =
@@ -4071,7 +4115,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
40714115
its:dir | its:version |
40724116
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
40734117
xml:* ) {
4074-
idAttr?, parseLiteral, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, literal
4118+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, parseLiteral, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, literal
40754119
}
40764120

40774121
parseTypeResourcePropertyElt =
@@ -4082,7 +4126,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
40824126
its:dir | its:version |
40834127
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
40844128
xml:* ) {
4085-
idAttr?, parseResource, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, propertyEltList
4129+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, parseResource, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, propertyEltList
40864130
}
40874131

40884132
parseTypeTriplePropertyElt =
@@ -4091,7 +4135,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
40914135
its:dir | its:version |
40924136
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
40934137
xml:* ) {
4094-
idAttr?, parseResource, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, propertyEltList
4138+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, parseResource, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, propertyEltList
40954139
}
40964140

40974141
parseTypeCollectionPropertyElt =
@@ -4102,7 +4146,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
41024146
its:dir | its:version |
41034147
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
41044148
xml:* ) {
4105-
idAttr?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, parseCollection, nodeElementList
4149+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, parseCollection, nodeElementList
41064150
}
41074151

41084152
parseTypeOtherPropertyElt =
@@ -4113,7 +4157,7 @@ <h3>RELAX&#160;NG Compact Schema</h3>
41134157
its:dir | its:version |
41144158
rdf:Description | rdf:aboutEach | rdf:aboutEachPrefix | rdf:bagID |
41154159
xml:* ) {
4116-
idAttr?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, parseOther, any
4160+
idAttr?, (annotationAttr | annotationNodeIDAttr)?, xmllang?, xmlbase?, versionAttr?, dirAttr?, itsVersionAttr?, parseOther, any
41174161
}
41184162

41194163
emptyPropertyElt =

0 commit comments

Comments
 (0)