New RDFa version with cert:key
authorDominik Tomaszuk <ddooss@wp.pl>
Mon, 17 Oct 2011 16:29:03 +0200
changeset 169 239b1f5cfcd1
parent 168 e4c329ba40b4
child 170 16b30a1f5e9c
New RDFa version with cert:key
ontologies/rdfa/cert.html
ontologies/rdfa/rsa.html
--- a/ontologies/rdfa/cert.html	Thu Oct 13 13:27:53 2011 +0200
+++ b/ontologies/rdfa/cert.html	Mon Oct 17 16:29:03 2011 +0200
@@ -80,7 +80,7 @@
 <div class="azlist">
 <p>Classes: | <a href="#Certificate">Certificate</a> |  <a href="#PGPCertificate">PGPCertificate</a> |  <a href="#PrivateKey">PrivateKey</a> |  <a href="#PublicKey">PublicKey</a> |  <a href="#Signature">Signature</a> |  <a href="#X509Certificate">X509Certificate</a> | 
 </p>
-<p>Properties: | <a href="#decimal">decimal</a> |  <a href="#hex">hex</a> |  <a href="#identity">identity</a> |  <a href="#public_key">public_key</a> | 
+<p>Properties: | <a href="#decimal">decimal</a> |  <a href="#hex">hex</a> |  <a href="#identity">identity</a> |  <a href="#key">key</a> | 
 </p>
 </div>
 
@@ -149,7 +149,7 @@
 <div class="azlist">
 <p>Classes: | <a href="#Certificate">Certificate</a> |  <a href="#PGPCertificate">PGPCertificate</a> |  <a href="#PrivateKey">PrivateKey</a> |  <a href="#PublicKey">PublicKey</a> |  <a href="#Signature">Signature</a> |  <a href="#X509Certificate">X509Certificate</a> | 
 </p>
-<p>Properties: | <a href="#decimal">decimal</a> |  <a href="#hex">hex</a> |  <a href="#identity">identity</a> |  <a href="#public_key">public_key</a> | 
+<p>Properties: | <a href="#decimal">decimal</a> |  <a href="#hex">hex</a> |  <a href="#identity">identity</a> |  <a href="#key">key</a> | 
 </p>
 </div>
 
@@ -176,8 +176,8 @@
   			<tr><th>Sub class of</th>
  <td>  <span rel="rdfs:subClassOf" href="http://xmlns.com/foaf/0.1/Document"><a href="http://xmlns.com/foaf/0.1/Document">foaf:Document</a></span>
  </td></tr><tr><th>Has sub class</th>
- <td>  <a href="#PGPCertificate">cert:PGPCertificate</a>
- <a href="#X509Certificate">cert:X509Certificate</a>
+ <td>  <a href="#X509Certificate">cert:X509Certificate</a>
+ <a href="#PGPCertificate">cert:PGPCertificate</a>
  </td></tr><tr><th colspan="2">OWL Class</th>
  <td>  </td></tr>
   			</table>
@@ -198,20 +198,6 @@
   			
   			<p style="float: right; font-size: small;">[<a href="#PGPCertificate">#</a>] <!-- PGPCertificate --> [<a href="#glance">back to top</a>]</p>
   			<br/>
-  			</div><div class="specterm" id="PrivateKey" about="http://www.w3.org/ns/auth/cert#PrivateKey" typeof="owl:Class">
-  			<h4>Class: cert:PrivateKey</h4> 
-  			<em property="rdfs:label" >PrivateKey</em> - <span property="rdfs:comment" >Private Key</span> <br /><table style="float: top;">
-  			<tr><th>Status:</th>
-  			<td><span property="vs:term_status" >unstable</span></td></tr>
-  			
-  			<tr><th>Sub class of</th>
- <td>  <span rel="rdfs:subClassOf" href="http://www.w3.org/ns/auth/cert#Key"><a href="http://www.w3.org/ns/auth/cert#Key">cert:Key</a></span>
- </td></tr><tr><th colspan="2">OWL Class</th>
- <td>  </td></tr>
-  			</table>
-  			
-  			<p style="float: right; font-size: small;">[<a href="#PrivateKey">#</a>] <!-- PrivateKey --> [<a href="#glance">back to top</a>]</p>
-  			<br/>
   			</div><div class="specterm" id="PublicKey" about="http://www.w3.org/ns/auth/cert#PublicKey" typeof="owl:Class">
   			<h4>Class: cert:PublicKey</h4> 
   			<em property="rdfs:label" >PublicKey</em> - <span property="rdfs:comment" >Public Key</span> <br /><table style="float: top;">
@@ -221,7 +207,7 @@
  <td>  <a href="#identity">cert:identity</a>
  </td></tr>
   			<tr><th>Used with:</th>
- <td>  <a href="#public_key">cert:public_key</a>
+ <td>  <a href="#key">cert:key</a>
 </td></tr> <tr><th>Sub class of</th>
  <td>  <span rel="rdfs:subClassOf" href="http://www.w3.org/ns/auth/cert#Key"><a href="http://www.w3.org/ns/auth/cert#Key">cert:Key</a></span>
  </td></tr><tr><th colspan="2">OWL Class</th>
@@ -257,15 +243,29 @@
   			<p style="float: right; font-size: small;">[<a href="#X509Certificate">#</a>] <!-- X509Certificate --> [<a href="#glance">back to top</a>]</p>
   			<br/>
   			</div>
-<h3>Properties</h3>
+<div class="specterm" id="PrivateKey" about="http://www.w3.org/ns/auth/cert#PrivateKey" typeof="owl:Class">
+  			<h4>Class: cert:PrivateKey</h4> 
+  			<em property="rdfs:label" >PrivateKey</em> - <span property="rdfs:comment" >Private Key</span> <br /><table style="float: top;">
+  			<tr><th>Status:</th>
+  			<td><span property="vs:term_status" >unknown</span></td></tr>
+  			
+  			<tr><th>Sub class of</th>
+ <td>  <span rel="rdfs:subClassOf" href="http://www.w3.org/ns/auth/cert#Key"><a href="http://www.w3.org/ns/auth/cert#Key">cert:Key</a></span>
+ </td></tr><tr><th colspan="2">OWL Class</th>
+ <td>  </td></tr>
+  			</table>
+  			
+  			<p style="float: right; font-size: small;">[<a href="#PrivateKey">#</a>] <!-- PrivateKey --> [<a href="#glance">back to top</a>]</p>
+  			<br/>
+  			</div><h3>Properties</h3>
  
 
 <div class="specterm" id="hex" about="http://www.w3.org/ns/auth/cert#hex" typeof="owl:InverseFunctionalProperty">
   			<h4>Property: cert:hex</h4> 
-  			<em property="rdfs:label" >hexadecimal</em> - <span property="rdfs:comment" >
-   An encoding of a positive integer (from 0 to infinity) as a hexadecimal string that makes it easy to read and/or fun to present on the web. 
-   The purpose of this way of representing hexadecimals is to enable users to copy and paste hexadecimal notations as shown by most browsers, keychains or tools such as opensso, into their rdf representation of choice.  There are a wide variety of ways in which such strings can be presented. One finds the following 
-
+  			<em property="rdfs:label" >hexadecimal</em> - <span property="rdfs:comment" ><rdfs:span xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" ns="http://www.w3.org/1999/xhtml"><rdfs:p>
+   An encoding of a positive integer (from 0 to infinity) as a hexadecimal string that makes it easy to read and/or fun to present on the web.</rdfs:p>
+   <rdfs:p>The purpose of this way of representing hexadecimals is to enable users to copy and paste hexadecimal notations as shown by most browsers, keychains or tools such as opensso, into their rdf representation of choice.  There are a wide variety of ways in which such strings can be presented. One finds the following:</rdfs:p>
+<rdfs:pre>
   e1 dc d5 e1 00 8f 21 5e d5 cc 7c 7e c4 9c ad 86 
   64 aa dc 29 f2 8d d9 56 7f 31 b6 bd 1b fd b8 ee 
   51 0d 3c 84 59 a2 45 d2 13 59 2a 14 82 1a 0f 6e 
@@ -274,27 +274,33 @@
   fd 9f 0f 82 16 67 9f 67 fa 91 e4 0d 55 4e 52 c0 
   66 64 2f fe 98 8f ae f8 96 21 5e ea 38 9e 5c 4f 
   27 e2 48 ca ca f2 90 23 ad 99 4b cc 38 32 6d bf  
-
- Or the same as the above, with ':' instead of spaces. We can't guarantee that these are the only ways such tools will present hexadecimals, so we are very lax.
- The letters can be uppercase or lowercase, or mixed.  
- Some strings may start with initial 00's, and can be stripped in this notation as they often are. Doing this could, in complement of 2 notation turn a positive number into a negative one, if the first hexadecimal character happens to be one of  the set {'8', '9', 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F'} .  As we interpret this string as a hexadecimal number leading 00s are not important  (Complement of 2 notation and hexadecimal overlap for positive numbers)
- In order to make this fun, we allow any unicode characters in the string. A parser should 
-  1. remove all non hexadecimal characters
-  2. treat the resulting as a hexadecimal representation of a number
+</rdfs:pre>
+<rdfs:p>
+ Or the same as the above, with ':' instead of spaces. We can't guarantee that these are the only ways such tools will present hexadecimals, so we are very lax.</rdfs:p>
+ <rdfs:p>The letters can be uppercase or lowercase, or mixed.  </rdfs:p>
+ <rdfs:p>Some strings may start with initial 00's, and can be stripped in this notation as they often are. Doing this could, in complement of 2 notation turn a positive number into a negative one, if the first hexadecimal character happens to be one of  the set {'8', '9', 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F'} .  As we interpret this string as a hexadecimal number leading 00s are not important  (Complement of 2 notation and hexadecimal overlap for positive numbers)</rdfs:p>
+<rdfs:p> In order to make this fun, we allow any unicode characters in the string. A parser should </rdfs:p>
+  <rdfs:ol>
+<rdfs:li>remove all non hexadecimal characters</rdfs:li>
+<rdfs:li>treat the resulting as a hexadecimal representation of a number</rdfs:li>
+</rdfs:ol>
+<rdfs:p>
  This will allow people to make an ascii - better yet a UTF-8 - picture of their public key when publishing it on the web.
-
+</rdfs:p>
+<rdfs:p>
   Cert hex is also a datatype property because we used to write it out like this
- <pre>
+</rdfs:p>
+ <rdfs:pre>
    [] a rsa:RSAPublicKey;
      rsa:public_exponent [ cert:hex "e1 dc d5 ..."] 
- </pre> 
-  The above notation is now deprecated. Now we prefer the literal format below
- <pre>
+ </rdfs:pre> 
+<rdfs:p> The above notation is now deprecated. Now we prefer the literal format below.</rdfs:p>
+ <rdfs:pre>
    [] a rsa:RSAPublicKey;
      rsa:public_exponent "e1 dc d5 ..."^^cert:hex .
- </pre> 
- 
-   </span> <br /><table style="float: top;">
+ </rdfs:pre> 
+   </rdfs:span>
+        </span> <br /><table style="float: top;">
   			<tr><th>Status:</th>
   			<td><span property="vs:term_status" >unstable</span></td></tr>
   			<tr><th>Domain:</th>
@@ -309,14 +315,9 @@
   			
   			<p style="float: right; font-size: small;">[<a href="#hex">#</a>] <!-- hex --> [<a href="#glance">back to top</a>]</p>
   			<br/>
-  			</div><div class="specterm" id="public_key" about="http://www.w3.org/ns/auth/cert#public_key" typeof="owl:ObjectProperty">
-  			<h4>Property: cert:public_key</h4> 
-  			<em property="rdfs:label" >public_key</em> - <span property="rdfs:comment" >
-      a relation from an agent to a public key for which he alone has 
-      the private key. This public key identifies that agent, allows him
-      to decrypt messages sent to him with that key, and is able to sign
-      messages with it too.
-    </span> <br /><table style="float: top;">
+  			</div><div class="specterm" id="key" about="http://www.w3.org/ns/auth/cert#key" typeof="owl:ObjectProperty">
+  			<h4>Property: cert:key</h4> 
+  			<em property="rdfs:label" >key</em> - <span property="rdfs:comment" >relates an agent to a key - most often the public key.</span> <br /><table style="float: top;">
   			<tr><th>Status:</th>
   			<td><span property="vs:term_status" >unstable</span></td></tr>
   			<tr><th>Domain:</th>
@@ -328,16 +329,19 @@
  <td>  <span rel="owl:inverseOf" href="http://www.w3.org/ns/auth/cert#identity"><a href="#identity">cert:identity</a></span>
  </td></tr><tr><th>Has inverse property</th>
  <td>  <a href="#identity">cert:identity</a>
- </td></tr><tr><th colspan="2">Object Property</th>
+ </td></tr><tr><th colspan="2">RDF Property</th>
+ <td> <span rel="rdf:type" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"></span> </td></tr><tr><th colspan="2">Object Property</th>
  <td>  </td></tr>
   			</table>
   			
-  			<p style="float: right; font-size: small;">[<a href="#public_key">#</a>] <!-- public_key --> [<a href="#glance">back to top</a>]</p>
+  			<p style="float: right; font-size: small;">[<a href="#key">#</a>] <!-- key --> [<a href="#glance">back to top</a>]</p>
   			<br/>
   			</div>
 <div class="specterm" id="decimal" about="http://www.w3.org/ns/auth/cert#decimal" typeof="owl:InverseFunctionalProperty">
   			<h4>Property: cert:decimal</h4> 
-  			<em property="rdfs:label" >decimal</em> - <span property="rdfs:comment" >An encoding of an integer in base 10 notation. Use cert:int instead.</span> <br /><table style="float: top;">
+  			<em property="rdfs:label" >decimal</em> - <span property="rdfs:comment" >
+      An encoding of an integer in base 10 notation. Use cert:int instead.
+    </span> <br /><table style="float: top;">
   			<tr><th>Status:</th>
   			<td><span property="vs:term_status" >archaic</span></td></tr>
   			<tr><th>Domain:</th>
@@ -365,10 +369,11 @@
  <td> <span rel="rdfs:domain" href="http://www.w3.org/ns/auth/cert#PublicKey"><a href="#PublicKey">cert:PublicKey</a></span>
 </td></tr>
   			<tr><th>Inverse property of</th>
- <td>  <span rel="owl:inverseOf" href="http://www.w3.org/ns/auth/cert#public_key"><a href="#public_key">cert:public_key</a></span>
+ <td>  <span rel="owl:inverseOf" href="http://www.w3.org/ns/auth/cert#key"><a href="#key">cert:key</a></span>
  </td></tr><tr><th>Has inverse property</th>
- <td>  <a href="#public_key">cert:public_key</a>
- </td></tr><tr><th colspan="2">Object Property</th>
+ <td>  <a href="#key">cert:key</a>
+ </td></tr><tr><th colspan="2">RDF Property</th>
+ <td> <span rel="rdf:type" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"></span> </td></tr><tr><th colspan="2">Object Property</th>
  <td>  </td></tr>
   			</table>
   			
@@ -386,6 +391,8 @@
 
 <!-- dirty hack for specgen -->
 <div style="display: none"><span about="http://www.w3.org/ns/auth/cert#PGPCertificate" rel="owl:equivalentClass" href="http://xmlns.com/wot/0.1/PubKey"></span></div>
+<div style="display: none"><span about="http://www.w3.org/ns/auth/cert#hex" rel="owl:equivalentClass" href="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"></span></div>
+<div style="display: none"><span about="http://www.w3.org/ns/auth/cert#int" rel="owl:equivalentClass" href="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"></span></div>
 
 
 <h2 id="sec-ack">Acknowledgments</h2>
--- a/ontologies/rdfa/rsa.html	Thu Oct 13 13:27:53 2011 +0200
+++ b/ontologies/rdfa/rsa.html	Mon Oct 17 16:29:03 2011 +0200
@@ -171,7 +171,7 @@
  <td>  <a href="#modulus">rsa:modulus</a>
  </td></tr>
   			<tr><th>Sub class of</th>
- <td>  <span rel="rdfs:subClassOf" href="http://www.w3.org/ns/auth/cert#Key"><a href="http://www.w3.org/ns/auth/cert#Key">http://www.w3.org/ns/auth/cert#:Key</a></span>
+ <td>  <span rel="rdfs:subClassOf" href="http://www.w3.org/ns/auth/cert#Key"><a href="http://www.w3.org/ns/auth/cert#Key">cert:Key</a></span>
  </td></tr><tr><th>Has sub class</th>
  <td>  <a href="#RSAPrivateKey">rsa:RSAPrivateKey</a>
  <a href="#RSAPublicKey">rsa:RSAPublicKey</a>
@@ -234,7 +234,7 @@
  <td> <span rel="rdfs:domain" href="http://www.w3.org/ns/auth/rsa#RSAKey"><a href="#RSAKey">rsa:RSAKey</a></span>
 </td></tr>
   			<tr><th>Range:</th>
- <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">http://www.w3.org/ns/auth/cert#:int</a></span>
+ <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">cert:int</a></span>
  </td></tr><tr><th colspan="2">Datatype Property</th>
  <td>  </td></tr>
   			</table>
@@ -255,7 +255,7 @@
  <td> <span rel="rdfs:domain" href="http://www.w3.org/ns/auth/rsa#RSAPrivateKey"><a href="#RSAPrivateKey">rsa:RSAPrivateKey</a></span>
 </td></tr>
   			<tr><th>Range:</th>
- <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">http://www.w3.org/ns/auth/cert#:int</a></span>
+ <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">cert:int</a></span>
  </td></tr><tr><th colspan="2">Datatype Property</th>
  <td>  </td></tr>
   			</table>
@@ -274,7 +274,7 @@
  <td> <span rel="rdfs:domain" href="http://www.w3.org/ns/auth/rsa#RSAPublicKey"><a href="#RSAPublicKey">rsa:RSAPublicKey</a></span>
 </td></tr>
   			<tr><th>Range:</th>
- <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">http://www.w3.org/ns/auth/cert#:int</a></span>
+ <td>  <span rel="rdfs:range" href="http://www.w3.org/ns/auth/cert#int"><a href="http://www.w3.org/ns/auth/cert#int">cert:int</a></span>
  </td></tr><tr><th colspan="2">Datatype Property</th>
  <td>  </td></tr>
   			</table>