#aaronpkNormally parsers will return a data structure that maps exactly to the Microformats JSON representation rather than defining their own classes for the objects within
#aaronpkA parser might also have tools to help access that data easier, but the parsing step should be as light as possible and reflect the documented JSON as accurately as possible
#jmacI thought it'd be enough to have a ready-to-hand as_json() object method for serialization, but it sounds like you're arguing that really there shouldn't be anything to serialize, once parsed?
#aaronpkYeah more or less. The parsed result is usually a native data structure of primitive types. Objects/Hashes, arrays and strings
#aaronpkThat was actually one of the annoying things about the ruby parser before the rewrite. It used to return its own classes for everything so it made it cumbersome to deal with because you had to go read docs about how to access the values and iterate over things
#jmacThis is *almost* that... it being Perl, all the sturctures are just primitives that are "blessed" into named classes (and the JSON export strips that out). But my "document" objects have a few extra indices and stuff to help with queries, as well.
#jmacAnd this is all build around what I as its notional sole user want to use at this time :) But I am 100% willing to reshape per community standards
#jmacI will add that the tests at github.com/microformats/tests are 💯, and this module's own tests are literally those, copied over with attribution. It passes 40-odd out of 70-odd tests, woo
#aaronpkyeah ultimately it's up to the you to make something that fits the perl expectations best, but we do also want to be somewhat consistent between the languages
#@Switchstance_To finish off #TechieTuesday we thought we'd incorporate a little SEO, enjoy these helpful tips on micro-formats and rich snippets #SEO #MicroFormats #RichSnippets #DigitalOptimisation #Data #DigitalMarketing #Sheffieldissuper (twitter.com/_/status/983691075301687297)
twisted`, bigbluehat, [jgmac1106], webchat178, kaushalmodi, barpthewire, TallTed, tantek_, [kevinmarks], [gerwitz], sebsel and [eddie] joined the channel
#@zarlinoRegà, se 10 anni fa invece de aprivve sti facebook e sti twitter ve imparavate a fa un blog coi microformats e a legge gli RSS, oggi non staremmo a sentì #Zuckerberg che ce racconta quanti cacchi nostri sa e quanto ce vole censurà. (twitter.com/_/status/983800199725420545)
#aaronpkis there some way i can use the value of the "id" attribute as an mf2 property?
#KartikPrabhuaaronpk: afaik id attribute never shows up in any parsing