ERManage.js 668 B

1234567891011121314151617181920212223242526
  1. import { get, post } from '@/http/index'
  2. //查询所有三元组
  3. export const getERList = async (data) => {
  4. return await get('/kgqa/relation/getAllTriples', data)
  5. }
  6. //查询数据库中目前已经有的关系
  7. export const getAllRelationClass = async () => {
  8. return await get('/kgqa/relation/getAllRelationClass')
  9. }
  10. // 新增关系
  11. export const addRelation = async (data) => {
  12. return await post('/kgqa/relation/Add', data)
  13. }
  14. //修改关系
  15. export const updateRelation = async (data) => {
  16. return await post('/kgqa/relation/Update', data)
  17. }
  18. //删除关系
  19. export const deleteRelation = async (data) => {
  20. return await post('/kgqa/relation/Delete', data)
  21. }