// 将 ProjectName.csv 导入(项目名称)
LOAD CSV WITH HEADERS FROM "file:///ProjectName.csv" AS line
CREATE (g:RE_Project{Name:line.Name,Summary:line.Summary})
//查询相关信息
match(x:RE_Entity) return x.Summary
//将 Stake_holder.csv 导入(涉众)
LOAD CSV WITH HEADERS FROM "file:///Stake_holder.csv" AS line
CREATE
(g:RE_Stake{Name:line.Name,Duty:line.Duty,Expectation:line.Expectation})
//将 Business_usecase.csv 导入(用例)
LOAD CSV WITH HEADERS FROM "file:///Business_usecase.csv" AS line
CREATE (g:RE_usecase{Name:line.Name})
//将 Business_state.csv 导入(业务状态)
LOAD CSV WITH HEADERS FROM "file:///Business_state.csv" AS line
CREATE (g:RE_state{Name:line.Name})
//将 Business_object.csv 导入(业务状态)
LOAD CSV WITH HEADERS FROM "file:///Business_object.csv" AS line
CREATE (g:RE_object{Name:line.Name})
//将 Business_goal.csv 导入(业务目标)
LOAD CSV WITH HEADERS FROM "file:///Business_goal.csv" AS line
CREATE (g:RE_goal{Name:line.Name,Content:line.Content})
//将 Business_boundary.csv 导入(业务边界)
LOAD CSV WITH HEADERS FROM "file:///Business_boundary.csv" AS line
CREATE (g:RE_boundary{Name:line.Name,Describe:line.Describe})
//将新节点导入 RE_New_Node.csv
LOAD CSV WITH HEADERS FROM "file:///RE_New_Node.csv" AS line
CREATE (g:RE_newNode{Title:line.title,Label:line.label})
//以下是关系的导入
//将 projectName 和 stake_holder 的关系导入
LOAD CSV WITH HEADERS FROM "file:///include_relation.csv" AS line
MATCH (entity1:RE_Project{Name:line.Item1}) ,
(entity2:RE_Stake{Name:line.Item2})
CREATE (entity1)-[:re_RELATION { type: line.relation }]->(entity2)