#microformats 2012-07-26

2012-07-26 UTC
#
tantek
edited /hcard-input-examples (+34913) "/* person billing shipping input */ American Eagle"
(view diff)
xtof_fr, Flavio_CF_Olivei, tantek and kennyluck joined the channel
#
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
#
@divshot
HTML5 & microformats 2 http://t.co/m32UBUNC
twisted` joined the channel
#
twisted`
hi, anyone here familiar with implementing rich-snippets or whaddayamightcall it into existing websites?
#
@FreeWSOdownload
Free download: WSO - WP Author hReview (Plugin) http://t.co/7QX9U90f
#
twisted`
I want to implement the Product Schema into an existing webshop
#
tantek
twisted`: yes, you can implement hProduct into an existing webshop
#
twisted`
yeah I got it working quite ok by now actually
#
twisted`
lot more work then I hoped but that's due to the webshop's templating
#
twisted`
:)
#
tantek
some methods take more work than others too
#
twisted`
what I don't fully get
#
twisted`
is I implemented name, manufacturer, offers (with a price) and description
#
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
#
twisted`
but using the Google Preview it just shows the price
#
twisted`
it does recognise the rest
#
twisted`
I can PM you the preview URL
#
twisted`
don't want to spam this channel with my webshop's url
#
tantek
no that's ok, you can share it in the channel if you're ok with it
#
twisted`
it seems to extract the info properly but it doesn't do anything with it
#
twisted`
or I don't really get it yet :D
#
twisted`
k brb gotta walk my dog
#
tantek
twisted` I think it has to do with the complexity of using multiple schema type objects in one page. take a look at hProduct and see if that markup is simpler: http://microformats.org/wiki/hproduct
#
tantek
and see also Google's description of their hProduct support here: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=186036
#
twisted`
hmm I thought I was using the same format
#
twisted`
ok I'll look into it
#
twisted`
afaik I took everything from: http://www.schema.org/Product as an example
#
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.
#
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.
#
tantek
ttyl!
#
twisted`
thanks!
xtof_fr and delphianQ joined the channel
#
mohit.seth
edited /hresume-examples-in-wild (+146) "/* New Examples */"
(view diff)
jkridner, tantek, KevinMarks, mkaply and undecim joined the channel
#
undecim
in hCard, I need either 'fn' *OR* 'n', not both?
#
tantek
or both
#
tantek
you always need fn
#
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?
#
undecim
And then 'n' is for a sematically strucutred name?
#
tantek
no you can use the same markup on the name once
#
tantek
see the examples
#
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'
#
twisted`
tantek: to respond to what you said earlier, using class="" seems to be impractical for my certain usage
#
twisted`
it would have a chance of class collision in naming
#
twisted`
and want to prevent that
#
tantek
a-ha - good to know
#
undecim
tantek: OIC. Thanks
#
tantek
yes that confirms some feedback we received
#
twisted`
tantek: also I don't see how I'm mixing two specs? afaik I'm just using http://www.schema.org/Product
#
tantek
we've fixed things in microformats2 accordingly
#
tantek
to avoid class collisisons
#
tantek
collisions even
#
tantek
you have two itemtypes in your code
#
twisted`
hmm I only implemented one
#
twisted`
maybe the other one is already in the webshop stuff
#
twisted`
tantek: or which other one am I using?
#
tantek
I saw two itemtype on the page
#
twisted`
according to Google it has MICROFORMAT (no idea where it pulls those from tbfh) and MICRODATA (what I supplied)
#
tantek
interesting
#
twisted`
also the 'fn' it refers to doesn't exist in the sourcecode
#
twisted`
tantek: or do you mean, I am using schema.org/Product and schema.org/Offer ?
#
twisted`
I thought both had to be used together?
#
tantek
it's odd - I'm not sure how you're supposed to use them together
#
tantek
we took a different approach with microformats, that is, with hListing
#
tantek
which encapsulates the offering information, and as part of it can include an hProduct inside
#
twisted`
I can try to use hProduct
#
twisted`
but just find the classes a bit... meh
#
tantek
which classes collide for you?
#
twisted`
not sure yet but there's bound to be one
#
tantek
are you a developer or designer?
#
twisted`
developer :)
#
twisted`
but modifying existing code
#
twisted`
cause I want to keep the template as close as possible to the stock
#
tantek
ok got it - so you want to be more conservative
#
twisted`
to insure upgrades are possible
#
twisted`
and adding some -extra- spans here and there
#
twisted`
is something that you can easily add/remove
#
twisted`
but I'll dupe my current file and make a hProduct one, see if I get more luck there :)
#
tantek
it's interesting - most designer prefer *not* using extra spans - because it clutters up the markup
#
twisted`
uh... I can't think of any reason why using a span too much/less can be any bad thing
#
twisted`
imo I'd prefer if something like microdata or microformats would become mandatory
#
twisted`
want a product listing? use a friggin <price> for the price, <price type="sale"> or whatever
#
twisted`
styling can be exactly the same but 10000x easier to parse
#
twisted`
now I'm stuck with a gazillion elements that all make no sense whatsoever
#
twisted`
but that's just me looking at it purely from a technical standpoint
#
twisted`
parsing HTML is a pita
#
twisted`
if I know I can search for a predefined standard and parse just that... *happy camper*
#
tantek
twisted` microformats is what Google has supported the longest.
#
twisted`
well I clicked on *recommended*
#
twisted`
and it gave me that schema.org stuff
#
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.
#
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
#
tantek
while reinventing the objects that already worked fine in microformats
#
tantek
it's Google's 4th attempt to reinvent something for adding semantics to the web (previously: Google Base, Google Data, data-vocabulary.org).
#
twisted`
how do I pass along which type of identifier it is?
#
twisted`
it needs a type like mpn
#
twisted`
so I do class="identifier mpn" ?
#
tantek
for microformats we're continuing to plug away and evolve it openly, with a community
#
tantek
the "type" is what we refer to as root class names in microformats
#
tantek
microformats2 makes this much simpler
#
tantek
essentially, root class names start with "h-"
#
tantek
e.g. h-card, h-event, h-recipe etc.
#
twisted`
yeah
#
twisted`
but I mean for hProduct
#
twisted`
I can define a MPN
#
tantek
in existing microformats, the root class names are all chosen one by one
#
tantek
so for hProduct, the root class name is "hproduct"
#
twisted`
yep
#
twisted`
http://microformats.org/wiki/hproduct -> identifier. optional.
#
tantek
right
#
tantek
and actually, all properties are optional in microformats2
#
tantek
for the publisher
#
twisted`
I dunno if Google supports microformats2?
#
tantek
it's another improvement we've made based on feedback
#
tantek
not yet
#
twisted`
then... it's no use to me atm ;) nofi :D
#
tantek
right now, various parser/validator developers are working on adding microformats2 support
#
twisted`
I just want better indexibility from Google's standpoint
#
tantek
for that, check back in 6 months I'd say (maybe sooner, but likely ~6months)
#
tantek
sure, for that you'll want only existing microformats or the microdata schema or rdfa variants.
#
twisted`
by that time, new iteration of the webshop's software
#
twisted`
new code to poke
#
tantek
makes sense
#
twisted`
tantek: how do I implement the MPN with Microformat 1?
#
twisted`
<span class='identifier mpn'>2090802</span>
#
twisted`
I now do that
#
tantek
*checks spec*
#
tantek
you have to include the mpn in a separate span
#
tantek
<span class="identifier"><span class="type">mpn</span>2090802</span>
#
twisted`
ehr hmm that's not gonna fly unless I make an extra class that hides the mpn
#
tantek
ah ok
#
tantek
then yes, you likely have to use the Value Class - value-title pattern
#
tantek
e.g. <span class="identifier"><span class="type"><span class="value-title" title="mpn"></span></span>2090802</span>
#
tantek
brb - switching locations
#
twisted`
k
tantek, delphianQ and mkaply joined the channel
#
spencerpresley
created /We_7-Keto_DHEA_have_some_exciting_new_designs_coming_soon_to_the_STAYDENCH_online_store (+4687) "New page: [[Image:7-Keto_DHEA_1430.jpg|thumb|]] sisisiiiii! Ayúdame con un RT para QueCanteLaVida =) Professional Footballers Association of Indonesia - Meeting: The Press Conference PesepakbolaBe..."
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:SpencerPresley]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
twisted` - how's the markup going?
#
twisted`
tantek: I completely implemented microformat
#
twisted`
but Google didn't recognise the price or something
#
twisted`
so reverted to the working schema.org/product which worked
#
tantek
hmm - did you put it in <span class="price">$100</span> or something?
#
twisted`
<span class="price">800</span>
#
twisted`
cause if I included the € in it it complained about illegal chars
#
twisted`
it did find it, just didn't do anything with it
#
tantek
wow that's very odd - sounds like a bug with rich snippets handling
#
tantek
because if it's finding it, it should do something with it!