#microformats 2023-07-17
2023-07-17 UTC
angelo joined the channel
# [aciccarello] I saw a verge article with at least 3 different titles.
ur5us, milkii, btrem, vladimyr and [Jo] joined the channel
# [tantek] aciccarello, that sounds reasonable about only returning metaformats if there are no microformats (mf2 I'd say) on the page. I'm expecting that theoretically, there's some chance that invisible OGP *might* be more accurate than broken classic hentry (e.g. WordPress) on the page, though I do wonder if we should special-case WordPress for that.
# [aciccarello] Cool, I'll keep iterating on that and do testing on different sites to see when it makes sense to use the fallback.
gRegor, [jacky] and [pfefferle] joined the channel
# [pfefferle] exactly
# [pfefferle] and then it falls back to WordPress-API, Meta-Header (including OGP and twitter-cards) and finally JSON-LD: https://github.com/pfefferle/wordpress-webmention/blob/main/includes/class-handler.php#L22
# [pfefferle] we have some dublin core (eRDF) https://github.com/pfefferle/wordpress-webmention/blob/main/includes/Handler/class-meta.php#L83 but there is no real Microdata/RDFa parser implemented yet.
# [pfefferle] but could be easily added
# [pfefferle] oh, there is a lib by [jkphl] but it's quite complex https://github.com/jkphl/rdfa-lite-microdata
[schmarty] joined the channel
# [pfefferle] I think most site owners would use JSON-LD instead of microdata or rdfa if they implement http://schema.org
# [pfefferle] The bigger problem is sites without any data, like gackerndes for example
# [pfefferle] Hacker-News
# [pfefferle] 😂
cobypear, [pfefferle] and [jacky] joined the channel
# [aciccarello] I was wondering about JSONLD but I figured it would be a pain to parse. Pretty much everyone has some basic meta tags for social sharing.
# [aciccarello] I need to look at that WordPress code
aciccarello joined the channel
# aciccarello Just found http://microformats.org/wiki/link-preview-brainstorming which should probably be linked to metaformats
# [tantek] only 6-8 year gap between those pages and /metaformats lol
# aciccarello I see the wordpress code has special parsing for site_name. Is there any mf2 representation for that?
# aciccarello I see some thoughts on https://indieweb.org/Site_name but otherwise it doesn't look like it.
sebbu2 joined the channel