granary icon indicating copy to clipboard operation
granary copied to clipboard

Consider treating mf2 "category" URLs as AS objectType "person"

Open karadaisy opened this issue 10 years ago • 5 comments

Per conversation in IRC http://indiewebcamp.com/irc/2015-11-17/line/1447795539069

We should consider microformats2 simple "u-category" properties as person tags if they look like a URL.

That means mf2:

{ 
  "properties": { "category": ["http://tantek.com"] 
}

would translate to activitystreams as:

{
  "tags": [{ "objectType": "person", "url": "http://tantek.com"}]
}

Rationale: normal tags are textual, e.g. "books", rather than URLs. URLs can be people, locations, organizations, etc. Person is a reasonable fallback assumption if not otherwise specified, since that is the biggest use case for tagging with a URL, and also is nice feelgood human-centric indiewebiness

karadaisy avatar Nov 17 '15 21:11 karadaisy

👍

tantek avatar Nov 17 '15 21:11 tantek

the use case is to not require h-card on person tags for bridgy publish, right? the alternative would be to put this "assume person tag by default" logic in bridgy instead, and keep granary's existing conservative translation.

snarfed avatar Nov 17 '15 22:11 snarfed

Right!

If "assume category url is a person" is a good general rule for interpreting mf2, then I think it should go in Granary.

If it's an experimental addition to see if it's something that we may adopt in practice in the future (and a useful interpretation for publishing person-tags since that's what we're excited about this week) that argues for Bridgy.

karadaisy avatar Nov 17 '15 23:11 karadaisy

yup. i vote the latter. default use case, yes. default schema mapping, maybe not.

also fwiw, the logic in bridgy publish would be looser: it technically wouldn't assume they're people, just that they have silo accounts. includes pages, orgs, etc.

snarfed avatar Nov 17 '15 23:11 snarfed

That makes sense to me. For Granary then, we just need to add support for simple text tags (right now they are skipped when processing "category")

karadaisy avatar Nov 18 '15 15:11 karadaisy