Merge Rest api with knowledge gaps into master#532
Conversation
Set<Set<TriplePattern>>
needs to be checked for correctness by @bnouwt
bnouwt
left a comment
There was a problem hiding this comment.
Hey @JackJackie, I finished the first review. What do you think?
smart-connector/src/main/java/eu/knowledge/engine/smartconnector/impl/ReasonerProcessor.java
Outdated
Show resolved
Hide resolved
smart-connector/src/main/java/eu/knowledge/engine/smartconnector/impl/ReasonerProcessor.java
Outdated
Show resolved
Hide resolved
smart-connector-api/src/main/java/eu/knowledge/engine/smartconnector/api/AskResult.java
Show resolved
Hide resolved
smart-connector-api/src/main/java/eu/knowledge/engine/smartconnector/api/KnowledgeGap.java
Outdated
Show resolved
Hide resolved
smart-connector-api/src/main/java/eu/knowledge/engine/smartconnector/api/KnowledgeGapSet.java
Outdated
Show resolved
Hide resolved
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Outdated
Show resolved
Hide resolved
smart-connector/src/main/java/eu/knowledge/engine/smartconnector/impl/ReasonerProcessor.java
Outdated
Show resolved
Hide resolved
|
I'll continue with the REST API changes and will produce a new pull request after that |
|
I think you can just keep working in this pull request. |
|
Hi @bnouwt : I updated the smart-connector-rest-server /ask route to transfer the knowledge gaps that were found as a result of the request. See the ProactiveApiServiceImpl at line I kept the old /ask route for convenience and checking...it can be deleted once we are happy with the new /ask route. It works well on my machine (well-known statement of every developer!). Can you check whether it works for you as well? Thx, Jack |
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Show resolved
Hide resolved
bnouwt
left a comment
There was a problem hiding this comment.
Hey @JackJackie, looks good 👍
If we make sure that the TriplePatterns are represented correctly and we have a unit test (either via the Java API (easy) or via the REST API (difficult)) and all the tests are still succeeding, we are ready to go!
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Outdated
Show resolved
Hide resolved
smart-connector/src/main/java/eu/knowledge/engine/smartconnector/impl/ReasonerProcessor.java
Outdated
Show resolved
Hide resolved
|
Hi @bnouwt, Before diving into building the optional flag, I ran the unit tests of the smart connector. There were 60 runs without failures and errors. 3 unit tests were skipped, but I saw that they were |
|
I've merged the |
|
Unfortunately, the build did not yet succeed. The |
Done: - fix variable name - add thread syncing
|
Hi @JackJackie, as mentioned above the build failed due to the REST API Knowledge Gap Unit Tests failing and I found that this is caused by the fact that the default I see a few options to fix this:
The conditional configuration could make configuring the Knowledge Engine very complex, so I am not sure I would go for that one. This reason why this problem did not pop-up before is because I merged the |
smart-connector-api/src/main/java/eu/knowledge/engine/smartconnector/api/AskResult.java
Show resolved
Hide resolved
|
@bnouwt : I discovered a small bug in the ProactiveApiServiceImpl around the knowledgeGaps being null.....I need to fix that before we can continue |
...tor-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java
Show resolved
Hide resolved
https://github.com/TNO/knowledge-engine.git into rest_api_with_knowledge_gaps
…/knowledge-engine.git into rest_api_with_knowledge_gaps
…/knowledge-engine.git into rest_api_with_knowledge_gaps
|
@bnouwt : below here it says...."Changes requested...1 change requested"...I tried to look which change request that is, but couldn't find out. Do you know? |
|
@bnouwt , @Sophietje , I'm merging the RESTapi with knowledge gaps enabled branch into main....so you can continue with other features based on this new version....hopefully nothing (much) breaks :-) |
No description provided.