list ontology

24 views
Skip to first unread message

Yoann Mamy Randriamihaja

unread,
Nov 2, 2017, 4:42:23 PM11/2/17
to Open Semantic Framework
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.

omt --list --osf-web-services="http://localhost/ws/"

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,
   'network' => 'http://localhost/ws/',
   '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',
     'webservice' => 'http://localhost/ws/ontology/read/',
     '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

Frederick Giasson

unread,
Nov 14, 2017, 8:50:19 PM11/14/17
to open-semant...@googlegroups.com
Hi
It looks like that the Apache server is not properly configured or
something like that. The path can't be found apparently.


Thanks,


Fred

Yoann Mamy Randriamihaja

unread,
Dec 13, 2017, 2:27:12 PM12/13/17
to Open Semantic Framework
Hi Fred,

Thanks for your answer!

I have an install of Open Semantic that did not use OSF. Can I use the ontology manager OMT from OSF to delete ontologies from a standard open semantic installation?

If not, is there another way to manage ontologies?

OSF install did not work for me.

Thanks,
Yoann
Reply all
Reply to author
Forward
0 new messages