wmde/catgraph-jsonp

Name: catgraph-jsonp

Owner: Wikimedia Deutschland e.V.

Description: jsonp interface to catgraph

Created: 2015-04-22 19:01:11.0

Updated: 2016-11-16 06:14:42.0

Pushed: 2017-09-21 12:43:45.0

Homepage: null

Size: 27

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

catgraph-jsonp

This is a JSONP interface to Catgraph. It is used by the DeepCat Gadget.

Usage

Do a JSONP request to http://tools.wmflabs.org/catgraph-jsonp/GRAPHNAME/COMMAND?userparam=PARAM&callback=YOURFUNCTION where COMMAND is the graphcore command to execute on GRAPHNAME. YOURFUNCTION is your JSONP callback. It will be called with a dict with the following fields:

Example: Get the root categories (categories without a parent category) of frwiki. http://tools.wmflabs.org/catgraph-jsonp/frwiki_ns14/list-roots?callback=dostuff

http://tools.wmflabs.org/catgraph-jsonp is configured to return at most 500 result rows, larger results are truncated.

Issue tracker

Please file bugs and feature requests on Phabricator.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.