#social 2015-10-21
2015-10-21 UTC
# cwebber2 jasnell: https://github.com/w3c-social/activipy/blob/master/activipy/tests/test_core.py#L72 btw might be useful to get your ack on if this ineheritance test looks like it's doing the right thing
# cwebber2 https://github.com/w3c-social/activipy/blob/master/activipy/core.py#L89 not the most efficient implementation, but it only runs once on type definition... it does a deep traversal of all parents, puts it in a list, then de-dupes... but the *last* instance of a class type is the one that's kept
jasnell and ShaneHudson joined the channel
# JonathanC hi
# JonathanC Still looking for one more W3C member to join us on DataSheets - https://www.w3.org/community/groups/proposed/
# elf-pavlik ben_thatmustbeme, kevinmarks does Microformat JSON defines a media type (eg. 'application/mf+json') or profile ? If I would like to support it on server I implement I would need a way for clients to explicitly request it
# elf-pavlik I can at least tell difference between 'application/activity+json' and 'application/ld+json'
# elf-pavlik and gracefully degrade to support requests for 'application/activity+json'
# elf-pavlik I would also include in response link relation *alternate* to ease discovery of other media types which I can use to describe requested resource
# elf-pavlik s/can use/offer/
# elf-pavlik I also stay open to support Microformats HTML by doing 303 redirect to dedicated rendering proxy which will get JSON-LD data from API and inject it into HTML template
# elf-pavlik this way I don't need to add any microformats html specific stuff to server responsible for data
# elf-pavlik I can use regex /microformats.org/ on profile string for 'text/html' requests
# elf-pavlik IMO this will follow loose coupling we discussed yesterday on example of HTML, CSS, SVG
# ben_thatmustbeme elf-pavlik: no it doesn't as you never request mf-json from the server, you grab the html and parse
# ben_thatmustbeme though aaronpk and I are looking at alternatives to that
# ben_thatmustbeme it would likely require a link relation as that would support even static sites (link points to an external service which can do the translation for you)
# elf-pavlik how does 'application/mf+json' sound to you?
# elf-pavlik < link rel="alternative" type"application/mf+json" href="https://api.bob.example" >
# elf-pavlik s/alternative/alternate/
# ben_thatmustbeme i guess thats fine, i mean, honestly the application type doesn't matter to me so long as its standard
# elf-pavlik and one can distinguish it from others + know that it uses structure described on microformats.org
# elf-pavlik which some people may consider the most obvious center of he web but not everyone ;)
# elf-pavlik < link rel="alternate" type="application/mf+json" href="http://pin13.net/mf2/?url=https://ben.thatmustbe.me/" >
# elf-pavlik if someone makes mf html -> application/as+json converter you could also add onother link to it
# elf-pavlik this way client who knows media type but doesn't know how to convert between representations can discover the one it looks for
# elf-pavlik < link rel="alternate" type="application/activity+json" href="http://activitystrea.ms/mf2/?url=https://ben.thatmustbe.me/" >
# elf-pavlik just to show that 'just' application/json will not do since we have a lot of json based standards
# elf-pavlik i could write something that would support
# elf-pavlik < link rel="alternate" type="application/ld+json" href="http://mf2.json-ld.org/?url=https://ben.thatmustbe.me/" >
# ben_thatmustbeme elf-pavlik: i think it would be better with something that is easy to go for as -> json and mf-json -> json
# ben_thatmustbeme so we would only need a single rel for everyone
# elf-pavlik json what?
# elf-pavlik application/activity+json
# elf-pavlik i understand with application/json with additional implicit knowledge
# elf-pavlik similar application/ld+json
# elf-pavlik and whatever microformats.org normated usage of json might want to use
# elf-pavlik unless i find *all* i need to understand microfomats json on http://json.org/
# elf-pavlik acutally application/ld+json specifies 3 profiles which can give you *the same data* just in slightly different forms
# elf-pavlik some more JSON flavours http://dracoblue.net/dev/overview-of-json-hypermedia-link-formats/
# elf-pavlik i can rename "properties" to attributes and remove arrays wrapping single elemens - and we still have valid plain JSON
# elf-pavlik but not compliant Microformats JSON
# elf-pavlik I can also parse Microformats HTML and re-serialize it to valid JSON, but application/ld+json http://www.w3.org/TR/json-ld/#microformats
# elf-pavlik based on all above, if we want to consider requesting and responding with Microformats JSON, it needs either media type like application/mf+json or at least profile, but I don't know if html link supports it for rel="alternate"
# elf-pavlik it meaning profile
Loqi joined the channel
# elf-pavlik i used wrong url, i looked at https://github.com/glennjones/microformat-shiv#output
# elf-pavlik " i can rename "properties" to attributes and remove arrays wrapping single elemens - and we still have valid plain JSON, but not compliant Microformats JSON"
jasnell joined the channel
# cwebber2 idly posts http://dustycloud.org/blog/hitchhikers-guide-to-data-formats/ this morning
# ben_thatmustbeme elf-pavlik: how about actually creating the format before wasting time arguing what to label it
# elf-pavlik ben_thatmustbeme, I hought Microformats has stable JSON format
# ben_thatmustbeme microformats has a stable json format
# ben_thatmustbeme i'm told others don't like it
# ben_thatmustbeme we are working on simpler version
# elf-pavlik RDF has stable JSON format (application/ld+json) AS2.0 aims at stable JSON format (application/activity+json) and Microformats has stable JSON format (application/???+json)
# ben_thatmustbeme Microformats has stable JSON format (application/???+json) hasn't had a label thus far because no one passes it around directly yet, everyone polls from HTML and parses directly to native language
# elf-pavlik do you plan requesting it directly over HTTP and responding with it?
# elf-pavlik aaronpk, have you seen in a log few examles of rel="alternate" links i wrote?
# ben_thatmustbeme we are planning do do a seperate rel like you said with < link rel="alternate" type="application/somethingelse+json" href="http://pin13.net/mf2/?url=https://ben.thatmustbe.me/" > but with a different content version
# ben_thatmustbeme so with this new simplified format
# elf-pavlik why not rel="alternate" if it will describe the same entity just using different media type
# elf-pavlik this would provide same way to discover application/ld+json , application/activity+json and whatever people want to use to describe their data
# elf-pavlik does any other link relation implies that resource denoted in href="" will have a particular media type?
# elf-pavlik will need to leave in 15min
# elf-pavlik looks like HTML5 may imply text/css for rel="stylesheet"
# elf-pavlik "The default type for resources given by the stylesheet keyword is text/css"
# elf-pavlik but that looks like exceptional use of link relations :D
# elf-pavlik ping sandro ^
# ben_thatmustbeme thats what i said, rel=alternate.... it line wrapped
# elf-pavlik 'separate rel' i understood as registering different type of link relation rather than using rel="alternate"
jasnell joined the channel
# elf-pavlik SGTM! < link rel="alternate" type="application/somethingelse+json" href="http://pin13.net/mf2/?url=https://ben.thatmustbe.me/" >
nicolagreco joined the channel
# elf-pavlik thanks ben_thatmustbeme for this update! i got to run now
tantek, peacekeeper1 and nicolagreco joined the channel
# Loqi @twitter :: Coming soon! We're rolling out the ability for everyone to create polls on Twitter: https://blog.twitter.com/2015/introducing-twitter-polls https://twitter.com/twitter/status/656832713781936128/video/1
# cwebber2 https://github.com/jasnell/w3c-socialwg-activitystreams/issues/216#issuecomment-149979256 commented on the ticket
nicolagreco_, peacekeeper, tilgovi, nicolagreco, bblfish, raucao, tilgovi_ and jasnell joined the channel
# Loqi Tantekelik made 1 edit to [[Socialwg/2015-12-01]] https://www.w3.org/wiki/index.php?diff=86094&oldid=86068