[arc-dev] parsing Microformats
From: "Wagner, Claudia"
Subject: [arc-dev] parsing Microformats
Date: Fri, 13 Mar 2009 11:45:46 +0100
Hi all,
I just tried to parse the following HTML with ARC2:
<div class=3D"vcard">
<div class=3D"adr">
<div class=3D"street-address">169 University Avenue</div>
</div>
</div>
<div class=3D"vevent">
<h3 class=3D"summary">XYZ Project Review</h3>
<p>Location: <span class=3D"location">London</span></p>
</div>
I expected to get following triples:
<vcard-posh-URI> <rdf:type> <vcard>
<vcard-posh-URI> <adr> <adr-push-URI>
<adr-push-URI> <street-address> "169 University Avenue"
<vevent-posh-URI> <rdf:type> <vEvent>
<vevent-posh-URI> <summary> "XYZ Project Review"
<vevent-posh-URI> <location> "London"
But what I got from the parser was:
<rdf:RDF xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" =
xmlns:ns0=3D"http://poshrdf.org/ns/mf#">=20
<rdf:Description rdf:about=3D"http://www.example.com/#resource(/1)">=20
<rdf:type rdf:resource=3D"http://poshrdf.org/ns/mf#Vcard"/>=20
<ns0:adr rdf:resource=3D"http://www.example.com/#resource(/1/1)"/>=20
</rdf:Description>=20
<rdf:Description rdf:about=3D"http://www.example.com/#resource(/1/1)">=20
<rdf:type rdf:resource=3D"http://poshrdf.org/ns/mf#Adr"/>=20
<ns0:street-address>169 University Avenue</ns0:street-address>=20
</rdf:Description>=20
</rdf:RDF>
The parser seems to parse and process only the first embedded resource =
(if microformats are used).=20
Is this possible?
Cheers Claudia.
___________________________________
Claudia WAGNER
Institut f=FCr vernetzte Medien, JOANNEUM RESEARCH Steyrergasse 17, =
A-8010 Graz, Austria
Tel. +43 316 876 2617 Fax. +43 316 876 1403
http://www.joanneum.at/inm
email: Claudia {dot} Wagner {at} joanneum {dot} at=20