~ propose another simplified "Abbreviating common datatypes" section with the examples factored out into a table
--- a/rdf-turtle/index.html Wed Mar 21 16:09:36 2012 -0400
+++ b/rdf-turtle/index.html Wed Mar 21 16:43:20 2012 -0400
@@ -110,9 +110,9 @@
pre.example script {
display:block;
}
- #term2escape thead tr th { border:1px solid black; padding: .2em; }
- #term2escape tbody tr td { border:1px solid black; text-align: center; }
- #term2escape tbody tr td.r { text-align: right; padding: .5em; }
+ .separated thead tr th { border:1px solid black; padding: .2em; }
+ .separated tbody tr td { border:1px solid black; text-align: center; }
+ .separated tbody tr td.r { text-align: right; padding: .5em; }
</style>
</head>
@@ -436,7 +436,7 @@
<p>Integer values, arbitrary precision decimal values, double precision floating point values and boolean values may be written without quotes or datatypes as follows:</p>
<ul>
<li>
- Integer values may be written as an option sign and a series of digits matching the regular expression "[0-9]+". The terms <code>-5</code>, <code>0</code>, <code>1</code>, <code>10</code>, <code>010</code> and <code>+10</code></span> represent RDF literals with the datatype <a href="http://www.w3.org/TR/xmlschema-2/#integer">xsd:integer</a>..
+ Integer values may be written as an option sign and a series of digits matching the regular expression "[0-9]+". The terms <code>-5</code>, <code>0</code>, <code>1</code>, <code>10</code>, <code>010</code> and <code>+10</code> represent RDF literals with the datatype <a href="http://www.w3.org/TR/xmlschema-2/#integer">xsd:integer</a>..
</li>
<li style="padding-top: 1ex;">
@@ -453,6 +453,41 @@
</li>
</ul>
</section>
+ <section id="abbrevC" class="issue">
+ <h3 >Abbreviating common datatypes <span style="color: orange;">table</span></h3>
+ <p>Integer values, arbitrary precision decimal values, double precision floating point values and boolean values may be written without quotes or datatypes as follows:</p>
+ <ul>
+ <li>
+ Integer values may be written as an option sign and a series of digits matching the regular expression "[0-9]+".
+ </li>
+
+ <li style="padding-top: 1ex;">
+ Arbitrary-precision decimals may be written as an option sign, zero or more digits, a decimal point and one or more digits. Decimals match the regular expression "[0-9]*\.[0-9]+".
+ </li>
+
+ <li style="padding-top: 1ex;">
+ Double-precision floating point values may be written as an option sign, a mantissa with an optional decimal point, the letter "e" or "E", and an integer exponent with an optional sign.
+ The exponent matches the regular expression "[eE][+-]?[0-9]+" and the mantissa one of these regular expressions: "[0-9]+\.[0-9]+", "\.[0-9]+" or "[0-9]".
+ </li>
+
+ <li style="padding-top: 1ex;">
+ Boolean values may be written as either <code>true</code> or <code>false</code> (case-sensitive) and represent RDF literals with the datatype <a href="http://www.w3.org/TR/xmlschema-2/#boolean">xsd:boolean</a>.
+ </li>
+ </ul>
+
+ <table class="separated">
+ <caption>Example numeric representations:</caption>
+ <tbody>
+ <tr><th><a href="http://www.w3.org/TR/xmlschema-2/#boolean">xsd:boolean</a></th>
+ <td><code>-5</code></td> <td><code>0</code></td> <td><code>1</code></td> <td><code>010</code></td> <td><code>+10</code></td></tr>
+ <tr><th><a href="http://www.w3.org/TR/xmlschema-2/#decimal">xsd:decimal</a></th>
+ <td><code>-5.0</code></td> <td><code>.0</code></td> <td><code>1.234567890</code></td> <td><code>010.0</code></td> <td><code>+10.0</code></td></tr>
+ <tr><th><a href="http://www.w3.org/TR/xmlschema-2/#double">xsd:double</a></th>
+ <td><code>-.5e1</code></td> <td><code>0E0</code></td> <td><code>1.234567890E0</code></td> <td><code>01e1</code></td> <td><code>+10e0</code></td></tr>
+ </tbody>
+ </table>
+
+ </section>
<section id="groups">
<h3>Abbreviating groups of triples</h3>
@@ -684,7 +719,7 @@
</ul>
- <table id="term2escape" style="border-collapse:collapse;">
+ <table id="term2escape" class="separated" style="border-collapse:collapse;">
<thead>
<tr>
<th></th>