知识图谱相关工具信息 - bettermorn/KGCourse GitHub Wiki
0.知识表示protege
正式网站
下载安装
https://protege.stanford.edu/products.php#
快速开始
http://owl.cs.manchester.ac.uk/publications/talks-and-tutorials/protg-owl-tutorial/
讨论社区、参考学习资料
- Protégé wiki https://protegewiki.stanford.edu/wiki/Main_Page
- Protégé知识建模工具实践 东南大学漆桂林
- https://github.com/zjunlp/kg-course/blob/master/tutorials/tutorial-protege.pdf
- 掌握使用protege建模的方法和步骤
- 建立新的本体
- 构建类
- 建立子类
- 构建类之间的关系
- 建立对象属性:添加属性名称和属性值
- 建立数据属性
- 建立实例:添加实例及其类型,添加实例之间的关系,添加实例属性值
- 保存本体
- 可视化
- 推理
注:需注册github账号并登录后才能获取此文章
1.1知识存储Jena
正式网站
下载安装
https://jena.apache.org/download/index.cgi
快速开始
https://jena.apache.org/getting_started/index.html
- 启动Jena fuseki fuseki-server --loc=store --update /testdb
export PATH=/apache-jena-fuseki-3.14.0path/:$PATH fuseki-server --loc=store --update /testds
讨论社区、参考学习资料
使用Apache jena工具完成装载数据、查询与更新知识图谱 作者:未知 https://github.com/zjunlp/kg-course/blob/master/tutorials/Tutorial-Jena.pdf
Jena 参考代码
Reasoning with Apache Jena and rules and using SHACL (Shapes Constraint Language) to validate resulting RDF graph. :https://github.com/mateuszr/jena-reasoning
1.2 知识存储gStore
正式网站
下载安装
http://gstore-pku.com/pcsite/download-2.html http://gstore-pku.com/pcsite/help-document.html 第三章 安装指南
快速开始
http://gstore-pku.com/pcsite/help-document.html 第六章 workbench使用
讨论社区、参考学习资料
http://gstore-pku.com/pcsite/communicate.html 使用gStore工具完成装载数据、查询与更新知识图谱 作者:未知 https://github.com/zjunlp/kg-course/blob/master/tutorials/Tutorial-gStore.pdf
知识抽取之DeepDive
正式网站
下载安装
快速开始
讨论社区、参考学习资料
知识抽取之DeepKE
正式网站
https://github.com/zjunlp/deepke
下载安装
- https://github.com/zjunlp/deepke/blob/master/README.md
- http://openkg1.oss-cn-beijing.aliyuncs.com/c5839f23-3cde-49d0-9c05-6bea5fe512b1/deepke.pdf
快速开始
- https://github.com/zjunlp/deepke/blob/master/README.md
- http://openkg1.oss-cn-beijing.aliyuncs.com/c5839f23-3cde-49d0-9c05-6bea5fe512b1/deepke.pdf
讨论社区、参考学习资料
https://github.com/zjunlp/deepke/wiki
2.知识融合 LIMES
参考 http://openkg.cn/dataset/limes-tutorial
正式网站
下载安装
- https://github.com/dice-group/LIMES/blob/master/README.md
- http://dice-group.github.io/LIMES/#/getting_started/installation
- http://openkg.cn/dataset/limes-tutorial
快速开始
http://dice-group.github.io/LIMES/#/user_manual/running_limes?id=using-the-web-ui
讨论社区、参考学习资料
http://dice-group.github.io/LIMES/#/
- WebUI http://limes.aksw.org/
知识推理Drools
网站
下载安装
https://download.jboss.org/drools/release/7.33.0.Final/drools-distribution-7.33.0.Final.zip
快速开始
https://docs.jboss.org/drools/release/7.33.0.Final/drools-docs/html_single/index.html#_wb.quickstart
讨论社区、参考学习资料
参考代码
https://github.com/kiegroup/drools/tree/main/drools-examples
知识推理Jena
网站
下载安装
https://jena.apache.org/download/index.cgi
快速开始
https://jena.apache.org/documentation/inference/#generalExamples
讨论社区、参考学习资料
知识搜索
网站
下载安装
https://www.elastic.co/downloads/elasticsearch
快速开始
https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html
讨论社区、参考学习资料
- https://discuss.elastic.co/c/elasticsearch/6
- 使用elasticsearch搭建简单知识问答系统 参考链接:http://openkg1.oss-cn-beijing.aliyuncs.com/76c540e4-c26c-41f6-9c98-4871a06b9eae/demo.pdf
常见问题FAQ
django参考资料
- 启动django python manage.py runserver 参考 https://docs.djangoproject.com/en/3.0/intro/tutorial01/
- 无法访问 8000 Invalid HTTP_HOST header: 'localhost:8000'. You may need to add u'localhost' to ALLOWED_HOSTS. project settings.py file,set ALLOWED_HOSTS like this ALLOWED_HOSTS = [ 'localhost', '127.0.0.1']
elasticSearch 问题
- 创建索引和类型问题
curl -XPUT 'localhost:9200/demo?include_type_name=true' -H 'Content-Type: application/json' -d' { "mappings": { "person": { "properties": { "subj": {"type": "keyword"}, "height": {"type": "integer"}, "weight": {"type": "integer"}, "po":{ "type": "nested", "properties":{ "pred":{"type":"keyword"}, "obj":{"type":"keyword"} } } } } } } '
参考 https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html 7.0以后无type这个概念
- Elasticsearch 7.x
- Specifying types in requests is deprecated. For instance, indexing a document no longer requires a document type. The new index APIs are PUT {index}/_doc/{id} in case of explicit ids and POST {index}/_doc for auto-generated ids. Note that in 7.0, _doc is a permanent part of the path, and represents the endpoint name rather than the document type.
- The include_type_name parameter in the index creation, index template, and mapping APIs will default to false. Setting the parameter at all will result in a deprecation warning.
- The default mapping type is removed.
知识搜索之gAnswer
正式网站
http://ganswer.gstore-pku.com/index.html https://github.com/pkumod/gAnswer/
下载安装
https://github.com/pkumod/gAnswer/blob/master/docs/gAnswer_help.pdf
快速开始
https://github.com/pkumod/gAnswer/blob/master/README_CH.md
讨论社区、参考学习资料
- https://github.com/pkumod/gAnswer/blob/master/docs/gAnswer_help.pdf
- https://github.com/pkumod/gAnswer/issues