- or download this
my $uri = '';
my $xhtml = '<a rel="license" href="http://creativecommons.org/license
+s/by/3.0/us/"><img alt="Creative Commons License" style="border-width
+:0" src="http://i.creativecommons.org/l/by/3.0/us/88x31.png" /></a><b
+r /><span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://pu
+rl.org/dc/dcmitype/Text" property="dc:title" rel="dc:type">My licenso
+r</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="www.ex
+ample.com/My-Licensor" property="cc:attributionName" rel="cc:attribut
+ionURL">Puneet Kishor</a> is licensed under a <a rel="license" href="
+http://creativecommons.org/licenses/by/3.0/us/">Creative Commons Attr
+ibution 3.0 United States License</a>.<br />Based on a work at <a xml
+ns:dc="http://purl.org/dc/elements/1.1/" href="www.example.com/Source
+-Work" rel="dc:source">www.example/Source-Work</a>.<br />Permissions
+beyond the scope of this license may be available at <a xmlns:cc="htt
+p://creativecommons.org/ns#" href="www.example/More-Permissions" rel=
+"cc:morePermissions">www.example.com/More-Permissions</a>.';
my $parser = RDF::RDFa::Parser->new($xhtml, $uri);
$parser->consume;
print Dumper $parser;
- or download this
$VAR1 = bless( {
'named_graphs' => 0,
...
'xhtml' => '<lic>blah blah blah...</lic>',
'Graphs' => {}
}, 'RDF::RDFa::Parser' );