-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #554 from TNO/restructure-faq
WIP: Improve documentation
- Loading branch information
Showing
9 changed files
with
474 additions
and
318 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"label": "Tutorial", | ||
"label": "Guides", | ||
"position": 6, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "In-depth details about how to use the various elements of the Knowledge Engine" | ||
"description": "In-depth details about how to use the various elements of the Knowledge Engine." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
sidebar_position: 99 | ||
--- | ||
# Implementing a Knowledge Base | ||
This page describes how to implement your own Knowledge Base given a data source. | ||
|
||
There are three approaches to implement your own Knowledge Base: | ||
1. Java | ||
2. REST Developer API | ||
3. Knowledge Mapper (based on a Python client) | ||
4. JavaScript client | ||
|
||
The Knowledge Mapper is a tool we have built to easily connect to several common data sources (SQL, RDF, APIs). | ||
If you're interested in using the Knowledge Mapper or JavaScript client, please reach out to us as they are not yet open source. | ||
|
||
## Implementing your own Knowledge Interaction | ||
When you receive a request for data via an ANSWER or REACT Knowledge Interaction, you should return the expected results, e.g. by retrieving data from an API. | ||
|
||
If you do not have a response, then you should send an empty binding set. | ||
Also, when your REACT Knowledge Interaction has no result graph pattern, you should always return an empty binding set to the Knowledge Engine. | ||
|
||
If an error occurs while responding, you can either return an empty BindingSet (although this does not give any information about the error occurring) or call the (in case you are using the asynchronous handler methods of the Java Developer API) `future.completeExceptionally(...)` method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
# Starting a Knowledge Directory | ||
This page describes how to setup a Knowledge Directory. | ||
|
||
You can start the Knowledge Directory on ports 8080 with the available JAR: | ||
```bash | ||
cd knowledge-directory/target/ | ||
|
||
java -Dorg.slf4j.simpleLogger.logFile=kd.log -cp "knowledge-directory-1.2.5.jar:dependency/*" eu.knowledge.engine.knowledgedirectory.Main 8080 | ||
``` | ||
You can of course run the Knowledge Directory on another port by replacing 8080 by your preferred port number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.