The University of Manchester

Using the converter as a RESTful service

The converter may be used as a RESTful web service. There are two parameters that must be specified in the query: 1) ontology which specifies the physical URI of the ontology to be converted 2) format which specifies the format that the ontology should be converted to.

The following formats are supported (formats should be used as they appear here):

The service should be invoked in the following way:

<Converter URL>ontology=<Ontology Physical URI>&format=<Format>

Note that ampersand (&) and equals (=) characters in the ontology URI parameter should be escaped. Ampersand (&) should be replaced with %26 and equals (=) should be replaced with %3D

Examples

Convert the pizza ontology into Manchester OWL Syntax

http://owl.cs.manchester.ac.uk/converter/convert?ontology=http://www.co-ode.org/ontologies/pizza/pizza.owl&format=Manchester+OWL+Syntax

or OWL/XML

http://owl.cs.manchester.ac.uk/converter/convert?ontology=http://www.co-ode.org/ontologies/pizza/pizza.owl&format=OWL/XML

Convert an ontology from the TONES Ontology Repository. The physical URI of the 'Generations' ontology is: http://owl.cs.manchester.ac.uk/repository/download?ontology=http://www.owl-ontologies.com/generations.owl&format=RDF/XML. Since this URI contains '&' and '=' characters it needs escaping to http://owl.cs.manchester.ac.uk/repository/download?ontology%3Dhttp://www.owl-ontologies.com/generations.owl%26format%3DRDF/XML. The URL for the converter is therefore (converting to a format of Turtle)

http://owl.cs.manchester.ac.uk/converter/convert?ontology=http://owl.cs.manchester.ac.uk/repository/download?ontology%3Dhttp://www.owl-ontologies.com/generations.owl%26format%3DRDF/XML&format=Turtle