|
|
|
@ -148,12 +148,22 @@ public class TestXiaoTuPuController extends BaseController { |
|
|
|
pointService.buildPoint(); |
|
|
|
} |
|
|
|
|
|
|
|
// 获取所有模型
|
|
|
|
@GetMapping("getKeyWorlds") |
|
|
|
public List<Map> getKeyWorlds() throws IOException { |
|
|
|
List<Map> a = zhyPointMapper.selectPointByType1("keyword"); |
|
|
|
return a; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("getTitlebyReId/{id}") |
|
|
|
public List<Map> getTitlebyReId(@PathVariable("id")Integer id) throws IOException { |
|
|
|
List<Map> a = zhyPointMapper.selectPointResByNeo4jId(id); |
|
|
|
return a; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> convertToGraphFormat(List<Map> rawNodes, List<Map> rawRelationships) { |
|
|
|
List<Map<String, Object>> nodes = new ArrayList<>(); |
|
|
|
List<Map<String, Object>> links = new ArrayList<>(); |
|
|
|
|