Re: Update on RDF in XHTML (works for a Creative Commons, FOAF, GeoURL)

On Dec 5, 2003, at 9:26 AM, Dominique Hazaël-Massieux wrote:

> Le mar 25/11/2003 à 00:35, Dan Connolly a écrit :
>> Dom, let's add examples to the proposal/demo for
>> how to do
>>   - Dublin Core
>>   - Creative Commons
>>   - GeoURL
>>   - RSS
>>   - FOAF
>
> Done, except for RSS; based on the XSLTs you listed, I've published:
> http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokCC.xsl
> http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokGeoURL.xsl
> http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokFOAF.xsl
>
> GeoURL is pretty much the same as the one in your People dir. CC is
> based on it, but should handle all the CC licenses (but with possible
> errors, since I didn't know how to find a reference list of RDF
> descriptions for all the licenses); FOAF is new, since it needed to be
> based on more constrained conventions that the ones used in your home
> page.
>
> The mark up conventions detailed in HTML in each XSLT, and in some
> browsers, that's what you'll see by clicking on the links above.
>
> I created an example page:
> Joe Lambda Home page as example of RDF in XHTML
> http://www.w3.org/2003/12/rdf-in-xhtml-xslts/complete-example.html
> which gives the following RDF once run through the RDF-in-xhtml
> processor (sorry for the long copy and paste, but I think it's  
> worthwile
> to have this in the mail):
> """
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
> <foaf:Person xmlns:foaf="http://xmlns.com/foaf/0.1/"
> xmlns:html="http://www.w3.org/1999/xhtml">
> <foaf:name>Joe Lambda</foaf:name>
> <foaf:mbox rdf:resource="mailto:joe.lambda@example.org"/>
> <foaf:workplacehomepage rdf:resource="http://www.acme.org"/>
> <foaf:homepage rdf:resource="http://www.example.org/~jlambda/"/>
> <foaf:knows>
> <foaf:Person>
> <foaf:name>Bill Foo</foaf:name>
> <foaf:homepage rdf:resource="http://www.example.org/~bfoo/"/>
> </foaf:Person>
> </foaf:knows>
> <foaf:knows>
> <foaf:Person>
>
> <foaf:name>G. Baz</foaf:name>
> <foaf:mbox rdf:resource="mailto:gbaz@example.com"/>
> </foaf:Person>
> </foaf:knows>
> </foaf:Person>
> <cc:Work rdf:about="" xmlns:cc="http://web.resource.org/cc/"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:dt="http://www.w3.org/2001/XMLSchema#"
> xmlns:h="http://www.w3.org/1999/xhtml">
> <cc:license>
> <cc:License rdf:about="http://creativecommons.org/licenses/by-nd/1.0/"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>     <cc:permits  
> rdf:resource="http://web.resource.org/cc/Reproduction"/>
>     <cc:permits  
> rdf:resource="http://web.resource.org/cc/Distribution"/>
>     <cc:requires rdf:resource="http://web.resource.org/cc/Notice"/>
>     <cc:requires  
> rdf:resource="http://web.resource.org/cc/Attribution"/>
>
>   </cc:License>
> </cc:license>
> </cc:Work>
> <rdf:Description rdf:about=""
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:dt="http://www.w3.org/2001/XMLSchema#"
> xmlns:foaf="http://xmlns.com/foaf/0.1/"
> xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
> xmlns:h="http://www.w3.org/1999/xhtml">
> <foaf:topic rdf:parseType="Resource">
> <geo:lat>39.2975</geo:lat>
> <geo:long> -94.71388888888889</geo:long>
> </foaf:topic>
> </rdf:Description>
> <rdf:Description about="" xmlns:DubC="http://purl.org/dc/elements/1.1/"
> xmlns:h="http://www.w3.org/1999/xhtml"
> xmlns="http://www.w3.org/1999/xhtml">
> <Title xmlns="http://purl.org/dc/elements/1.1/">Joe Lambda Home page as
> example of RDF in XHTML</Title>
> <Creator xmlns="http://purl.org/dc/elements/1.1/">Dominique
> Hazael-Massieux</Creator>
>
> <Description xmlns="http://purl.org/dc/elements/1.1/">a fake home page
> for Joe Lambda, with the purpose of demonstrating how to mix several  
> RDF
> vocabularies in XHTML</Description>
> <Publisher xmlns="http://purl.org/dc/elements/1.1/">W3C - World Wide  
> Web
> Consortium - http://www.w3.org</Publisher>
> </rdf:Description>
> </rdf:RDF>
> """
> http://www.w3.org/2000/06/webdata/xslt? 
> xslfile=http%3A%2F%2Fwww.w3.org%2F2003%2F11%2Frdf-in-xhtml- 
> processor&xmlfile=http%3A%2F%2Fwww.w3.org%2F2003%2F12%2Frdf-in-xhtml- 
> xslts%2Fcomplete-example.html
> which sounds about right.
>
> Dom

Dom,

This looks *great* ! The only quick comments I have at this point are  
the following:

- I'd suggest not using 'about=""' but the URI of the resource being  
translated
- make all DC elements lower case rather than upper
- (minor point) I wonder if there is a pretty print | style sheet  
output we could pipe the results through for more human readability

Excellent work :)

--
eric miller                              http://www.w3.org/people/em/
semantic web activity lead               http://www.w3.org/2001/sw/
w3c world wide web consortium            http://www.w3.org/

Received on Friday, 5 December 2003 09:50:13 UTC