#microformats 2012-12-01

2012-12-01 UTC
zztr, polvo, robmorrissey and tantek joined the channel
#
hestan20
created /Long-term_Depression_Can_Be_Successfully_Cared_for_With_Professional_Therapy (+3489) "View a viewpoint on depression and the significance of therapy."
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Hestan20]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
lzysett31
created /No-Fuss_electronic_cigs_Plans_-_Uncovered_Insights (+3144) "The PowerMatic 2 Electric Cigarette Machine Might Be A Terrific Option For People Who Smoke And Want To Save Cash"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Lzysett31]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
tobyink joined the channel
#
zaleilich22
created /No_Credit_Check_Loans_Online_Revealed:_Things_to_Know (+3463) "A advance loan payday loan may be applied for on-line, plus many instances it is possible to have the funds placed inside your account on the very same day you have applied. The loan-seekers can avail the borrowed funds amount within one day after th"
(view diff)
#
leolanameeuytstcollison
created /iPhone_Jailbreaking_and_Unlocking310077 (+2497) "New page: The running system of Apple iPhone [http://www.iphone5phone.com/ www.iphone5phone.com] Unlock iPhone makes use of 2 interactive partitions to be precise the press partition and the partiti..."
(view diff)
teleject joined the channel
#
frhovenga15
created /Cash_Loans_Information_and_Facts_You_Have_to_Know (+3173) "Nonetheless, the use on this instant cash solution will not necessarily mean that you are able to apply with just about any of the payday loan lenders that provide their services online. com to obtain immediate support and expected money from the ne"
(view diff)
nonge joined the channel
#
tantek
edited /Special:Log/block () "blocked [[User:Zaleilich22]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:LeolanameeuytstCollison]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Frhovenga15]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
romainneutron, rjmt___, tantek and gjones joined the channel
#
tantek
greetings gjones
#
tantek
I'm not sure I understand this thread: https://github.com/microformats/tests/issues/1
#
tantek
the intent of microformats2 parsing as to always produce strings for each property
#
gjones
Thats what I thought, a lot of the v1 parsers validated properties based on a pre knowledge of data type. That's no longer the case as v2 are generic parsers
#
tantek
right
#
tantek
also - there's not a precise mapping to language-specific data types anyway
#
tantek
e.g. time element, microformats2 allow for more coarse time values, e.g. year, month, month and day (but no year)
#
tantek
which are representable using ISO8601 strings, but not in native datetime structures
#
tantek
e.g. I don't think it is possible to represent those with PHP DateTime objects for example
#
tantek
so if we have a test like: <span class="h-card"><span class="p-name">Alice Brown</span>, birthday: <time class="dt-bday" datetime="--12-31">31 December</time></span>, then all we can test for are matching canonical ISO8601 strings - not any kind of PHP or JS datetime object.
#
gjones
Data and structure validation may still be interesting to help users test their mark-up (ufLint), but its no longer core to the parsers. 
#
tantek
yes - exactly
#
tantek
useful for validators / validation services
#
tantek
which can be built on top of parsers
#
tantek
validators can test all kinds of other things too
#
tantek
vocabulary specific things
#
tantek
e.g. making sure that any dt-end is *after* a dt-start
#
gjones
So in a PHP or C# parser we may have two representations native in strongly types structures and JSON which is just string and is common across all parsers and which we build the test on
#
tantek
there's no native strongly typed representation of "--12-31" in PHP or C#
#
tantek
that's what I'm trying to explain - what microformats (and HTML5) considers date and time is a *superset* of what strongly typed native language structures do.
#
tantek
and thus exceed what native strongly typed representations can do
#
tantek
thus you can't depend on native strongly typed representations
#
gjones
If I rebuilt ufxtract .net developers would want native object structures for data, if they interfaced with it directly. I built ISODate class Geo Class etc so they had less work to do.
#
tantek
ah ok - *new* native classes then, not built-in.
#
tantek
ok, cool. as long as these are utilities classes I think that works great
#
gjones
Maybe I should make a second library that took the JSON and converted into more usable native objects. Keep it away from the parser
#
tantek
right
#
tantek
that would make more sense - keep the parser simpler, more minimal
#
tantek
we should specify things like whitespace normalization, but not much more.
#
Loqi
I agree
#
tantek
thanks Loqi
#
Loqi
you're welcome
#
tantek
(???)
#
tantek
nothing strongly typed - with the exception of the datetime parsing needed to make the value class pattern work
#
gjones
This is approach make a lot sense to me. Just wanted to make sure before I went to far I think it will mean some changes for Barnaby
#
gjones
Also I think that means I can drop the asserts from the test.
#
gjones
Ok second point do we need to use *-x-* i.e. p-x-result on experimental properties if its already on the root i.e. h-x-test-fixture
#
gjones
*-x-* on lots of properties can be visual very heavy to read example in https://github.com/microformats/tests/blob/master/h-card.html
#
tommorris
gjones: in the project I'm working on, I'm sticking a p-x-type on hCards. Basically, it's a simple text description of the type of place something is, like "government building", "library", "Buddhist temple", "gay bar", "bank" etc.
#
tantek
tommorris - "type" is a horrible name for anything ;)
#
tantek
overloaded to the point of meaninglessness
#
tantek
gjones - a root class name does not scope the properties used within
#
tommorris
yeah. tell me about it. especially if you happpen to be using a statically typed programming language. ;-)
#
tantek
all properties mean the same thing across all microformats
#
tantek
a p-name inside an h-card means the same thing as a p-name inside an h-event
#
tommorris
might switch it to p-x-venue-type or something like that
#
tantek
so you can't "just use it on the root"
#
tommorris
or p-x-venue-description
#
tantek
venue-category even
#
tantek
since what it sounds like you're talking about is a taxonomy of venues
#
tantek
and 'category' typically implies explicit taxonomy (perhaps by the author)
#
tommorris
yeah, and I may be able to match those up with some well-known external vocabulary like Wikipedia ;-)
#
tantek
in contrast to folksonomic 'tags'
#
tantek
e.g. Foursquare calls them "categories"
#
tantek
from their explicit hierarchical taxonomy:
#
tantek
Categories
#
tantek
Categories help describe what type of place this is
#
tantek
+ Coffee Shop
#
tantek
primary category
#
tantek
+ Bakery
#
tantek
set as primary
#
tantek
+ Donut Shop
#
tantek
set as primary
#
tantek
and then in addition to that, they *also* have tags - for users to contribute any string labels they want
#
tantek
Use tags to let people know what they can expect here:
#
tantek
+ good_mark
#
tantek
+ espresso
#
tantek
+ mopeds
#
tantek
+ donuts
#
tantek
+ smug
#
tantek
+ cute boy baristas
#
gjones
OK, I can see the bigger picture for always using the *-x-* on experimental properties.
#
tantek
etc....
#
tantek
gjones, because property names are unscoped
#
tantek
but if you can re-use existing property names from other microformats, that's even better
#
gjones
Its going to be interesting to see how many people start adding them to h-card etc - reinvent the wheel could be an issue
#
gjones
I will put a pointer in the github issue thread to this
#
gjones
I am sure there will be more questions along the way, I will try bring them up here
#
tantek
thanks gjones
#
tantek
if it's possible to simplify the questions to like 1-2 sentences each at most, we can add them to a microformats2-parser-faq
#
tantek
the thread on github was too essay-like to follow what was really going on - what were statements vs. questions formed as statements
#
tantek
hence I needed to ask in IRC with short statements back/forth
#
tantek
anyway maybe I was the only one confused by the github thread. tweet-like brief self-contained specific questions are easier to answer.
#
tantek
thanks
#
gjones
Will try and keep that in mind, the github was a bit to much of mind dump, but helped me frame some of design issues for uf2 parsing. Short questions from now on :)
#
tantek
awesome - feel free to use for minddumps too - they're just harder to follow-up on
#
tantek
sometimes a minddump can help with formulating a simpler question
#
tantek
it's actually why I prefer wikis to threads like that
#
tantek
wiki minddumps can be edited, iterated until they're more and more readable
#
tantek
whereas threads (whether email, forum, or github issues) are designed to preserve minddumps are primary content rather than just historical reference.
#
tantek
ok, thanks for clarifying the questions gjones
#
tantek
I hope we covered enough to answer the questions from that github issue thread.
#
tantek
I'm going to head to bed unless there's anything else for now.
#
doloresxkiubfgidjflaharty
created /Recommendations_In_Buying_Cialis_Online7871748 (+3216) "New page: Within the health care industry, the word they generally utilize is Tadalafil. Yet, in stores, it is commonly referred to as Cialis which is the drug of preference for erectile dysfunction..."
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:DoloresxkiubfgidjFlaharty]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
gjones_, tobyink and romainneutron joined the channel
#
ebruesgin
edited /hrecipe (+120) "/* Examples in the wild */"
(view diff)
manu1 and polvo joined the channel
romainneutron joined the channel
#
bernardoxlrdsklppfdoughman
created /Cialis_Versus_Viagra4000303 (+8169) "New page: Generally, whatever we understand if we first learn about Cialis is the fact this is actually the first true competition of Viagra mainly because it fights against penile erection disfunct..."
(view diff)
Loqi joined the channel
#
tantek
deleted /Cialis_Versus_Viagra4000303 "content was spam"
#
tantek
edited /hrecipe (-120) "yemektarifinet is a recipe but lacks hRecipe markup. please add it! Undo revision 49085 by [[Special:Contributions/Ebruesgin|Ebruesgin]] ([[User talk:Ebruesgin|Talk]])"
(view diff)
KevinMarks and romainneutron joined the channel
#
tommorris
edited /geo-examples-in-wild (+257) "so, there's this little website called OpenStreetMap that has 1.7 billion geo microformats. pretty cool."
(view diff)
#
nhidbf199
created /User:nhidbf199 (+3614) "Meg tells me you are wanting a room"
(view diff)
rjmt___ and tantek joined the channel
#
tantek
whoa that's awesome Tom Morris, just saw your wiki edit
#
tantek
edited /Special:Log/block () "blocked [[User:Nhidbf199]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
deleted /User:nhidbf199 "content was spam"
#
tantek
1.7 billion nodes with geo?!?
#
tantek
you'll have to let me know how many named venues you find
#
tantek
in looking at http://www.openstreetmap.org/browse/node/1789070056 - it looks like the "designation" comma delimited list could be marked "category" for each item, and shop could be a "category" as well