#microformats 2022-10-07

2022-10-07 UTC
jacky and aos joined the channel
#
@gatolabo
Googleのリッチリザルトテストさんmicroformatsのhentryタイプの構造化データを評価してくれなくなった?Json-LDのArticleは見てくれるけど。 MicrosoftのWebmaster ToolsさんはMicroformatsの検証が壊れてる? Schema\.orgのスキーマ マークアップ検証ツールさんはhentryも検証してくれる。
(twitter.com/_/status/1578198762929164288)
ur5us and ao3 joined the channel
#
angelo
we were thinking that recipes are more generally incrementally adapted than other remixable art forms like music.
#
[tantek]4
while that may be accurate, is it a useful distinction? or rather, is there some different behavior that one would expect from a recipe crawler finding an "adaptation" in addition to being a "remix"?
[jgarber], gRegorLove_, ur5us, [jeremycherfas], ilyag, barnaby, [snarfed], angelo_ and gRegorLove__ joined the channel; petermolnar left the channel
#
[jgarber]
So… “p-author” or “u-author”…?
#
[jgarber]
(I’m intentionally asking that vaguely. “It depends” is a suitable answer.)
#
sknebel
depends if it has a url or not
#
KartikPrabhu
[jgarber]: p-author if you want the text value, u-author for the URL value. If you want both or more use p-author h-card
#
[jgarber]
Is the “you” in that scenario you as the author of the page, the creator or user of a consumer of mf2 data, both…?
#
KartikPrabhu
consumer of the mf2 data
#
[jgarber]
I can see a case where I as the author would want to expose a URL as the “author” value of that was more useful for potential consumers.
#
KartikPrabhu
but you as author can decide what the output of the mf2 will be for consumption
#
[jgarber]
Yep, gotcha. Wanted to confirm that’s what you were saying. 👍
#
KartikPrabhu
[jgarber]: author can also use u-author h-card
#
barnaby
*-author properties are usually used to nest an h-card anyway
#
[jgarber]
yep yep, okay cool. This is confirming how I was thinking about the distinction between the two.
#
[jgarber]
Do y’all have any links to pages using one, the other, or both?
#
KartikPrabhu
[jgarber]: I would suggest testing a simpler markup in the existing parsers and see how they differ. Best way to see what's going on IMO
#
KartikPrabhu
that's how I learnt anyway
#
barnaby
when you nest an h-card under an *-author property, all which changes is the value of the 'value' key of the nested microformat (text if p-author, url if u-author)
#
barnaby
in practise I think most consumers which find a nested author h-card will end up using properties from the nested author and ignore the 'value' key
#
barnaby
I’m not sure if there’s a recommendation or consensus on whether to provide a URL or plain text name on an author property without an h-card under it, but I imagine that most consumers would assume that it’s a plaintext value
#
KartikPrabhu
barnaby: would be nice to have consensus on some "simplest" default recommendation
#
KartikPrabhu
of course people will be free too not use the "defualt"
#
[jgarber]
Thanks for the links, KartikPrabhu!
#
[jgarber]
barnaby: I was scanning the authorship spec as I was looking for any references to using u-author. 👍
#
[jgarber]
A consumer _could_ first check the “value” and if it quacks like a URL (regexp omg) then use it? Supposing it depends on the consumer’s use.
#
KartikPrabhu
yes that will be up to the consumer
#
[jgarber]
Or, check for a nested h-card and use those properties. If no h-card, look at “value” and if it’s a URL, parse _that_ page for additional data. Otherwise you’ve likely got a name.
#
barnaby
yeah according to the authorship spec, nesting is best, followed by providing a URL, followed by providing a plaintext name
#
[jgarber]
Hah, there it is. I accidentally reiterated the spec to everyone. :melting_face:
#
[jgarber]
Now that we’ve talked about it some (and sincerely thank you all!), here’s the use case:
#
[jgarber]
I’m authoring an h-x-app and would like to expose an author (a property not yet accounted for by any of the examples on the wiki, I don’t think). My first thought was p-author with a nested h-card, but then I remembered seeing some references to u-author.
#
[jgarber]
Thus the question.
#
[jgarber]
From a consumer side, the authorship spec approach would cover reliably ascertaining a URL if one is available.
#
[jgarber]
I started thinking about the above after looking through the IndieAuth consent screen examples and looking at GitHub’s consent screen (which includes a link to the author of the application you’re granting permissions to).
#
barnaby
oh that’s a cool idea
#
barnaby
I’d definitely go with nested p-author h-card
#
barnaby
and definitely add it as an example to https://indieweb.org/consent_screen
#
[jgarber]
I’ll try and add those later tonight!
#
[jgarber]
From an authoring aide, I updated https://micromicro.cc last night to use “p-author h-card.”
#
Loqi
micromicro.cc
#
[jgarber]
Some real ouroboros action with that search URL. 🐍
#
gRegor
Recommend using "h-app", or at least adding that to the classes. Also add/update examples on https://microformats.org/wiki/app-examples
#
[jgarber]
> Recommend using "h-app", or at least adding that to the classes.
#
[jgarber]
Last I looked at it, the app format was experimental so the h-x- prefix is/was “correct.” Has any of that changed? Is it good practice to use both root class names for experimental formats?
#
[jgarber]
My apps are already listed there. 👍
#
gRegor
Opinion is mixed on -x in the community. I lean towards a vendor prefix being good (like -p3k) but -x tends to stick around and become default. There's an RFC about -x https://www.rfc-editor.org/rfc/rfc6648
#
gRegor
In practice, at least a couple IndieAuth Server apps that consume handle both h-x-app and h-app
#
gRegor
I suppose in either case consumers are going to need to update how they handle it at some point, if either h-app becomes a stable spec, or if it gets replaced with something else
#
gRegor
Oh cool. We should add the author properties you're using in that example
#
gRegor
Kind of related, this discussion for the IndieAuth spec: https://github.com/indieweb/indieauth/issues/23
#
Loqi
[Zegnat] #23 Client Information Discovery without relying on microformats parsers.
#
[jgarber]
> Oh cool. We should add the author properties you're using in that example
#
[jgarber]
This is on my evening’s to-do list. 😄
#
[jgarber]
gRegor Thanks for the link to that spec issue!
#
barnaby
I wonder a bit if “author” is the best term for this role
#
barnaby
vs, e.g. “developer”
#
[jgarber]
In my case specifically, I wanted to reuse existing nomenclature.
#
barnaby
but IMO it’s fine to use author, and the consistency is good
#
[jgarber]
…and author makes the most sense. I “wrote” the software.
#
barnaby
re h-app vs h-x-app, the indieauth spec requires h-app https://indieauth.spec.indieweb.org/#application-information
#
barnaby
although the “spec” it links to just links to /h-app, which mostly talks about using h-x-app
#
barnaby
so that’s a bit confusing
#
barnaby
either way, I should update taproot/indieauth to look for h-x-app in addition to h-app
#
barnaby
[jgarber]: also worth documenting use of author on https://indieweb.org/h-x-app#Properties
gRegorLove_ and gRegorLove__ joined the channel
#
jgarber
edited /app-examples (+9) "/* micromicro.cc */ Add author to list of properties"
(view diff)
#
[jgarber]
Updated both of these pages, adding `p-author` usage:
angelo and ur5us joined the channel
#
jgarber
edited /app-examples (+9) "/* rel-me.cc */ Add author to list of properties"
(view diff)
#
jgarber
edited /app-examples (+9) "/* indieweb-endpoints.cc */ Add author to list of properties"
(view diff)
#
[jgarber]
☝ My collection of single-purpose web-things all now publish an `author` property within an `h-x-app`.
#
[jgarber]
Not a one of them is IndieAuth-related, so there’s a few small examples outside of what I think is the primary use case (IndieAuth server consumption).
#
[jgarber]
I could imagine a “gallery” website that tracks URLs publishing `h-app` / `h-x-app` that periodically crawls and parses those URLs for mf2 data.
#
[jgarber]
…submissions via Webmention, okay this is more appropriate for #indieweb-dev and I don’t need to buy any more domains. :melting_face:
gRegor, ur5us, [timothy_chambe] and KartikPrabhu joined the channel