#microformats 2017-01-19

2017-01-19 UTC
gRegorLove, KartikPrabhu, KevinMarks, nitot, Loqi, tantek and bret joined the channel
nitot, adactio and pfefferle joined the channel
#
aaronpk
How do I know if an h-card represents a person or a venue?
#
pfefferle
aaronpk good question... my initial answer would be, to use h-adr... but the spec recommends to use h-card if it is a venue...
#
aaronpk
i thought i'd also heard something about venues/businesses would have a p-org property, but then I re-read it and p-org is also for "affiliated organization" so like where a person works
#
aaronpk
haha whoa, I just found http://microformats.org/category/this-week ! Never realized that was there when I set up https://indieweb.org/this-week
#
Loqi
awesome
#
pfefferle
but the mf one was done by hand
#
aaronpk
which is likely why it hasn't been updated in ... 7 years
#
pfefferle
perhaps we should rethink the h-adr and add the p-name to support venues
#
pfefferle
aaronpk do you ask because of an xray implementation?
#
aaronpk
it will likely affect xray, but right now i'm thinking about checkins
#
aaronpk
and storing my own venues
#
aaronpk
i'm not sure i like it, but if p-name == p-org then it's likely a venue and not a person
#
Loqi
[Tantek Çelik] h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat standards suitable for embedding data in HTML/H...
#
aaronpk
people can have locations too
adactio_ joined the channel
#
pfefferle
yes, but then it is no checkin ;)
#
aaronpk
no this is just about h-card, not h-entry
#
pfefferle
but thats how it is proposed in the wiki
#
pfefferle
if the p-location is also an embedded h-card, the entry is treated as a "checkin".
#
aaronpk
forget checkins
#
aaronpk
i'm just talking about h-card
#
aaronpk
given an h-card, how do I know it's a venue or a person?
#
pfefferle
if an hcard has a p-location it is a checkin, if it has a p-adr it is an address
#
aaronpk
h-cards aren't checkins evert
#
aaronpk
h-entry might be a checkin
#
pfefferle
wrong wording if it has a location it is temporary and if it has an address it is permanently
#
Zegnat
aaronpk, I think most vcard implementations go by the "no name fiels, filled organisation field" to mark a card as a venue
#
aaronpk
Zegnat: good point. that's what I do when I add businesses to my phone's address book
#
aaronpk
sadly there is not a "no name" option in microformats
adactio_ joined the channel
#
Zegnat
If implied name === p-organisation => venue ?
#
pfefferle
aaronpk do you want to know how it is used right now or how we could define it for the future
#
aaronpk
Zegnat: yeah that's the only thing i can think of right now
#
aaronpk
pfefferle: i store things as microformats objects on disk. i want to store venues along with storing people's h-cards in my nicknames cache. so i'm going to have a bunch of h-cards on disk, and then I want to show just a list of all my venues separately from people, so i need some way to distinguish them
#
pfefferle
aaronpk what about using p-label?
#
aaronpk
i don't see any notes about what p-label is for on http://microformats.org/wiki/h-card
#
Loqi
h-card
#
Loqi
hCard 1.0
#
pfefferle
or as kind of an activity: main h-card is your profile, with a p-location of the venue
#
Zegnat
Did they lift label straight out of vCard? Seems to be a property that expresses what has to be printed on a label for postage..?
#
aaronpk
that seems likely
#
sebsel
the act of labeling something sounds more like p-category
#
aaronpk
yeah i think it's what Zegnat said, not "category"
#
Loqi
activity streams
#
aaronpk
VCard has a "KIND" property: "Defines the type of entity that this vCard represents: 'application', 'individual, 'group', 'location' or 'organization'; 'x-*' values may be used for experimental purposes."
#
aaronpk
looks like that didn't make it over to hCard
#
aaronpk
despite hCard saying it's "using a 1:1 representation of vCard"
#
Zegnat
I see no reason why you shouldn't start using p-kind though
#
Zegnat
Seems well defined
#
Zegnat
I do wonder if vCard parsers make use of it? Or if the empty-name-filled-org combo is more prevelant
#
aaronpk
the other question is when do you really need to know the difference
#
aaronpk
my phone's address book doesn't distinguish between people and businesses, it just knows to show the org name if the first/last name are empty
#
aaronpk
in my case, I want to distinguish them in order to present a list of just venues when I create a checkin
#
pfefferle
but you can do that by seperating them by folders
#
aaronpk
i don't have folders, but that would be one way of doing it
#
aaronpk
an interesting benefit of ignoring the type difference and just using a "folder" is that i could theoretically put other kinds of things into that folder in order to "check in" to them, things that aren't necessarily places
#
Zegnat
I think my phone does distinguish. It shows a little building icon instead of a little person when I only fill the organisation name.
#
Zegnat
Though I don't think it will let me filter them, so for all intents they are equal
#
aaronpk
hah interesting
#
aaronpk
yeah i'm gonna see if i can make progress on checkins without distinguishing between people and venues
#
pfefferle
as you said, it makes it easier to use other objects too
#
pfefferle
and a checkin is not always on a venue... perhaps you want to check into my house on you next germany trip :)
#
aaronpk
this is getting into implementation details, but I have "channels" instead of "folders", so any post or h-card on my site can be in one or more channels. I guess i'm going to make a channel for "things I can check in to"
#
aaronpk
not sure what to call it tho, since they won't all necessarily be places
#
Zegnat
"been theres"?
adactio joined the channel
#
aaronpk
"ticcit" => "things i can check in to"
#
Zegnat
I might implement p-kind in my wip adress book system. Also makes the convertion to vCard easy.
nitot joined the channel
tantek, KevinMarks, adactio, gRegorLove, KartikPrabhu and KevinMarks_ joined the channel
KartikPrabhu joined the channel
#
@call_user_func
[New]pfefferle/wordpress-uf2-feed provides a Microformats2 JSON Feed for every WordPress URL. https://packagist.org/packages/pfefferle/wordpress-uf2-feed
(twitter.com/_/status/822217174185971712)