#microformats 2013-02-23

2013-02-23 UTC
polvo, KevinMarks, tantek and bnvk_ joined the channel
#
@mahemoff
@borismus Actually Gravatar does support profiles (hCard in HTML, JSON ,etc) but I don't know who uses it https://en.gravatar.com/site/implement/profiles/
#
@borismus
@mahemoff I think hcard has too much stuff. Gravatar works for images cuz its simple 1:1 - email:img. Maybe if they just had an email:bio?
#
@borismus
@bmann #microformats are too complex. hcard has like a bajillion fields: http://t.co/LPPMXLSXLa. Need email-to-bio. Var length fields.
bnvk joined the channel
#
o8q8oj91v
created /User:o8q8oj91v (+1666) "The taxi driver looted the body in 3 the knife empty-handed"
(view diff)
#
tommorris
deleted /User:o8q8oj91v "Vandalism"
#
tommorris
edited /Special:Log/block () "blocked [[User:O8q8oj91v]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
bnvk joined the channel
#
hh511alx4l
created /User:hh511alx4l (+3350) "New Arizona Criminal Records Online Helps A Lot"
(view diff)
#
tommorris
deleted /User:hh511alx4l "Vandalism"
#
tommorris
edited /Special:Log/block () "blocked [[User:Hh511alx4l]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
bnvk and fleishters joined the channel
#
fleishters
hi all
#
fleishters
beginning to implement microfmats and RDFa into my page, but am a bit confused:
#
fleishters
should i only implement microformats/RDFa on the main content, or should I use it on anything that machines might need further clarification for?
#
tommorris
depends on the microformat and/or RDFa. ;)
#
fleishters
(for example, even if my post isn't a review of Avatar, should I add microdata to the post to make it clear I'm speaking of Avatar the movie?)
#
fleishters
excuse me, not microdata.
#
tommorris
not sure what you mean by that. ;)
#
tommorris
if it isn't a review, then you probably shouldn't use hReview or equivalent
#
fleishters
I am more referring to RDFa with that example, where it defines something as an object and that object as a movie.
#
tommorris
so, with my RDFa hat on, I'd say there are ways to represent that
#
tommorris
like, each post is a Post. some subset of those are reviews
#
tommorris
the ones where it is just about a movie but isn't a review, you can use something like foaf:primaryTopic to represent that relation
#
fleishters
What if it's just a personal blog entry and there's some sentence like "Went to see Avatar."
#
tommorris
well, you could do something like <a href="http://en.wikipedia.org/wiki/Avatar_(movie)" property="foaf:primaryTopic" rel="tag">Avatar</a>.
#
tommorris
isn't sure primaryTopic is the correct property.
#
tommorris
yep, primaryTopic is the correct property for that
#
tommorris
relates a document to a thing.
#
tommorris
there's a stacking there of RDFa and microformats (rel-tag)
#
fleishters
Okay. Do you think something like that in the context of a personal blog entry is worthwhile?
#
tommorris
well, if you buy into the worth of RDFa, sure. whether it's worth doing is kind of up to you. ;)
#
tommorris
but then I'm an RDF nut and okay with that. I expect Tantek would quite probably disagree with me. :)
#
fleishters
I guess it's interesting when I want to do arbitrary queries like "How many times did I blog about a movie"
#
tommorris
thing with primaryTopic is that it "is functional: for any document it applies to, it can have at most one value"
#
tommorris
one can use foaf:topic as well
#
fleishters
Do you have a blog/site that you implement RDFa/microformats for?
#
tommorris
yep, my personal site
#
tommorris
I haven't necessarily done it as well as I could. ;)
#
fleishters
ooh this markup is intriguing
#
tommorris
it's a bit hacky. there's lots I need to work on.
#
tommorris
(cobbler's children never have good shoes.)
#
fleishters
what an appropriate and true expression
#
fleishters
thank you for your help, and your site is a great example for me, even if it's hacky. gotta be off now.
#
fleishters
have a great --- night? whatever it is in london.
eschnou joined the channel
#
newera12
created /User:newera12 (+1321) "Black Scale × Fool's Gold “Illegal” Snapbacks Hats"
(view diff)
#
tommorris
deleted /User:newera12 "Vandalism"
#
tommorris
edited /Special:Log/block () "blocked [[User:Newera12]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
tantek, eschnou, impomatic, barnabywalters, nonge, tobyink, bnvk, charl_, gjones and chiui joined the channel
#
tommorris
hey gjones - just downloading microformats-node to play with on the train back to London
#
tommorris
just want to do proof of concept on microformats2 hcite-to-bibtex.
#
gjones
Tell me how you get on, always good to get feedback
#
tommorris
downloaded it, ran `sudo npm link` and booted up the server, and run the legacy and current test suites, both of which pass
#
tommorris
my plan is to write some code (probably in Ruby or Python) that calls the microformats-node server with some documents containing hcite and then writing functions to convert them to bibtex
#
gjones
Is hcite is experimental format? is it document on the wiki?
#
tommorris
yeah, it's kinda experimental
#
tommorris
tantek is using it on his site
#
tommorris
and there is a proposal for adding it to wikipedia(!)
#
tommorris
writing the hcite-to-bibtex code atop microformats2 node parser is sort of an attempt to prove the concept
#
tommorris
and given I'm going to be spending the next 24 hours travelling, I figure I may as well have a crack at it. ;)
#
tommorris
(venice -> paris on overnight sleeper, then paris -> london on eurostar)
#
tommorris
anyway, the node daemon seems to be running and I have the source code from github. so, chocks away.
#
tommorris
if I get bored, I'll perhaps try and write a uf2 parser in Ruby.
#
gjones
if you are parsing microformats 2 i.e. h-cite should work out the box. If you want to parse microformats 1 version i.e. hcite you will need to create a new mapping file
#
tommorris
yeah, only going to bother with uf2
#
tommorris
also, I'll be interested to see how your parser copes with legacy-to-uf2
#
tommorris
mapping files.
#
tommorris
anyway, gotta shower and get ready to leave. thanks for the great work on making such a well-specced parser
#
gjones
Good luck and travels
#
tommorris
http://indiewebcamp.com/h-cite might be useful on the h-cite front
#
impomatic
will probably use h-cite
#
impomatic
Would <abbr class="dt-published" title="YYYY-MM-DD">......</abbr> work / be appropriate? Also what to put if the day and/or month is unknown?
#
josephine
created /User:Josephine (+255) "New page: There is nothing to tell about me really.<br>Enjoying to be a member of microformats.org.I love webdesign and programming css templates.<br><br>I just hope Im useful at all<br><br>my webpa..."
(view diff)
bnvk joined the channel
#
@alonzo4768
trying to get Google+ to verify my authorship is maddening. How do I fix hCard problems? #google+ #coding
tobyink joined the channel
#
ksikjnmbg
created /User:ksikjnmbg (+2790) "One-shoulder Ruffle Moving Chiffon"
(view diff)
bnvk and zztr joined the channel
#
kswbghklr
created /User:kswbghklr (+2902) "the better - or younger"
(view diff)
bnvk, Cat4D and tantek joined the channel
#
tantek
edited /Special:Log/block () "blocked [[User:Josephine]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Ksikjnmbg]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
adamovy joined the channel
#
tantek
edited /Special:Log/block () "blocked [[User:Kswbghklr]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
barnabywalters joined the channel
#
tantek
deleted /User:Josephine "content was spam - eager, but still obv spam"
#
tantek
deleted /User:ksikjnmbg "content was spam"
#
tantek
deleted /User:kswbghklr "content was spam"
#
impomatic
I want to mark up these citations (and a few hundred others), but h-cite doesn't seem suited to offline references http://twitcode.org/show/339/Sample-Citations
#
tantek
impomatic, though h-cite was designed primarily for online references, most of its properties work for offline references as well
#
tantek
e.g. the first example has an author, name (of work), publication, and published date
#
tantek
we learned it's pretty futile to try to model every single possible citation property (you just end up with an overdesigned mess), so it makes more sense to markup common items for now.
#
tantek
in fact, in the first item, the only thing left not marked up would be "4-5" - which doesn't even have any meaning out of context.
#
tantek
(it's not clear what 4-5 means)
#
impomatic
4-5 are the page numbers. Should the date be marked up <abbr class="dt-published" title="1987-03">Mar 1987</abbr> ?
#
tantek
close. <time> is better: <time class="dt-published" datetime="1987-03">Mar 1987</time>
#
tantek
what is the "1" before the date ?
#
tantek
for any extra properties btw, since this is microformats2, you can experiment with p-x-* properties
#
tantek
e.g. for the page numbers: <span class="p-x-page-numbers">4-5</span>
#
impomatic
The "1" before the date is the issue number. (it was a periodical)
bnvk joined the channel
#
tantek
impomatic, so similarly then for the "1", <span class="p-x-issue-number">1</span>
bnvk and bnvk_ joined the channel
#
tantek
p-x-* properties are handy that way
nonge_ and bnvk joined the channel