kononir / semantic-ui

Knowledge Base UI generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

semantic-ui

Knowledge Base UI generation for OSTIS technology

OSTIS Platform Version - 0.6.0

This version allows communication with the knowledge base via JSON-based Websocket protocol.

New version of web interface implements to show usage of sc-server (runner of two-side JSON protocol).? The new version of web interface communicates with sc-server using two-way JSON protocol.

You can still use sctp protocol with this version of web interface as well.

Install

Linux:

git clone https://github.com/ostis-apps/ostis-example-app.git
git checkout 0.6.0
cd {project-name}/scripts
./install_ostis.sh

Build knowledge base

Linux:

cd {project-name}/ostis-web-platform/scripts
./build_kb.sh

Run

There are 2 possible options to run:

Option 1. Run sc-server

Run on Linux:

cd {project-name}/ostis-web-platform/scripts
./run_sc_server.sh

Then open localhost:8090 in your browser Current interface version allows creating nodes with system identifiers and searching for the main identifier by the provided system identifier.

Option 2. Run sctp-server & sc-web

Please note that JSON Websocket protocol will be available as well after start. Run on Linux:

#Terminal 1
cd {project-name}/ostis-web-platform/scripts
./run_sctp.sh

#Terminal 2
cd {project-name}/ostis-web-platform/scripts
./run_scweb.sh

Then open localhost:8000 in your browser.

You can open localhost:8090 in your browser as well to see the new web interface version.

Project Structure

kb

The place for the knowledge base of your app. Put your .scs files here.

problem-solver

The place for the problem solver of your app. Put your agents here.

Use scp_stable branch for the development of agents on SCP.
Use 0.5.0 or 0.6.0 branch for the development of agents on C++.
Use 0.6.0 branch for the development of agents on Python.

Agents on C++

Some tips:

  • Store your modules with C++ agents in problem-solver/cxx;
  • After updating your C++ code you need to rebuild problem-solver. Just run:
cd {project-name}/scripts
./build_problem_solver.sh
  • To enable debug:
    • add SET(CMAKE_BUILD_TYPE Debug) line to {project-name}/CMakeLists.txt file;
    • rebuild problem-solver.
  • You can see an example module with a C++ agent here.

Agents on Python

Some tips:

  • Store your modules with Python agents in problem-solver/py;
  • After updating your Python code you don't need to rebuild problem-solver;
  • You can see example modules using Python here.

interface

The place for your interface modules.

To learn more about creating web components for the new web interface version please follow this link

sc-web-extensions

The place for your extensions using IMS interface(sc-web) standard.

Your extensions are not applied to sc-web automatically for now, but you can do it by hand.

About

Knowledge Base UI generation

License:MIT License


Languages

Language:C++ 45.0%Language:TypeScript 37.3%Language:Shell 4.5%Language:CMake 4.3%Language:JavaScript 3.8%Language:CSS 2.0%Language:Python 1.8%Language:HTML 1.4%