This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
CREATE CONSTRAINT IF NOT EXISTS FOR (kp:KnowledgePoint) REQUIRE kp.id IS UNIQUE;
CREATE CONSTRAINT IF NOT EXISTS FOR (ab:AbilityPoint) REQUIRE ab.id IS UNIQUE;
MERGE (kp:KnowledgePoint {id: "KP_101"})
SET kp.name = "长方形周长计算",
kp.level = "小学";
MERGE (q:Question {id: "66c060a1"})
SET q.content = "巧求周长:7个相同小长方形拼图求周长",
q.difficulty = 3;
MERGE (ab1:AbilityPoint {id: "AB_201"})
SET ab1.name = "图形分析能力";
MERGE (ab2:AbilityPoint {id: "AB_202"})
SET ab2.name = "计算能力";
MERGE (ab3:AbilityPoint {id: "AB_203"})
SET ab3.name = "逻辑推理能力";
MATCH (q:Question {id: "66c060a1"}), (kp:KnowledgePoint {id: "KP_101"})
MERGE (q)-[r:TESTS_KNOWLEDGE]->(kp)
SET r.weight = 0.8;
MATCH (q:Question {id: "66c060a1"}), (ab1:AbilityPoint {id: "AB_201"})
MERGE (q)-[r1:REQUIRES_ABILITY]->(ab1)
SET r1.weight = 0.7;
MATCH (q:Question {id: "66c060a1"}), (ab2:AbilityPoint {id: "AB_202"})
MERGE (q)-[r2:REQUIRES_ABILITY]->(ab2)
SET r2.weight = 0.8;
MATCH (q:Question {id: "66c060a1"}), (ab3:AbilityPoint {id: "AB_203"})