RDF Extracted Attributes from Styled Elements (RDF-EASE)

CSS is an external file that specifies how your document should look; RDF-EASE is an external file that specifies what your document means.

.vcard
{
-rdf-typeof: "foaf:Person";
}
.vcard .fn
{
-rdf-property: "foaf:name";
-rdf-datatype: "xsd:string";
}
.vcard .url
{
-rdf-rel: "foaf:page";
}
/* This scopes everything within the hCard as applying to the
* hCard as a whole.
*/
.vcard, .vcard *
{
-rdf-about: nearest-ancestor(".vcard");
}

<div class="vcard"><a class="fn url" href="http://example.com">Joe Bloggs</a></div>
<div class="vcard"><span class="fn"><a class="url" href="http://example.com">Joe Bloggs</a></span></div>
<div class="vcard"><a class="url" href="http://example.com"><span class="fn">Joe Bloggs</span></a></div>

Now, that’s an intriguing idea — which could of course also be applied to Topic Maps.

Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • @twitter

  • Tags

  • Topics

  • Recent Comments

  • Topic Map Feeds