~ propose simplified "Abbreviating common datatypes" section
authorEric Prud'hommeaux <eric@w3.org>
Wed, 21 Mar 2012 16:07:54 -0400
changeset 226 c1be34a1a238
parent 224 f93f0e829e9a
child 227 461bdb3efc05
~ propose simplified "Abbreviating common datatypes" section
rdf-turtle/index.html
--- a/rdf-turtle/index.html	Wed Mar 14 11:04:38 2012 -0400
+++ b/rdf-turtle/index.html	Wed Mar 21 16:07:54 2012 -0400
@@ -358,8 +358,8 @@
 <http://example.org/path> a doc:Document .
                 </script></pre>
 				</section>
-				<section id="abbrev">
-				<h3 >Abbreviating common datatypes</h3>
+				<section id="abbrev" class="issue">
+				<h3 >Abbreviating common datatypes <span style="color: red;">old</span></h3>
 				<p>A few of the RECOMENDED <a href="../rdf-concepts/index.html#xsd-datatypes">built-in datatypes</a> can be written in Turtle without using the datatype syntax.</p>
 
 				<p>Decimal integers may be written without quotation marks or a 
@@ -431,6 +431,28 @@
 "false"^^<http://www.w3.org/2001/XMLSchema#boolean>
 				</script></pre>
 			</section>
+				<section id="abbrevB" class="issue">
+				<h3 >Abbreviating common datatypes <span style="color: green;">new</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]+". 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>..
+				  </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]+". The terms <code>-5.0</code>, <code>.0</code>, <code>1.234567890</code>, <code>010.0</code> and <code>+10.0</code> represent RDF literals with the datatype <a href="http://www.w3.org/TR/xmlschema-2/#decimal">xsd:decimal</a>..
+				  </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]". The terms <code>-.5e1</code>, <code>0E0</code>, <code>1.234567890E0</code>, <code>01e1</code> and <code>+10e0</code> represent RDF literals with the datatype <a href="http://www.w3.org/TR/xmlschema-2/#double">xsd:double</a>.
+				  </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>
+			</section>
 
 			<section  id="groups">
 				<h3>Abbreviating groups of triples</h3>