I seem to have a problem using HTML::HTML5::Microdata::Parser or RDF::Query or with the syntax and semantics of SPARQL. I'm interested in this bit from a news site site .
<div class="authors"> Autoři: <span itemprop="author" itemscope itemtype="http://schema.org/Person"><a rel="author" itemprop="url" class="name" href="http://vice.idnes.cz/novinari.aspx?idnov=2504" ><span itemprop="name">Zdeňka Trachtová</span></a></span> , <span itemprop="author" itemscope itemtype="http://schema.org/Person"><a rel="author" itemprop="url" href="http://vice.idnes.cz/novinari.aspx?idnov=3495" ><span itemprop="additionalName">san</span></a><span class="h" itemprop="name">Sabina Netrvalová</span></span> </div>
Here is my test code:
The HTML::HTML5::Microdata::Parser options were just my last attempt to make this work. (I basically have a zero idea of what I'm doing.)
Any ideas how to make this work and get the names of the authors?
html5 perl rdf microdata sparql
wilx
source share