SmartKG技术文档

SmartKG技术文档

【免费下载链接】SmartKG This project accepts excel files as input which contains the description of a Knowledge Graph (Vertexes and Edges) and convert it into an in-memory Graph Store. This project implements APIs to search/filter/get nodes and relations from the in-memory Knowledge Graph. This project also provides a dialog management framework and enable a chatbot based on its knowledge graph. 【免费下载链接】SmartKG 项目地址: https://gitcode.com/gh_mirrors/smar/SmartKG

SmartKG是一款集知识图谱可视化与智能对话于一体的轻量级框架,旨在简化知识图谱的创建、管理和交互过程。以下文档将引导您完成SmartKG的安装、使用、API接入及自定义图谱的生成。

一、安装指南

1. 系统准备

确保您的开发环境已满足以下条件:

  • Git: 访问Git for Windows进行下载。
  • .NET Core 2.1: 运行时环境,可在微软官方获取。
  • Node.js: 推荐版本14.15.4,下载地址:Node.js官网
  • Visual Studio 2019: 若计划修改或编译源代码,请安装,详情见Visual Studio下载页面

2. 获取源码

克隆SmartKG仓库:

git clone https://github.com/microsoft/SmartKG

二、项目使用说明

1. 运行步骤(以Windows为例)

  1. 创建工作目录temp,并将SmartKG项目中的相关文件移入此目录,按指示解压并调整配置文件位置。
  2. 分别启动后端与前端服务:
    • 后端: 在temp/smartkg目录下运行dotnet SmartKG.KGBot.dll
    • 前端: 进入temp/smartkgui,依次执行npm i(仅首次)和npm run serve

后端成功启动可通过访问http://localhost:5000/swagger/index.html验证;前端通过http://localhost:8080/访问。

2. Linux环境下运行

  • 需预先安装Docker与docker-compose。
  • smartkg_services目录部署至Linux,调整配置后,使用docker-compose命令启动服务。

三、项目API使用文档

SmartKG的API接口主要由其后端服务提供,具体文档位于后端启动后的Swagger界面,即通过访问http://localhost:5000/swagger/index.html查看。这里提供了图谱的增删查改接口,以及与智能对话相关的API,使开发者能够直接与知识图谱交互,实现数据操作和对话逻辑定制。

四、项目安装方式

对于开发者的完整参与,包括编译与发布SmartKG:

1. 本地编译

在Visual Studio 2019中打开SmartKG.sln,选择“生成”>“生成解决方案”,完成源代码编译。

2. 应用发布

针对生产环境,应右键点击SmartKG.KGBot项目,选择“发布”>“文件夹”,配置发布设置:

  • 配置:选择“发布”。
  • 目标框架:netcoreapp2.1或更高。
  • 目标运行时:选择“便携式”以确保跨平台兼容性。

之后,点击“发布”按钮即可生成可部署的发布包。

通过上述步骤,您不仅能够搭建和运行SmartKG系统,还可以根据需求对系统进行定制化开发,创建属于自己的知识图谱应用。

【免费下载链接】SmartKG This project accepts excel files as input which contains the description of a Knowledge Graph (Vertexes and Edges) and convert it into an in-memory Graph Store. This project implements APIs to search/filter/get nodes and relations from the in-memory Knowledge Graph. This project also provides a dialog management framework and enable a chatbot based on its knowledge graph. 【免费下载链接】SmartKG 项目地址: https://gitcode.com/gh_mirrors/smar/SmartKG

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值