On 8/8/12 10:21 AM, Melanie Reiplinger wrote:
Am 07.08.2012 13:14, schrieb Alessandro Adamou:
I tried it for both, scopes and sessions. But for sessions I only get '400 bad request'. curl -i -X POST -F "library=http://stanbol.apache.org/ontologies/registries/stanbol_network/SocialNetworks"; http://[stanbol]/ontonet/session/S1

Odd, I tried this call exactly and it just worked for me.

Usually a status 400 is returned if the value for "library" is a malformed URL, but this one isn't.

hmm, I tried this again after updating. But I still get

HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request

Is the library supposed to show up visibly in the REST interface?

Well I tried this again and I get a 303:

$ curl -i -X POST -F "library=http://stanbol.apache.org/ontologies/registries/stanbol_network/SocialNetworks"; http://localhost:8181/ontonet/session/1344417574190

HTTP/1.1 100 Continue

HTTP/1.1 303 See Other
Location: http://localhost:8181/ontonet/session/1344417574190/http://stanbol.apache.org/ontologies/registries/stanbol_network/SocialNetworks
Content-Length: 0
Server: Jetty(6.1.x)

and indeed the Location header value resolves to a resource (this might change though, perhaps I will just replace it with the imports to the ontologies in the library)

It could be that loading some ontology from the library failed to load because of network problems or so, but IIRC it should return some other status code.

ok, I'll do that. Just to make sure I won't blow up my stanbol again this time: this means that I go into the dir ontologymanager/ and there execute my svn update and mvn clean install, right?

Yes, but remember that you must also install the OSGi bundles, so

mvn clean install -PinstallBundle -Dsling.url=[stanbol]/system/console

Would you do that now? I added some more log messages to the session POST, so perhaps we may want to check the DEBUG log after you get a 400.

Alessandro

--
M.Sc. Alessandro Adamou

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy

Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy


"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)

Not sent from my iSnobTechDevice

Reply via email to