Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comparing mp-* actions to AS2.0 equivalents #4

Closed
elf-pavlik opened this issue May 3, 2015 · 3 comments
Closed

comparing mp-* actions to AS2.0 equivalents #4

elf-pavlik opened this issue May 3, 2015 · 3 comments

Comments

@elf-pavlik
Copy link
Member

Background

While currently AS2.0 mixes Human activities with API operations (w3c-social/social-vocab#12) we can still compare syntax proposed by Micropub to one proposed by AS2.0 @jasnell

Examples

mp-url=http://example.com/post/1
mp-action=delete
{
  "@context": "http://www.w3.org/ns/activitystreams",
  "@type": "Delete",
  "@id": "http://example.com/api-calls/4b4d85bd-962e-47d0-9a53-4483e9818a78",
  "object": "http://example.com/post/1"
}
 mp-url=http://example.com/post/1
 mp-action=undelete
{
  "@context": "http://www.w3.org/ns/activitystreams",
  "@type": "Undo",
  "object": "http://example.com/api-calls/4b4d85bd-962e-47d0-9a53-4483e9818a78"
}

or we could define custom Undelete and don't assign @id to delete operation

{
  "@context": "http://www.w3.org/ns/activitystreams",
  "@type": "Delete",
  "object": "http://example.com/post/1"
}
{
  "@context": "http://www.w3.org/ns/activitystreams",
  "@type": "Undelete",
  "object": "http://example.com/post/1"
}

we could also use media-type or profile to imply @context

{
  "object": "http://example.com/post/1",
  "type": "Delete"
}

which looks almost identical to

mp-url=http://example.com/post/1
mp-action=delete
@aaronpk
Copy link
Member

aaronpk commented May 3, 2015

Interesting, but I'm not entirely clear what the question/suggestion is?

@elf-pavlik
Copy link
Member Author

If AS2.0 becomes TR to reuse it instead of trying to specify second not compatible approach. If needed and one can have automated conversion from AS2.0 verbs to micropub verbs, then we should specify it clearly. IMO we can't deliver in Social WG two misaligned specs!

@aaronpk
Copy link
Member

aaronpk commented Feb 23, 2016

In Activity Streams, the "Delete" activity is used to indicate an activity was deleted. In ActivityPub, a DELETE HTTP verb is used to actually perform the deletion. Since Activity Streams is meant to be a description of things that have happened, rather than actions to take, it doesn't make sense to try to re-use the vocabulary of it for the delete action of Micropub. This would be a better suggestion for publishing a Microformats feed of actions that were taken on a Micropub endpoint, for example listing all the delete actions that have happened.

@aaronpk aaronpk closed this as completed Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants