enable REST services integration with the registry
Brought to you by:
luisbermudez
Allow, from VINE to talk SOAP services to the registry to:
- get list of all ontologies: getAllOntologies()
- get list of all mappings: getAllMappings()
- get ontology: getOntology(uri)
- submit mapping ontology: putMapping(uri, RDF, userId,userPassword)
- open mapping ontology: openMapping (uri)
opening files could be handle with the wizards: org.mmi.vine.wizard.
Invoking SOAP services requires of AXIS http://ws.apache.org/axis/
user guide shows how to invoke a SOAP service within JAVA: http://ws.apache.org/axis/java/user-guide.html
Can you remind me what openMapping(uri) should do that it's not done by getOntology(uri) ?
Re: putMapping(uri, RDF, userId,userPassword)
Note: the registry uses the base URI indicated in the RDF; so, how should the given uri parameter be handled?
1- No, just remove the parameter, and keep using the internal base URI.
2- Ignore the URI inside RDF and use the given parameter.
3- ?
The registry http://mmisw.org:9600/regtest/services/sparql?wsdl now provides the following operations:
- getAllOntologies()
- getAllMappings() --> always empty for now
- getOntology(uri)
- putMapping(uri, RDF, userId,userPassword)
Tested with Oxygen.
I'm now doing preliminary client tests using axis.
Implemented:
- new packages
org.mmi.vine.registry - main package with IRegistry interface
org.mmi.vine.registry.soap - SOAP implementation
- Added axis libraries in lib/
- new build.xml to create the bindings (NOTE: already created and checked in)
and to test the connection:
ant soap-test
NOTE: FIXME: the same test does NOT run from within Eclipse -- Perhaps a library conflict.
Luis: can you take a look? next step is to start using this in the affected parts of Vine.
We need to speak REST (instead of SOAP), because we're going to use the bioportal framework, which uses RESTful based services.
Good !
What is the REST endpoint and the descriptions of the services ?
so we need to remove the axis libraries !