https://bugzilla.wikimedia.org/show_bug.cgi?id=46440

--- Comment #32 from Matthew Flaschen <mflasc...@wikimedia.org> ---
Richa Jain has been accepted for Google Summer of Code for this project.  She
is currently investigating OKFN and the store plugin.  The below are some
thoughts as a starting point:

OKFN provides documentation on writing a plugin for storing annotations
(https://github.com/okfn/annotator/wiki/Store-Plugin)?  The most
straightforward approach seems to be implementing that as a MW extension.

https://github.com/okfn/annotator-store is an example of how one store works,
though of course the MW extension example will be different.

One issue is that the API is RESTful.  It lets you set a custom prefix, but the
syntax is a little different than MW normally uses.  

One way to do this is to make a normal MW-style API subclass (like
https://www.mediawiki.org/wiki/API:Extensions#Creating_API_modules_in_extensions),
then hook into the URL routing code to translate the OKFN-style RESTful URLs to
calls to the API.

Someone may have made a RESTful wrapper of a MW API, or have advice on doing
so.  It's probably also worth looking at the hooks
(https://www.mediawiki.org/wiki/Manual:Hooks)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to