severin-lemaignan / oro-view

GNU General Public License v3.0
4 stars 1 forks source link

Termination due to Malformed statement <ActiveConcept> #1

Open nkoester opened 7 years ago

nkoester commented 7 years ago

Hej,

launching the oro-view crashes with this error:

$ ./oro-view
liboro v.1.3.1 - oro-server v.0.8.1 - ontology initialized.
terminate called after throwing an instance of 'oro::OntologyServerException'
  what():  Couldn't register event: server threw a kberror (Malformed statement <ActiveConcept>).
Aborted (core dumped)

The ontology server I used is minimalkb:

$ ../minimalkb ../share/ontologies/commonsense.nt 
No handlers could be found for logger "minimalKB.minimalkb.kb"
minimalKB 0.8.1
2017-02-14 17:39:44,817: Loading triples from ../share/ontologies/commonsense.nt
2017-02-14 17:39:44,817: Reasoner (simple RDFS) started. Classification running at 5Hz
2017-02-14 17:39:44,818: Knowledge lifespan manager started. Running at 2Hz
2017-02-14 17:39:44,896: Starting to serve at port 6969...
2017-02-14 17:39:46,737: Using non-standard method stats. This may be removed in the future!
2017-02-14 17:39:46,739: Using non-standard method registerEvent. This may be removed in the future!
2017-02-14 17:39:46,740: Error while parsing the statement: ActiveConcept. Only 2 tokens found
2017-02-14 17:39:46,741: request failed: Malformed statement <ActiveConcept>

I am not sure if I have to launch the server differently but from what I can gather this is the most straight forward way to test the visualisation. Am I missing something here? Any ideas?

severin-lemaignan commented 7 years ago

Well, according to the debug messages, an invalid statement (<ActiveConcept>) is exchanged between the two software.

What steps did you perform? simply starting minimalkb and then oro-view?

nkoester commented 7 years ago

What steps did you perform? simply starting minimalkb and then oro-view?

Yes. Nothing more.

severin-lemaignan commented 7 years ago

Can you try with the latest version of minimalkb?

nkoester commented 7 years ago

Unfortunately the oro-view now throws a Json::LogicError:

oro-view:

$ ./oro-view 
liboro v.1.3.1 - oro-server v.0.9 - ontology initialized.
[II] New event registered with id evt_-4921911986777778418
terminate called after throwing an instance of 'Json::LogicError'
  what():  Value is not convertible to bool.
Aborted (core dumped)

minimalkb:

$ ./minimalkb ../share/ontologies/commonsense.nt 
minimalKB 0.9
2017-02-28 11:04:57,634: RDFlib not available. You won't be able to load existing ontologies.
2017-02-28 11:04:57,647: Trying to load raw triples from ../share/ontologies/commonsense.nt...
2017-02-28 11:04:57,648: Knowledge lifespan manager started. Running at 2Hz
2017-02-28 11:04:57,649: Reasoner (simple RDFS) started. Classification running at 5Hz
2017-02-28 11:04:57,744: Starting to serve at port 6969...
2017-02-28 11:04:57,915: Classification took 0.066095sec.
2017-02-28 11:04:58,244: Classification took 0.127614sec.
2017-02-28 11:06:51,489: Using non-standard method stats. This may be removed in the future!
2017-02-28 11:06:51,490: Using non-standard method registerEvent. This may be removed in the future!
2017-02-28 11:06:51,490: Registering a new event: NEW_CLASS_INSTANCE ON_TRUE for None on [u'ActiveConcept'] in set(['default'])