Hi group, I'm trying to load a bunch of ontologies into OntoNet, with mixed results:
- loading them in the web form works, I can specify an URI and it fetches it properly - loading them via REST does not work, I guessed I have to do this according to docs & Firebug: curl -X POST http://data.gemeindezukunft.ch:9090/ontonet/ -d "location=http://purl.org/rss/1.0/" But all I get back is: HTTP/1.1 415 Unsupported Media Type Content-Type: text/html; charset=iso-8859-1 Cache-Control: must-revalidate,no-cache,no-store Content-Length: 1399 Server: Jetty(6.1.x) I get this error back on various URIs which are shown in the REST API page of Stanbol. Note that I tried various different URIs to post in but no luck. I also have a problem understanding the idea of the scope. When I load an ontology via the form I can request it via (for example): http://data.gemeindezukunft.ch:9090/ontonet/http://www.w3.org/1999/02/22-rdf-syntax-ns this works fine with curl, I get the requested serializations. But all the REST API samples show a curl which posts to curl -X POST "http://data.gemeindezukunft.ch:9090/ontonet/ontology/User so we have "ontology" in between. So what is the difference between /ontonet and /ontonet/ontology? And 'User' would be the scope, right? A working example of how I post with curl would be appreciated. thanks Adrian