- From: Fabien Gandon <Fabien.Gandon@sophia.inria.fr>
- Date: Fri, 25 May 2007 17:00:27 +0200
- To: public-grddl-wg <public-grddl-wg@w3.org>
- Message-ID: <4656FA0B.1090706@sophia.inria.fr>
Hello, Following my action: "Fabien to clarify purpose of uri param in RDFa2RDFXML.xsl" http://www.w3.org/2007/05/23-grddl-wg-minutes.html#action06 I test the behaviour of the RDFa2RDFXML transform with and without the "url" param ; here is the result. In summary: when there is no base and no param the generated triples have relative URIs. The tests were performed using a new version of the transform (including class attribute early implementation for RDFa) http://www-sop.inria.fr/acacia/soft/RDFa2RDFXML_v_0_9.xsl *Test case 1: GRRDL source with an xml:base* <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" xml:base="http://www-sop.inria.fr/acacia/fabien/example" > <body> <p about="#we" class="cal:Vevent" > <b property="cal:summary">Weekend off in Banff</b> </p> </body> </html> Yields (with or without "url" parameter): <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:h="http://www.w3.org/1999/xhtml"> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <rdf:type rdf:resource="http://www.w3.org/2002/12/cal/icaltzd#Vevent"/> </rdf:Description> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <cal:summary xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Weekend off in Banff</cal:summary> </rdf:Description> </rdf:RDF> *Test case 2: GRDDL source with an html base element* <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" > <head> <base href="http://www-sop.inria.fr/acacia/fabien/example" /> </head> <body> <p about="#we" class="cal:Vevent" > <b property="cal:summary">Weekend off in Banff</b> </p> </body> </html> Yields (with or without parameter): <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:h="http://www.w3.org/1999/xhtml"> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <rdf:type rdf:resource="http://www.w3.org/2002/12/cal/icaltzd#Vevent"/> </rdf:Description> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <cal:summary xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Weekend off in Banff</cal:summary> </rdf:Description> </rdf:RDF> *Test case 3: no specified base but a "url" parameter set to "http://www-sop.inria.fr/acacia/fabien/example"* <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" > <body> <p about="#we" class="cal:Vevent" > <b property="cal:summary">Weekend off in Banff</b> </p> </body> </html> Yields: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:h="http://www.w3.org/1999/xhtml"> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <rdf:type rdf:resource="http://www.w3.org/2002/12/cal/icaltzd#Vevent"/> </rdf:Description> <rdf:Description rdf:about="http://www-sop.inria.fr/acacia/fabien/example#we"> <cal:summary xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Weekend off in Banff</cal:summary> </rdf:Description> </rdf:RDF> *Test case 4: no specified base and no "url" parameter.* <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" > <body> <p about="#we" class="cal:Vevent" > <b property="cal:summary">Weekend off in Banff</b> </p> </body> </html> Yields: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:h="http://www.w3.org/1999/xhtml"> <rdf:Description rdf:about="#we"> <rdf:type rdf:resource="http://www.w3.org/2002/12/cal/icaltzd#Vevent"/> </rdf:Description> <rdf:Description rdf:about="#we"> <cal:summary xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Weekend off in Banff</cal:summary> </rdf:Description> </rdf:RDF> -- Fabien - http://www.inria.fr/acacia/fabien/
Received on Friday, 25 May 2007 15:00:48 UTC