Skip Menu |

This queue is for tickets about the HTML-Microformats CPAN distribution.

Report information
The Basics
Id: 85241
Status: open
Priority: 0/
Queue: HTML-Microformats

People
Owner: perl [...] toby.ink
Requestors: dr [...] jones.dk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Chokes converting to Trine model: Literal constructor called with an undefined value
Date: Mon, 13 May 2013 21:12:56 +0200
To: bug-html-microformats [...] rt.cpan.org
From: Jonas Smedegaard <dr [...] jones.dk>
Seems to me HTML::Microformats wrongly passes empty data to Trine. This works fine (although locating only some data types): PERLLIB=lib examples/microformats-to-json.pl http://www.w3.org/2006/vcard/examples.html { "OpenURL_COinS" : [], "RelEnclosure" : [], "RelLicense" : [], "RelTag" : [], "VoteLinks" : [], "XFN" : [], "XMDP" : [], "XOXO" : [], "adr" : [], "figure" : [], "geo" : [], "hAlarm" : [], "hAtom" : [], "hAudio" : [], "hCalendar" : [], "hCard" : [ { "adr" : [], "email" : [ { "value" : "mailto:ndw@nwalsh.com" } ], "fn" : "Norman Walsh", "kind" : "individual", "n" : [ { "family-name" : [ "Walsh" ], "given-name" : [ "Norman" ] } ], "org" : [], "photo" : [ "http://nwalsh.com/people/ndw/images/ndw.gif" ], "url" : [ "http://norman.walsh.name/" ] }, { "adr" : [], "email" : [ { "value" : "mailto:jfriday@host.com" } ], "fn" : "Joe Friday", "kind" : "individual", "n" : [ { "family-name" : [ "Friday" ], "given-name" : [ "Joe" ] } ], "org" : [], "tel" : [ { "value" : "tel:+19195557878" } ], "title" : [ "Area Administrator, Assistant" ] }, { "kind" : "individual", "n" : [ { "family-name" : [ "Doe" ], "given-name" : [ "John" ] } ], "org" : [ { "organization-name" : "The Department of Redundency Department" } ], "title" : [ "Area Administrator, Assistant" ] } ], "hEntry" : [], "hEvent" : [], "hFreebusy" : [], "hListing" : [], "hMeasure" : [], "hNews" : [], "hProduct" : [], "hRecipe" : [], "hResume" : [], "hReview" : [], "hReviewAggregate" : [], "hTodo" : [], "species" : [] } This fails completely, though: PERLLIB=lib examples/microformats-to-rdf.pl http://www.w3.org/2006/vcard/examples.html Literal constructor called with an undefined value I would have expected to get some vCard data, not an error message. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private