-
Notifications
You must be signed in to change notification settings - Fork 0
Using ricordo rdfstore ws
Tested on: tomcat - 6 (http://tomcat.apache.org/) java - 1.6 (http://www.oracle.com/technetwork/java/index.html) OS - Ubuntu
1)Download the ricordo-rdfstore-ws.war file from the deploy directory
-
Edit the config.properties file as needed(/WEB-INF/classes/config.properties). Default values are appropriate in many cases except rdf store end point configurations. Note: sparql query template files follow the sbmlrdfshema, if using a different data set, the query files need to be changed accordingly.
-
Open a web browser and start using the web services.
Lists all Resources
http://localhost:8080/ricordo-rdfstore-ws/service/search/getResources
Using curl to test POST method. eg:
getResourcesByType
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://www.ebi.ac.uk/ricordo/toolbox/sbmlo#SBMLModel</query></query>" http://localhost:8080/service/search/getResourcesByType
getResourceForAnnotationOfElement
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://identifiers.org/obo.go/GO:0031594</query></query>" http://localhost:8080/service/search/getResourceForAnnotationOfElement
getResourceForAnnotation
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://identifiers.org/obo.go/GO:0031594</query></query>" http://localhost:8080/service/search/getResourceForAnnotation
getElementOfResource
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://www.ebi.ac.uk/ricordo/toolbox/sbmlo#BIOMD0000000001</query></query>" http://localhost:8080/service/search/getElementOfResource
getAnnotationOfResource
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://www.ebi.ac.uk/ricordo/toolbox/sbmlo#BIOMD0000000001</query></query>" http://localhost:8080/service/search/getAnnotationOfResource
getAnnotationOfElementOfResource
curl -i -X POST -HContent-type:application/xml --data "<query><query>http://www.ebi.ac.uk/ricordo/toolbox/sbmlo#BIOMD0000000001</query></query>" http://localhost:8080/service/search/getAnnotationOfElementOfResource
You can also test it using RESTClient https://addons.mozilla.org/en-US/firefox/addon/restclient/ eg:
Method: POST
URL: http://localhost:8080/ricordo-rdfstore-ws/service/search/getResourcesByType
Headers: Content-Type application/xml
Body: <query><query>http://www.ebi.ac.uk/ricordo/toolbox/sbmlo#SBMLModel</query></query>