diff --git a/ruoyi-modules/management-platform/pom.xml b/ruoyi-modules/management-platform/pom.xml
index 5d8bbd33..97c684ff 100644
--- a/ruoyi-modules/management-platform/pom.xml
+++ b/ruoyi-modules/management-platform/pom.xml
@@ -253,6 +253,10 @@
org.springframework.boot
spring-boot-starter-data-neo4j
+
+ org.neo4j.driver
+ neo4j-java-driver
+
com.alibaba
easyexcel
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityController.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityController.java
index 6509cda9..fa79e955 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityController.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityController.java
@@ -25,7 +25,7 @@ public class KgEntityController extends BaseController {
private KgEntityInfoService kgEntityInfoService;
/**
- * 新增主体
+ * 新增实体
*
* @param entityInfo
* @return
@@ -37,7 +37,7 @@ public class KgEntityController extends BaseController {
}
/**
- * 修改主体
+ * 修改实体
*
* @param entityInfo
* @return
@@ -49,7 +49,7 @@ public class KgEntityController extends BaseController {
}
/**
- * 主体列表
+ * 实体列表
* @return
*/
@GetMapping("/list")
@@ -60,7 +60,7 @@ public class KgEntityController extends BaseController {
}
/**
- * 主体详情
+ * 实体详情
* @param id
* @return
*/
@@ -70,7 +70,7 @@ public class KgEntityController extends BaseController {
}
/**
- * 删除主体
+ * 删除实体
* @param id
* @return
*/
@@ -81,7 +81,7 @@ public class KgEntityController extends BaseController {
}
/**
- * 主体导出
+ * 实体导出
* @param response
* @param id
*/
@@ -89,6 +89,6 @@ public class KgEntityController extends BaseController {
public void export(HttpServletResponse response,@PathVariable Long id) {
KgEntityInfo Entity = kgEntityInfoService.getEntity(id);
ExcelUtil util = new ExcelUtil(SysDictData.class);
- util.exportExcel(response, null, "主体数据");
+ util.exportExcel(response, null, "实体数据");
}
}
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityPropertiesController.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityPropertiesController.java
index 3bfce97c..2b9335b7 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityPropertiesController.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgEntityPropertiesController.java
@@ -24,7 +24,7 @@ public class KgEntityPropertiesController extends BaseController {
private KgEntityPropertiesService kgEntityPropertiesService;
/**
- * 新增主体
+ * 新增实体属性
*
* @param entityProperties
* @return
@@ -36,7 +36,7 @@ public class KgEntityPropertiesController extends BaseController {
}
/**
- * 修改主体
+ * 修改实体属性
*
* @param KgEntityProperty
* @return
@@ -48,7 +48,7 @@ public class KgEntityPropertiesController extends BaseController {
}
/**
- * 主体列表
+ * 实体属性列表
* @return
*/
@GetMapping("/list")
@@ -59,7 +59,7 @@ public class KgEntityPropertiesController extends BaseController {
}
/**
- * 主体详情
+ * 实体属性详情
* @param id
* @return
*/
@@ -69,7 +69,7 @@ public class KgEntityPropertiesController extends BaseController {
}
/**
- * 删除主体
+ * 删除实体属性
* @param id
* @return
*/
@@ -80,7 +80,7 @@ public class KgEntityPropertiesController extends BaseController {
}
/**
- * 主体导出
+ * 实体属性导出
* @param response
* @param id
*/
@@ -88,6 +88,6 @@ public class KgEntityPropertiesController extends BaseController {
public void export(HttpServletResponse response,@PathVariable Long id) {
KgEntityProperty EntityProperty = kgEntityPropertiesService.getEntityProperty(id);
ExcelUtil util = new ExcelUtil(SysDictData.class);
- util.exportExcel(response, null, "主体数据");
+ util.exportExcel(response, null, "实体属性数据");
}
}
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgOntologyInfoController.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgOntologyInfoController.java
index a61f740c..2610cd5a 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgOntologyInfoController.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/kg/KgOntologyInfoController.java
@@ -42,7 +42,7 @@ public class KgOntologyInfoController extends BaseController {
}
/**
- * 修改主体基本信息
+ * 修改主体信息
*
* @param ontology
* @return
@@ -53,18 +53,6 @@ public class KgOntologyInfoController extends BaseController {
return R.ok("修改成功");
}
- /**
- * 修改主体详细信息
- *
- * @param ontology
- * @return
- */
- @PutMapping("/info/detail")
- public R updateDetail(@Validated @RequestBody KgOntologyUpdateDTO ontology) {
- kgOntologyInfoService.updateDetail(ontology);
- return R.ok("修改成功");
- }
-
/**
* 主体列表
* @return
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgEntityRelation.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgEntityRelation.java
index ead79c17..d1c24083 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgEntityRelation.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgEntityRelation.java
@@ -14,7 +14,7 @@ public class KgEntityRelation implements Serializable {
/**
* 关系主键
*/
- private Long id;
+ private String id;
/**
* 关系名称
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgOntologyInfo.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgOntologyInfo.java
index fc676fec..b772353d 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgOntologyInfo.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/KgOntologyInfo.java
@@ -28,6 +28,11 @@ public class KgOntologyInfo implements Serializable {
@NotNull(message = "主体描述不能为空")
private String description;
+ /**
+ * 图信息
+ */
+ private String dag;
+
/**
* 概念个数
*/
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/dto/GraphData.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/dto/GraphData.java
new file mode 100644
index 00000000..ccebb015
--- /dev/null
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/kg/dto/GraphData.java
@@ -0,0 +1,15 @@
+package com.ruoyi.platform.domain.kg.dto;
+
+import lombok.Data;
+
+import java.util.List;
+import java.util.Map;
+
+@Data
+public class GraphData {
+ private List nodes;
+ private List edges;
+ private List