LOAD CSV WITH HEADERS FROM "file:///point.csv" AS point
MERGE (p:节点{id:point.id,name:point.name})
LOAD CSV WITH HEADERS FROM "file:///rel_attr.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:属性{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_def.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:定义{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_example.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:例{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_expression.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:表示{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_gather.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:聚集{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_generalize.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:泛化{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_HW.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:课外作业{property:line.property}]->(to)
LOAD CSV WITH HEADERS FROM "file:///rel_nature.csv" AS line
match (from:`节点`{id:line.from_id}),(to:`节点`{id:line.to_id})
merge (from)-[r:本质{property:line.property}]->(to)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/29f6e0082kefb5d59b7b6bd2a9004666?fid=3316406216-250528-217104295189955&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-hjiOJRLQbpX3R07Z6Ww0Lkuvvg0%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957641175237157343&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(与或图:图片 {名称:"与或图", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '6' match(q:`图片`) where q.`名称` = '与或图' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/2c30cedb5p2278e67f824b23d9fd3e55?fid=3316406216-250528-389322644001668&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-BLFaDxXv6KzXZso9ra%2F6kaX7Atk%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957641175237157343&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(问题归约实质:图片 {名称:"问题归约实质", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '20' match(q:`图片`) where q.`名称` = '问题归约实质' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/58f588855j60416595f1de7a1deb07e4?fid=3316406216-250528-583420804861682&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-JRnGbLvIlQJuYEMEpfB4Mi24pFI%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957540659182181052&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(梵塔难题与或图:图片 {名称:"梵塔难题与或图", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '27' match(q:`图片`) where q.`名称` = '梵塔难题与或图' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/3dee5b156h89b2520e8e018594fbaa94?fid=3316406216-250528-799622572559963&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-HA%2FCTg0P7TDav%2F3c3BVcdlf%2FCUg%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957540659182181052&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(梵塔难题定义:图片 {名称:"梵塔难题定义", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '22' match(q:`图片`) where q.`名称` = '梵塔难题定义' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/7150415aet9ee439b50a5a825a3c5e1f?fid=3316406216-250528-952439493426392&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-ozQtjb8Oqx6YQ1AlZLq1EOBBRjk%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957623018720772602&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(梵塔难题1:图片 {名称:"梵塔难题1", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '24' match(q:`图片`) where q.`名称` = '梵塔难题1' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/5036123aeq7378033b57df3a62f152e9?fid=3316406216-250528-741344178887764&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-rhWcaPLKCwmOghjZQJpbqS%2FdXfQ%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957641175237157343&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(梵塔难题2:图片 {名称:"梵塔难题2", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '25' match(q:`图片`) where q.`名称` = '梵塔难题2' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/7fb8067e5oa59e27196813c64853ef30?fid=3316406216-250528-761972193828543&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-CYV2cftcbwVSPJRrKNBIUCsLNnk%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957641175237157343&dp-callid=0&file_type=0&size=c1536_u864&quality=90&vuk=-&ft=video&autopolicy=1' AS url
CREATE
(梵塔难题3:图片 {名称:"梵塔难题3", image:url, 链接:"https://pan.baidu.com/s/1CjYk5Vktcj33wAQFhFLLlg?pwd=rgzn"})
return *;
MATCH (p:节点) WHERE p.id = '26' match(q:`图片`) where q.`名称` = '梵塔难题3' CREATE (p)-[r:图片]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/e4be96734gba69287d20d3072dd157bb?fid=3316406216-250528-1039087617119168&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-BMl%2Bxc3X7DQdMgI%2Fxln69hF3Zog%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957707444174203500&dp-callid=0&file_type=0&size=c850_u580&quality=100&vuk=-&ft=video' AS url
CREATE
(梵塔难题算法演示:视频 {名称:"梵塔难题算法演示", image:url, 链接:"https://pan.baidu.com/s/1SiH1LjhqoQPKzH3drh4BYQ?fid=1039087617119168"})
return *;
MATCH (p:节点) WHERE p.id = '21' match(q:`视频`) where q.`名称` = '梵塔难题算法演示' CREATE (p)-[r:视频]->(q)
WITH 'https://thumbnail0.baidupcs.com/thumbnail/92627f9afof627224c010f5c77fa31fb?fid=3316406216-250528-661269573553900&time=1680102000&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-K2eY6WyV0HV5dDuL2JaVef3Kviw%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=8957767131306276247&dp-callid=0&file_type=0&size=c850_u580&quality=100&vuk=-&ft=video' AS url
CREATE
(梵塔难题移动演示:视频 {名称:"梵塔难题移动演示", image:url, 链接:"https://pan.baidu.com/s/1SiH1LjhqoQPKzH3drh4BYQ?fid=661269573553900"})
return *;
MATCH (p:节点) WHERE p.id = '27' match(q:`视频`) where q.`名称` = '梵塔难题移动演示' CREATE (p)-[r:视频]->(q)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
这是用NEO4J平台构建一个《人工智能引论》课程的多模态知识图谱相关代码与文件。 知识图谱的经典定义是结构化的语义知识库,是用形象化的图形式来表达出物理世界中的概念以及内部关系。**其基本组成单位是“实体-关系-实体”三元组**,实体间通过关系相互连接形成知识结构网络。而它**也是基于图的数据结构,基本组成是“节点-边-节点”**,从而将知识信息连接成为一个关系网。所以知识图谱主要有**实体、关系、属性**等部分。其中实体表示的某种事物是独立于其他事物的,也是构建图谱最基本的元素;关系表示的是实体与实体之间的关系,用边连接着实体;而属性则用来阐述某一类实体的一些具体的值。这些三元组形式是知识图谱数据层最底层的形式。 图数据库是一种新型的非关系型数据库,无论是节点还是边缘,它的图表都**基于图论**。图论中的基本元素节点和边对应图数据库当中的节点与关系。图数据库的模型是包括**节点、关系以及属性**。它主要存储两类数据:节点和边。节点是实体:如人、成绩、书籍或其他具体事物。边关系:连接节点的概念、事件或事物。
资源推荐
资源详情
资源评论
收起资源包目录
用NEO4J平台构建一个《人工智能引论》课程的多模态知识图谱相关代码与文件.zip (13个子文件)
用NEO4J平台构建一个《人工智能引论》课程的多模态知识图谱相关代码与文件
rel_attr.csv 54B
rel_HW.csv 46B
rel_gather.csv 161B
color.grass 937B
graph.svg 267KB
_代码.txt 7KB
rel_def.csv 107B
rel_example.csv 40B
rel_expression.csv 65B
rel_nature.csv 40B
rel_generalize.csv 63B
graph.png 402KB
point.csv 1KB
共 13 条
- 1
资源评论
小邓在森林
- 粉丝: 8071
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Qt和AVR的FestosMechatronics系统终端.zip
- (源码)基于Java的DVD管理系统.zip
- (源码)基于Java RMI的共享白板系统.zip
- (源码)基于Spring Boot和WebSocket的毕业设计选题系统.zip
- (源码)基于C++的机器人与船舶管理系统.zip
- (源码)基于WPF和Entity Framework Core的智能货架管理系统.zip
- SAP Note 532932 FAQ Valuation logic with active material ledger
- (源码)基于Spring Boot和Redis的秒杀系统.zip
- (源码)基于C#的计算器系统.zip
- (源码)基于ESP32和ThingSpeak的牛舍环境监测系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功