2012-07-26 UTC
xtof_fr, Flavio_CF_Olivei, tantek and kennyluck joined the channel
# 06:32 tantek edited /irc (+1236) "/* Logs */ /invite krijnh #microformats if krijnh is not in the channel to keep his logs going, add logbot.glob link" (
view diff )
krijnh, jkridner___, chiui, csarven, nonge, adactio, Jonadabe, kennyluck, danbri and MacTed joined the channel
twisted` joined the channel
# 14:11 twisted` hi, anyone here familiar with implementing rich-snippets or whaddayamightcall it into existing websites?
# 14:11 twisted` I want to implement the Product Schema into an existing webshop
# 15:04 tantek twisted`: yes, you can implement hProduct into an existing webshop
# 15:05 twisted` yeah I got it working quite ok by now actually
# 15:05 twisted` lot more work then I hoped but that's due to the webshop's templating
# 15:06 twisted` what I don't fully get
# 15:06 twisted` is I implemented name, manufacturer, offers (with a price) and description
# 15:06 tantek with the hProduct microformat, you just need to add a few class names. in contrast with microdata/schema or RDFa, you have to add a bunch more attributes (and sometimes more divs/spans also)
patcito joined the channel
# 15:06 twisted` but using the Google Preview it just shows the price
# 15:06 twisted` it does recognise the rest
# 15:06 twisted` I can PM you the preview URL
# 15:06 twisted` don't want to spam this channel with my webshop's url
# 15:07 tantek no that's ok, you can share it in the channel if you're ok with it
# 15:09 twisted` it seems to extract the info properly but it doesn't do anything with it
# 15:10 twisted` or I don't really get it yet :D
# 15:10 twisted` k brb gotta walk my dog
# 15:28 twisted` hmm I thought I was using the same format
# 15:28 twisted` ok I'll look into it
# 15:40 tantek hProduct is a bit simpler, and only requires adding to the class attribute see that last link for a comparison and the hProduct spec for example markup.
# 15:41 tantek got to go for now - will be back later - but give hProduct a try with class="…" attributes rather than all the item**** attributes and report back how it works or with any questions about hProduct.
xtof_fr and delphianQ joined the channel
jkridner, tantek, KevinMarks, mkaply and undecim joined the channel
# 21:15 undecim in hCard, I need either 'fn' *OR* 'n', not both?
# 21:16 undecim Alright. Just seemed silly to have the name twice, though I guess fn is sort of like the preferred way to have a name written?
# 21:16 undecim And then 'n' is for a sematically strucutred name?
# 21:18 tantek no you can use the same markup on the name once
# 21:19 tantek 'n' is for marking up the individual components of a name, which can also be used in sequence for how the name is displayed, and thus the whole thing can be wrapped in an 'fn'
# 21:20 twisted` tantek: to respond to what you said earlier, using class="" seems to be impractical for my certain usage
# 21:20 twisted` it would have a chance of class collision in naming
# 21:20 twisted` and want to prevent that
# 21:20 undecim tantek: OIC. Thanks
# 21:20 tantek we've fixed things in microformats2 accordingly
# 21:21 twisted` hmm I only implemented one
# 21:22 twisted` maybe the other one is already in the webshop stuff
# 21:22 twisted` tantek: or which other one am I using?
# 21:23 twisted` according to Google it has MICROFORMAT (no idea where it pulls those from tbfh) and MICRODATA (what I supplied)
# 21:24 twisted` also the 'fn' it refers to doesn't exist in the sourcecode
# 21:25 twisted` tantek: or do you mean, I am using schema.org/Product and schema.org/Offer ?
# 21:25 twisted` I thought both had to be used together?
# 21:26 tantek it's odd - I'm not sure how you're supposed to use them together
# 21:26 tantek we took a different approach with microformats, that is, with hListing
# 21:26 tantek which encapsulates the offering information, and as part of it can include an hProduct inside
# 21:27 twisted` I can try to use hProduct
# 21:28 twisted` but just find the classes a bit... meh
# 21:28 twisted` not sure yet but there's bound to be one
# 21:29 twisted` but modifying existing code
# 21:29 twisted` cause I want to keep the template as close as possible to the stock
# 21:29 tantek ok got it - so you want to be more conservative
# 21:29 twisted` to insure upgrades are possible
# 21:30 twisted` and adding some -extra- spans here and there
# 21:30 twisted` is something that you can easily add/remove
# 21:30 twisted` but I'll dupe my current file and make a hProduct one, see if I get more luck there :)
# 21:30 tantek it's interesting - most designer prefer *not* using extra spans - because it clutters up the markup
# 21:31 twisted` uh... I can't think of any reason why using a span too much/less can be any bad thing
# 21:32 twisted` imo I'd prefer if something like microdata or microformats would become mandatory
# 21:32 twisted` want a product listing? use a friggin <price> for the price, <price type="sale"> or whatever
# 21:32 twisted` styling can be exactly the same but 10000x easier to parse
# 21:33 twisted` now I'm stuck with a gazillion elements that all make no sense whatsoever
# 21:35 twisted` but that's just me looking at it purely from a technical standpoint
# 21:36 twisted` parsing HTML is a pita
# 21:36 twisted` if I know I can search for a predefined standard and parse just that... *happy camper*
# 21:36 tantek twisted` microformats is what Google has supported the longest.
# 21:37 twisted` well I clicked on *recommended*
# 21:37 twisted` and it gave me that schema.org stuff
# 21:37 tantek and designers still prefer minimal markup/attribute and working with the class attribute, so we've iterated on microformats with microformats2, fixing the problems like class collisions etc.
# 21:38 tantek Google used to help contribute to microformats, e.g. hReview-aggregate, hProduct, hListing, but then decided to come up with 150+ different objects with schema
# 21:38 tantek while reinventing the objects that already worked fine in microformats
# 21:38 tantek it's Google's 4th attempt to reinvent something for adding semantics to the web (previously: Google Base, Google Data, data-vocabulary.org).
# 21:39 twisted` how do I pass along which type of identifier it is?
# 21:39 twisted` it needs a type like mpn
# 21:39 twisted` so I do class="identifier mpn" ?
# 21:39 tantek for microformats we're continuing to plug away and evolve it openly, with a community
# 21:39 tantek the "type" is what we refer to as root class names in microformats
# 21:40 tantek essentially, root class names start with "h-"
# 21:40 twisted` but I mean for hProduct
# 21:40 twisted` I can define a MPN
# 21:40 tantek in existing microformats, the root class names are all chosen one by one
# 21:40 tantek so for hProduct, the root class name is "hproduct"
# 21:42 tantek and actually, all properties are optional in microformats2
# 21:43 twisted` I dunno if Google supports microformats2?
# 21:43 tantek it's another improvement we've made based on feedback
# 21:43 twisted` then... it's no use to me atm ;) nofi :D
# 21:43 tantek right now, various parser/validator developers are working on adding microformats2 support
# 21:43 twisted` I just want better indexibility from Google's standpoint
# 21:43 tantek for that, check back in 6 months I'd say (maybe sooner, but likely ~6months)
# 21:43 tantek sure, for that you'll want only existing microformats or the microdata schema or rdfa variants.
# 21:44 twisted` by that time, new iteration of the webshop's software
# 21:45 twisted` new code to poke
# 21:53 twisted` tantek: how do I implement the MPN with Microformat 1?
# 21:53 twisted` <span class='identifier mpn'>2090802</span>
# 21:53 twisted` I now do that
# 21:59 tantek you have to include the mpn in a separate span
# 22:00 tantek <span class="identifier"><span class="type">mpn</span>2090802</span>
# 22:00 twisted` ehr hmm that's not gonna fly unless I make an extra class that hides the mpn
# 22:02 tantek then yes, you likely have to use the Value Class - value-title pattern
# 22:04 tantek e.g. <span class="identifier"><span class="type"><span class="value-title" title="mpn"></span></span>2090802</span>
tantek, delphianQ and mkaply joined the channel
# 23:39 twisted` tantek: I completely implemented microformat
# 23:39 twisted` but Google didn't recognise the price or something
# 23:40 twisted` so reverted to the working schema.org/product which worked
# 23:40 tantek hmm - did you put it in <span class="price">$100</span> or something?
# 23:40 twisted` <span class="price">800</span>
# 23:40 twisted` cause if I included the € in it it complained about illegal chars
# 23:41 twisted` it did find it, just didn't do anything with it
# 23:44 tantek wow that's very odd - sounds like a bug with rich snippets handling
# 23:44 tantek because if it's finding it, it should do something with it!