- From: ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>
- Date: Thu, 30 Oct 2014 16:01:36 +0100
- To: public-socialweb@w3.org
On 10/30/2014 02:47 PM, ☮ elf Pavlik ☮ wrote: > Howdy, > > Following message from my reply on 'Photo' (sorry for hijacking attempt!) > > I created wiki page on github with example of how we could use > WebMention as Action Handler for object embedded in Activity Stream 2.0 :) > > I assume extended WebMention endpoint here (application/ld+json) but for > such *simple case* we could even use currently deployed ones > (application/x-www-url-form-encoded) with proper HtmlForm! I'll add > example later on... This should work with WebMention endpoints currently deployed https://github.com/w3c-social/hypermedia-api/wiki/SWAT0#conventional-webmention-endpoint (with nice syntax highlighting + you can edit!) { "@context": [ "http://asjsonld.mybluemix.net/", { "schema": "http://schema.org/", "tmp": "http://ns.tmp/#" } ], "@type": "schema:Photograph", "@id": "https://www.w3.org/wiki/File:20141028_180046.jpg", "potentialAction": { "@type": "schema:CommentAction", "using": { "@type": "HttpForm", "method": "POST", "mediaType": "application/x-www-url-form-encoded", "tmp:endPoint": "https://webmention.w3.org/", "parameter": [ { "name": "source", "required": "true", "valueType": "xsd:anyURI", "placeholder": "URL of the comment published by you" }, { "name": "target", "value": "https://www.w3.org/wiki/File:20141028_180046.jpg" } ] } } }
Received on Thursday, 30 October 2014 15:03:51 UTC