Skip to content

I do not even want to try the easier way. Do you have something up and running to test?

Manos Tsardoulias edited this page Jul 28, 2016 · 8 revisions

NOTE: Under development!

If you do not want to setup / install the RAPP Platform, or even use the ready-to-deploy ova file we provide, but you want to use some of its functionalities, you can do so by invoking the RAPP Platform services in our already deployed instance.

The IP address of this instance is 155.207.19.229 and you can invoke any HOP service using the following url:

155.207.19.229:9001/hop/HOP_SRV_NAME

You can find the HOP service names here. Also since we use authentication you must set a RAPP Platform application token if you want to utilize the RAPP Platform API.

Below are examples of calling deployed services, using curl cli (note that the token is passed as header parameter in the call - in the API case this is done automatically):

ontology_subclasses_of

curl -X POST -d 'json={"ontology_class":"Oven", "recursive": true}' -H "Accept-Token:rapp_token" 155.207.19.229:9001/hop/ontology_subclasses_of

will respond with

{"results":["http://knowrob.org/kb/knowrob.owl#Oven","http://knowrob.org/kb/knowrob.owl#MicrowaveOven","http://knowrob.org/kb/knowrob.owl#RegularOven","http://knowrob.org/kb/knowrob.owl#ToasterOven"],"error":""}

face_detection

curl -v -X POST -F "json={"fast"=true}" -F "file=@lenna.jpg" -H "Accept-Token:rapp_token" 155.207.19.229:9001/hop/face_detection

will respond with

{"faces":[{"up_left_point":{"x":95.0,"y":89.0},"down_right_point":{"x":171.0,"y":165.0}}],"error":""}

You might have to read these specifications on how to do valid POST requests to the Web Services

Clone this wiki locally