From Wikicompany




The goal of this project is to make the information on Wikicompany accessible using a REST webservice interface, for use by information processing systems.

The main components of the REST system are:

  • HTTP - the application-level communication protocol
  • RSS v2.0 - an output format
  • Atom 1.0 - an output format
  • JSON - an output format

See also the following documents:


Structures and Naming

There are currently two interface commands: "company" and "companies".

  • company - returns a company profile (or a set of fields from the profile)
    • Optional argument: format:<format> (the format can be: rss, atom, json, html)
  • companies - returns a list of company profile links (separated by the ; character). The query language consists of sets of <tag>:<value> pairs
    • Optional argument: region:<region>
    • Optional argument: sector:<sector>
    • Optional argument: tag:<tag>
    • See optional tag arguments at: Semantic tags

Company interface examples

Show the Philips profile:


Companies interface examples

Show media companies:

Show companies with a Euronext stock notation:

Show media companies in the Netherlands with Euronext stock notation:

Show web and design companies:

Show restaurants in Amsterdam, excluding fast food chains:

Show biotech or healthcare companies operating in the US and Europe:


REST principles


REST data elements

Data Element             Modern Web Examples
resource                 the intended conceptual target of a hypertext reference
resource identifier      URL, URN
representation           HTML document, JPEG image
representation metadata  media type, last-modified time
resource metadata        source link, alternates, vary
control data             if-modified-since, cache-control
  • Client-Server: a pull-based interaction style: consuming components pull representations.
  • Stateless: each request from client to server must contain all the information necessary to understand the request, and cannot take advantage of any stored context on the server.
  • Cache: to improve network efficiency responses must be capable of being labeled as cacheable or non-cacheable.
  • Uniform interface: all resources are accessed with a generic interface (e.g., HTTP GET, POST, PUT, DELETE).
  • Named resources - the system is comprised of resources which are named using a URL.
  • Interconnected resource representations - the representations of the resources are interconnected using URLs, thereby enabling a client to progress from one state to another.
  • Layered components - intermediaries, such as proxy servers, cache servers, gateways, etc, can be inserted between clients and resources to support performance, security, etc.
  • Design to reveal data gradually. Don't reveal everything in a single response document. Provide hyperlinks to obtain more details.
  • Specify the format of response data using a schema (DTD, W3C Schema, RelaxNG, or Schematron). For those services that require a POST or PUT to it, also provide a schema to specify the format of the response.
  • Describe how your services' are to be invoked using either a WSDL document, or simply an HTML document.
  • Categorize your resources according to whether clients can just receive a representation of the resource, or whether clients can modify (add to) the resource. For the former, make those resources accessible using an HTTP GET. For the later, make those resources accessible using HTTP POST, PUT, and/or DELETE.

(source: [1])




MediaWiki REST

  • WikiExchange Paper
    • YARS wiki
    • Demo site
  • CaseWiki:Feeds - Example of a MediaWiki REST interface to news feeds
  • REST ideas, see also

REST info

  • rest-discuss yahoo forum
  • REST-vs-API rant

REST v State


REST related resources

  • XML: The answer to everything? Generic XML article
  • PHP peclweb
  • ezxml
  • minixml
  • Bricolage message about REST

Webservices resources

  • "How To Roll Out An Open API"
  • Wikipedia Atom article

XML and MediaWiki

  • XmlWiki
  • XML_Embedding_Extension


  • "RSS is the Web 2.0 Pipe"
  • FeedCreator.class.php
    • Example: from plazes,com
  • Wikipedia RSS article
  • RSS2 versus Atom1
    • It appears Atom is more descriptive and able to handle XML inclusions such as RDF.
  • - Mediawiki-based RSS info site


  • Atom 1.0 standard



Example sites

  • - RSS news feed search service
Personal tools