Skip to content

Commit f0ce6fc

Browse files
TallTedhartig
andauthored
Improve list types (ol vs ul) and content (grammar, punctuation, … (#108)
* Improve list types (`ol` vs `ul`) and content (grammar, punctuation, etc.) * improve intro to bullet list --------- Co-authored-by: Olaf Hartig <[email protected]>
1 parent 209dde6 commit f0ce6fc

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

spec/index.html

+43-41
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@ <h2>Introduction</h2>
100100

101101
<p>This document defines an abstract syntax (a data model)
102102
which serves to link all RDF-based languages and specifications,
103-
including:</p>
103+
including the following:</p>
104104

105105
<ul>
106-
<li>the formal model-theoretic semantics for RDF [[RDF12-SEMANTICS]];</li>
106+
<li>the formal model-theoretic semantics for RDF [[RDF12-SEMANTICS]]</li>
107107

108108
<li>serialization syntaxes for storing and exchanging RDF such as [[[RDF12-TURTLE]]] [[RDF12-TURTLE]]
109-
and [[[JSON-LD11]]] [[JSON-LD11]];</li>
109+
and [[[JSON-LD11]]] [[JSON-LD11]]</li>
110110

111-
<li>the [[[SPARQL12-QUERY]]] [[SPARQL12-QUERY]];</li>
111+
<li>the [[[SPARQL12-QUERY]]] [[SPARQL12-QUERY]]</li>
112112

113-
<li>the [[[RDF12-SCHEMA]]] [[RDF12-SCHEMA]].</li>
113+
<li>the [[[RDF12-SCHEMA]]] [[RDF12-SCHEMA]]</li>
114114
</ul>
115115

116116
<section id="data-model">
@@ -259,7 +259,7 @@ <h3>The Referent of an IRI</h3>
259259
<li>By social convention, the
260260
<a data-cite="WEBARCH#uri-ownership">IRI owner</a>
261261
[[WEBARCH]] gets to say what the intended (or usual)
262-
referent of an <a>IRI</a> is. Applications and users need not
262+
referent of an <a>IRI</a> is. Applications and users need not
263263
abide by this intended denotation, but there may be a loss of
264264
interoperability with other applications and users if they do
265265
not do so.</li>
@@ -549,11 +549,11 @@ <h2>RDF Graphs</h2>
549549
<h3>Triples</h3>
550550

551551
<p>An <dfn data-local-lt="triple">RDF triple</dfn> (usually called "triple")
552-
is a 3-tuple (|s|, |p|, |o|) where:</p>
552+
is a 3-tuple (|s|, |p|, |o|) with the following characteristics:</p>
553553

554554
<ul>
555-
<li>|s| is an <a>IRI</a> or a <a>blank node</a>,</li>
556-
<li>|p| is an <a>IRI</a>, and</li>
555+
<li>|s| is an <a>IRI</a> or a <a>blank node</a>.</li>
556+
<li>|p| is an <a>IRI</a>.</li>
557557
<li>|o| is an <a>IRI</a>, a <a>blank node</a>, a <a>literal</a>,
558558
or a <a>triple term</a>.</li>
559559
</ul>
@@ -688,26 +688,27 @@ <h3>IRIs</h3>
688688
only IRIs that are normalized according to
689689
<a data-cite="rfc3987#section-5">Section 5</a>
690690
of [[!RFC3987]]. Non-normalized forms that are best avoided
691-
include:</p>
691+
include the following:</p>
692692

693693
<ul>
694694
<li>Uppercase characters in scheme names and domain names</li>
695695
<li>Percent-encoding of characters where it is not
696696
required by IRI syntax</li>
697-
<li>Explicitly stated HTTP default port
697+
<li>Explicit inclusion of the HTTP default port
698698
(<code>http://example.com:80/</code>);
699699
<code>http://example.com/</code> is preferable</li>
700-
<li>Completely empty path in HTTP IRIs
700+
<li>A completely empty path in an HTTP IRI
701701
(<code>http://example.com</code>);
702702
<code>http://example.com/</code> is preferable</li>
703703
<li><code>/./</code>” or “<code>/../</code>” in the path
704704
component of an IRI</li>
705705
<li>Lowercase hexadecimal letters within percent-encoding
706-
triplets (“<code>%3F</code>” is preferable over
706+
triplets (i.e., <code>%3F</code>” is preferred over
707707
<code>%3f</code>”)</li>
708708
<li>Punycode-encoding of Internationalized Domain Names
709709
in IRIs [[RFC3492]]</li>
710-
<li>IRIs that are not in Unicode <a class="lint-ignore">Normalization Form C</a> [[UAX15]]</li>
710+
<li>IRIs that are not in Unicode
711+
<a class="lint-ignore">Normalization Form C</a> [[UAX15]]</li>
711712
</ul>
712713
</div>
713714
</section>
@@ -718,17 +719,17 @@ <h2>Literals</h2>
718719
<p>Literals are used for values such as strings, numbers, and dates.</p>
719720

720721
<p>A <dfn data-local-lt="RDF literal">literal</dfn> in an <a>RDF graph</a> consists of
721-
two, three, or four elements:</p>
722+
two, three, or four elements, as follow:</p>
722723

723-
<ul>
724+
<ol>
724725
<li>a <dfn>lexical form</dfn> consisting of a sequence of
725726
<a data-cite="I18N-GLOSSARY#dfn-code-point" class="lint-ignore">Unicode code points</a> [[!UNICODE]]
726727
which are <a data-cite="I18N-GLOSSARY#dfn-scalar-value">Unicode scalar values</a>,
727728
and therefore do not contain
728-
<a data-cite="I18N-GLOSSARY#dfn-surrogate" class="lint-ignore">Unicode surrogate code points</a>.</li>
729+
<a data-cite="I18N-GLOSSARY#dfn-surrogate" class="lint-ignore">Unicode surrogate code points</a></li>
729730
<li>a <dfn>datatype IRI</dfn>, being an <a>IRI</a>
730731
identifying a datatype that determines how the lexical form maps
731-
to a <a>literal value</a>, and</li>
732+
to a <a>literal value</a></li>
732733
<li>if and only if the <a>datatype IRI</a> is
733734
<code>http://www.w3.org/1999/02/22-rdf-syntax-ns#langString</code>, a
734735
non-empty <dfn>language tag</dfn> as defined by [[!BCP47]]. The
@@ -742,8 +743,9 @@ <h2>Literals</h2>
742743
a non-empty <a>language tag</a>
743744
that MUST be well-formed according to <a data-cite="bcp47#section-2.2.9">section 2.2.9</a>
744745
of [[!BCP47]],
746+
and MUST be treated consistently, that is, in a case insensitive manner,
745747
and a <dfn>base direction</dfn> that MUST be either `ltr` or `rtl`.</li>
746-
</ul>
748+
</ol>
747749

748750
<p>A literal is a <dfn>language-tagged string</dfn> if the third element
749751
is present and the fourth element is not present.
@@ -773,7 +775,7 @@ <h2>Literals</h2>
773775

774776
<p>The <dfn>literal value</dfn> associated with a <a>literal</a> is:</p>
775777

776-
<ol>
778+
<ul>
777779
<li>If the literal is a <a>language-tagged string</a>,
778780
then the literal value is a pair consisting of its <a>lexical form</a>
779781
and its <a>language tag</a>, in that order.</li>
@@ -784,7 +786,7 @@ <h2>Literals</h2>
784786
<li>If the literal's <a>datatype IRI</a> is in the set of
785787
<a>recognized datatype IRIs</a>, let <var>d</var> be the
786788
<a>referent</a> of the datatype IRI.
787-
<ol>
789+
<ul>
788790
<li>If the literal's <a>lexical form</a> is in the <a>lexical space</a>
789791
of <var>d</var>, then the literal value is the result of applying
790792
the <a>lexical-to-value mapping</a> of <var>d</var> to the
@@ -795,12 +797,12 @@ <h2>Literals</h2>
795797
Implementations MUST accept ill-typed literals and produce RDF
796798
graphs from them. Implementations MAY produce warnings when
797799
encountering ill-typed literals.</li>
798-
</ol>
800+
</ul>
799801
</li>
800802
<li>If the literal's <a>datatype IRI</a> is <em>not</em> in the set of
801803
<a>recognized datatype IRIs</a>, then the literal value is
802804
not defined by this specification.</li>
803-
</ol>
805+
</ul>
804806

805807
<p><dfn data-local-lt="term-equal">Literal term equality</dfn>:
806808
Two literals are term-equal (the same <a>RDF literal</a>)
@@ -934,9 +936,9 @@ <h3>Graph Comparison</h3>
934936
<dfn data-lt="graph isomorphism|isomorphic" data-lt-noDefault class="export">isomorphic</dfn>
935937
(that is, they have an identical form)
936938
if there is a bijection <var>M</var> between the sets of nodes of the two
937-
graphs, such that:</p>
939+
graphs, such that all of the following properties hold:</p>
938940

939-
<ol>
941+
<ul>
940942
<li><var>M</var> maps blank nodes to blank nodes.</li>
941943
<li><var>M(lit)=lit</var> for all <a>RDF literals</a> <var>lit</var> which
942944
are nodes of <var>G</var>.</li>
@@ -947,7 +949,7 @@ <h3>Graph Comparison</h3>
947949
<li>The triple <var>( s, p, o )</var> is in <var>G</var> if and
948950
only if the triple <var>( M(s), p, M(o) )</var> is in
949951
<var>G'</var></li>
950-
</ol>
952+
</ul>
951953

952954
<p>See also: <a>IRI equality</a>, <a>literal term equality</a>.</p>
953955

@@ -1011,9 +1013,9 @@ <h3>RDF Dataset Comparison</h3>
10111013
<var>DG2</var> and any named graph <var>NG2</var>)
10121014
are <dfn data-lt="dataset isomorphism" class="export">dataset-isomorphic</dfn> if and only if
10131015
there is a bijection <var>M</var> between the nodes, triples and graphs in
1014-
<var>D1</var> and those in <var>D2</var> such that:</p>
1016+
<var>D1</var> and those in <var>D2</var> such that all of the following properties hold:</p>
10151017

1016-
<ol>
1018+
<ul>
10171019
<li><var>M</var> maps <a>blank nodes</a> to blank nodes;</li>
10181020
<li><var>M</var> is the identity map on <a>literals</a> and URIs;</li>
10191021
<li>For every triple &lt;s p o&gt;, <var>M</var>(&lt;s, p, o&gt;)=
@@ -1023,7 +1025,7 @@ <h3>RDF Dataset Comparison</h3>
10231025
<li><var>DG2</var> = <var>M(DG1)</var>; and</li>
10241026
<li>&lt;n, G&gt; is in <var>NG1</var> if and only if
10251027
&lt;<var>M(n)</var>, <var>M(G)</var>&gt; is in <var>NG2</var>.
1026-
</ol>
1028+
</ul>
10271029

10281030
</section>
10291031

@@ -1273,11 +1275,11 @@ <h3>Datatype IRIs</h3>
12731275

12741276
<ul>
12751277
<li>The IRI <code>http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral</code>
1276-
refers to the datatype <code><a>rdf:XMLLiteral</a></code></li>
1278+
refers to the datatype <code><a>rdf:XMLLiteral</a></code>.</li>
12771279
<li>The IRI <code>http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML</code>
1278-
refers to the datatype <code><a>rdf:HTML</a></code></li>
1280+
refers to the datatype <code><a>rdf:HTML</a></code>.</li>
12791281
<li>The IRI <code>http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON</code>
1280-
refers to the datatype <code><a>rdf:JSON</a></code></li>
1282+
refers to the datatype <code><a>rdf:JSON</a></code>.</li>
12811283
</ul>
12821284

12831285
<p>RDF processors are not required to recognize datatype IRIs.
@@ -1443,7 +1445,7 @@ <h3>The <code>rdf:HTML</code> Datatype</h3>
14431445
<li>Let <code>domfrag</code> be a DOM
14441446
<a data-cite="DOM#interface-documentfragment"><code>DocumentFragment</code></a> [[DOM]]
14451447
whose <code>childNodes</code> attribute is equal to <code>domnodes</code></li>
1446-
<li>Return <code>domfrag.{{Node/normalize()}}</code></li>
1448+
<li>Return <code>domfrag.{{Node/normalize()}}</code>.</li>
14471449
</ul>
14481450
</dd>
14491451
</dl>
@@ -1496,8 +1498,8 @@ <h3>The <code>rdf:XMLLiteral</code> Datatype</h3>
14961498
<ul>
14971499
<li>Let <code>domfrag</code> be a DOM
14981500
<a data-cite="DOM#interface-documentfragment"><code>DocumentFragment</code></a>
1499-
node [[DOM]] corresponding to the input string</li>
1500-
<li>Return <code>domfrag.{{Node/normalize()}}</code></li>
1501+
node [[DOM]] corresponding to the input string.</li>
1502+
<li>Return <code>domfrag.{{Node/normalize()}}</code>.</li>
15011503
</ul>
15021504
</dd>
15031505
</dl>
@@ -1550,17 +1552,17 @@ <h3>The <code>rdf:JSON</code> Datatype</h3>
15501552
literal values (<a data-cite="INFRA#boolean">`true`, `false`</a>, and <a data-cite="INFRA#nulls">`null`</a>)
15511553
from [[[INFRA]]] [[INFRA]] and [[[XMLSCHEMA11-2]]] [[XMLSCHEMA11-2]].
15521554

1553-
<p>Two values (|a| and |b|) are considered equal if:
1555+
<p>Two values (|a| and |b|) are considered equal if any of the following are true:
15541556
<ul>
1555-
<li>they are the same <a>string</a>,
1557+
<li>They are the same <a>string</a>,
15561558
number (<a data-cite="XMLSCHEMA11-2#double"><strong>xsd:double</strong></a>), or
1557-
literal value;</li>
1558-
<li>they are both <a data-cite="INFRA#list">lists</a> containing <a data-cite="INFRA#list-item">items</a>
1559+
literal value.</li>
1560+
<li>They are both <a data-cite="INFRA#list">lists</a> containing <a data-cite="INFRA#list-item">items</a>
15591561
which are pairwise equal – meaning that each <a data-cite="INFRA#list-item">item</a>
15601562
in |a| is equal the <a data-cite="INFRA#list-item">item</a>
15611563
at the corresponding index in |b|,
1562-
and both |a| and |b| have the same <a data-cite="INFRA#list-size">size</a>; or</li>
1563-
<li>if they are both <a data-cite="INFRA#ordered-map">maps</a> with equal <a data-cite="INFRA#map-entry">entries</a>
1564+
and both |a| and |b| have the same <a data-cite="INFRA#list-size">size</a>.</li>
1565+
<li>They are both <a data-cite="INFRA#ordered-map">maps</a> with equal <a data-cite="INFRA#map-entry">entries</a>
15641566
– meaning that both |a| and |b| have the same <a data-cite="INFRA#map-size">size</a>,
15651567
and for each entry <var>e<sub>a</sub></var> in |a|
15661568
there is an entry <var>e<sub>b</sub></var> in |b|

0 commit comments

Comments
 (0)