Hi All,
I'm trying to determine whether or not OMT is working for me. I'd like to be able to delete an ontology (in particular, how can I delete the default ones that have mails, author name, etc...).
I installed OSF on an Ubuntu 14 EC2 instance using the debian archive.
I then installed the osf-installer, ontology management and php API.
I had a lot of issues with the php API (the SplClassLoader.php was missing, I manually created one but was not able to make it work, so I manually modified each php script to load the class using include_once and use statements).
I'm now able to run the ontology list command (see below) without any php error message.
But it fails and give me this error message instead:
Can't get loaded ontologies. Not Found<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL /ws/ontology/read/ was not found on this server.</p><hr><address>Apache/2.4.25 (Debian) Server at localhost Port 80</address></body></html>
Debug file: /tmp/47983938d0ac440e864f88877ffab909.error
Here is the content of the debug file:
StructuredDynamics\osf\php\api\ws\ontology\read\OntologyReadQuery::__set_state(array(
'endpoint' => 'ontology/read/',
'method' => 'post',
'mime' => 'resultset',
'timeout' => 0,
'resultset' => NULL,
'supportedMimes' =>
array (
0 => 'text/xml',
1 => 'application/json',
2 => 'application/rdf+xml',
3 => 'application/rdf+n3',
4 => 'application/iron+json',
5 => 'application/iron+csv',
6 => 'resultset',
),
'httpStatus' => '404',
'httpStatusMessage' => 'Not Found',
'httpStatusMessageDescription' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></he$
'appID' => 'administer',
'apiKey' => 'some-key',
'params' =>
array (
'ontology' => '',
'reasoner' => 'True',
'interface' => 'default',
'function' => 'getLoadedOntologies',
'parameters' => 'mode%3Ddescriptions',
),
'error' =>
StructuredDynamics\osf\framework\QuerierError::__set_state(array(
'id' => 'HTTP-500',
'level' => 'fatal',
'name' => 'Fatal Error',
'description' => 'Unspecified Server Fatal Error',
'debugInfo' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /ws/ontology/read/ was not found on this server.</p>
<hr>
<address>Apache/2.4.25 (Debian) Server at localhost Port 80</address>
</body></html>
Any idea what may be wrong?
Thanks for your help,
Yoann