Re: synonym anchors, in RDFa

can you live with the code sample below (the sameAs-version)?

http://www.w3.org/2007/08/pyRdfa/#distill_by_input says it's ok.

code (i hope it's still halfway formatted...)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html
        xmlns="http://www.w3.org/1999/xhtml"        
        xmlns:foaf="http://xmlns.com/foaf/0.1/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:dcterms="http://purl.org/dc/terms/"
 xmlns:owl="http://www.w3.org/2002/07/owl#">
<body>

<div about="#" typeof="foaf:Agent" rel="owl:sameAs" resource="#me"/>

<div about="#me" typeof="foaf:Person">
 <h2>Name</h2>
 <span property="foaf:name">Peter</span>
 <h2>OpenID</h2>
 <span property="foaf:openid">http://yorkporc.blogspot.com/</span>
 <h2>RSA Public Key</h2>
 <div rel="cert:key">
  <div typeof="cert:RSAPublicKey">
   <dl>
    <dt>Modulus (hexadecimal)</dt>
     <dd datatype="xsd:hexBinary" property="cert:modulus">b94692148969aeb188d54eb75b8b14782bdb6cb42bc324e8e9f2e1268d654a80c4a030378067ed17308b4e4982b0fe0f32253d38070f5855a021e271ad5c1151a8bc049577d7fd82f131e6de9c541d48c1dd9d40d4c4fb1341b586d26f7a242e37bda80a8e05e6bf10f644f913b586263bea23c9ff8a35f17c165dfa03526b25
     </dd>
    <dt>Exponent (decimal)</dt>
    <dd datatype="xsd:integer" property="cert:exponent">65537</dd>
   </dl>
  </div>
 </div>
</div>
</body>
</html>



alternativly you could try :

<div typeof="cert:RSAPublicKey" about="#pubKey">
...
</div>

<div about="#me" typeof="foaf:Person">
 <div rel="cert:key" resource="#pubKey">
</div>

<div about="#myotheri" typeof="foaf:Person">
 <div rel="cert:key" resource="#pubKey">
</div>

<div about="#mytaperecorder" typeof="foaf:Agent">
 <div rel="cert:key" resource="#pubKey">
</div>


wkr http://www.turnguard.com/turnguard

----- Original Message -----
From: "Peter Williams" <home_pw@msn.com>
To: "j jakobitsch" <j.jakobitsch@semantic-web.at>
Cc: public-xg-webid@w3.org
Sent: Friday, December 23, 2011 8:11:31 PM
Subject: RE: synonym anchors, in RDFa


what I did originally is copy the example from the webid spec into a blog post (#me). 

 

Then I copied a second time, changing only the anchor tag to default #.

 

I just hoped that I could avoid having to have two copies of the rest of the data (the long mod, etc). I want to post several more similar tags, each one a type of SHA hash (sha1, sha512...). Ideally, if I have seven, I dont want to have twelve copies of the modulus. The values in the  fragments will form a hash chain (for id lifecycle management, revocation of names, etc)

 

 

(I threw in the change of object class, per anchor, for fun.)

 

             

-- 
| Jürgen Jakobitsch, 
| Software Developer
| Semantic Web Company GmbH
| Mariahilfer Straße 70 / Neubaugasse 1, Top 8
| A - 1070 Wien, Austria
| Mob +43 676 62 12 710 | Fax +43.1.402 12 35 - 22

COMPANY INFORMATION
| http://www.semantic-web.at/

PERSONAL INFORMATION
| web   : http://www.turnguard.com
| foaf  : http://www.turnguard.com/turnguard
| skype : jakobitsch-punkt

Received on Friday, 23 December 2011 19:26:02 UTC