dice-group / NeuralWorldReasoner

1 stars 0 forks source link

Issue with Hermit #2

Open ShrushtiW opened 1 year ago

ShrushtiW commented 1 year ago

We were successfully able to run Main.java and syntax_analysis.py simultaneously and we saw that after running syntax_analysis.py the output of Main.java file is updated according to the execution. But were unable to access the localhost directory of hermit ,so we are not sure what the output of main.java signifies. How do we make sure that our connection to hermit as a backend is successful?

Demirrr commented 1 year ago

Dear @ShrushtiW,

By looking at this code of the OWLReasoners, you can see that

  1. A knowledge base is loaded
  2. A web service is launched that listens http://localhost:8080/hermit
  3. If there is a post request, we convert the send data of a post request a class expressions

How do we make sure that our connection to hermit as a backend is successful?

reasoner = HermiT(url='http://localhost:8080/hermit')
reasoner.retrieve(NC("<http://www.benchmark.org/family#Father>"))

This should return all individuals that are Father. It should be 62 individuals on family dataset.

Please let me know, if something is still unclear.