#microformats 2022-05-24

2022-05-24 UTC
jacky joined the channel
#
[KevinMarks]
Didn't Hadley work on dataset description stuff like that?
#
@AdrianneMachina
Structured data formats are rules that standardize the structure and content of a webpage. Google is asking all of us to surface structured data to their crawlers by marking up our HTML with RDFa and Microformats. https://lttr.ai/xM0n
(twitter.com/_/status/1528900407824683008)
jacky joined the channel
#
[tantek]
someone is reposting some very old copy/pasta I have a feeling
jacky and angelo joined the channel
#
[fluffy]
Smells like SEO spam yeah
jacky, ben_thatmustbeme, hpfr, sebbu, Seirdy, gRegor, NewNewNew, ur5us, [jamesg483] and angelo joined the channel; gRegor left the channel
#
petermolnar
I have a strange question: could, with the current tools, an XML file be parsed up with microformats? Trouble is, OPML files contain elements like <outline> and while I could add class= and even href= to them, I fear that because the are not <a> they won't be seen as such.
#
jacky
petermolnar: that's the blocker
#
jacky
there _could_ be a case to have a MF2 extension that picks up some expected elements but I don't know what XML vocabular you'd want to restrict it to
#
jacky
(or use, for that matter)
#
petermolnar
one doesn't simply restrict a tool to one vocabulary :P :)
#
petermolnar
is now tempted to write "Semantic Indieweb: an RDF vocabulary"
#
jacky
lol just don't start RDF and a, someone else will appear ;0
#
petermolnar
out of curiosity, is there a reason behind "u-*" should only be on <a>? Theoretically the logic should be if the class is set to "u-*" and the element has "href".
#
petermolnar
s/should/could/
jacky joined the channel
#
aaronpk
What attribute would it pull from for other elements?
#
aaronpk
u- already has special rules for grabbing different attributes depending on the element and it seems weird to default to always href when the href attribute doesn't exist on many elements
jacky joined the channel
#
sknebel
petermolnar: people have done h-feeds in atom-feeds I think
#
sknebel
but it didnt work in all parsers
#
sknebel
I think some checked ocntent-type when fetching or something like that
#
petermolnar
sknebel: I was wondering if I can mark up my OPML so it passes as a valid h-feed of u-bookmarks :)
#
sknebel
I guess you might need to put a lot of attributes into their own elements instead
#
sknebel
if OPML allows that
#
sknebel
i.e. <thing><href class="u-url">https://...</href></thing> works
[Zandy_Ring] and jacky joined the channel
#
[KevinMarks]
OPML wants everything as attributes, not contained content
#
sknebel
I always am unsure how flexible XML things are with that or not
nixer joined the channel
#
petermolnar
assume rigid as obsidian
[echo] joined the channel
#
[KevinMarks]
XML tends to validate against a DTD and reject things that don't fit, unless you write a forgiving parser (like Universal Feedparser).
strugee, jacky, ben_thatmustbeme, scojjac and gRegor joined the channel
#
gRegor
There was some discussion about mf2 from XML in an indiewebify.me issue: https://github.com/indieweb/indiewebify-me/issues/78
#
Loqi
[mro] #78 false negative testing https://try.gogs.io/issue-5008
#
gRegor
And some linked issues there
[tw2113_Slack_] and jacky joined the channel
#
[tantek]
or you could use XOXO instead of OPML and convert as necessary for backcompat
#
@interstar
↩️ Interesting. As I have your attention, can I check if I understand what it is, exactly? A convention for representing certain data blocks + an API (canonical address to render them?) How does it differ from, say, oEmbed? Microformats?
(twitter.com/_/status/1529212485907238912)
#
[tantek]
or say, semantic HTML to start with?
#
@nimimikivuti
↩️ Microdata is an attempt to provide a simpler way of annotating HTML elements with machine-readable tags than the similar approaches of using RDFa and classic microformats. #webdevelopment
(twitter.com/_/status/1529214401915387906)
ur5us joined the channel
#
[tantek]
more copy/pasta, that's at least 10 years old text
#
[tantek]
ah, nm, it's copy/paste of the last sentence of the first paragraph of https://en.wikipedia.org/wiki/Microdata_(HTML)
#
[tantek]
(which is yes, very old)
jacky joined the channel