> 文章列表 > SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper

SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper

SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper

Ontop CLI部署,避免踩坑

  • 0.前言
  • 1.提示
  • 2.详细部署流程
  • 3.python操作
  • 4.碎碎念

0.前言

  • 教程:Setting up an Ontop SPARQL endpoint with Ontop CLI
  • 照着教程来,不知道为啥,总是报错,后来发现,手机搜到的跟电脑不一样?! 反正终于运行成功啦~ 先放个成功的截图
    SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper - SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper

1.提示

其实教程比较详细,提示一下,避免踩坑,祝大家都成功!

  1. 一定要启动h2数据库
  2. 教程的 endpoint 是命令,不是文件夹名称!!! ( ^表示可以换行输入 )
ontop endpoint ^--ontology=input/university-complete.ttl ^--mapping=input/university-complete.obda ^--properties=input/university-complete.properties ^--cors-allowed-origins=http://yasgui.org 
  1. input文件夹在ontop-cli-xxxx下
  2. ontop-cli-xxx\\jdbc下要有h2-1.4.196.jar
  3. 然后我就没啥问题了,评论区有啥问题吗?

2.详细部署流程

  1. 下载:ontop-cli-xxx、以下三个文件、h2数据库 SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper
    1.ontop下载,找合适版本的cli(个人觉得好像没差,我java8,用的4.2.2)
    2.点击下载h2.zip
    3.点击下载university-complete.ttl
    4.点击下载university-complete.obda
    5.点击下载university-complete.properties
  2. 启动h2数据库
  3. 在ontop-cli-xxx目录里进入cmd,输入ontop endpoint命令即可,如下图
    SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper

3.python操作

  • 教程:Use Jupyter Notebook with an Ontop SPARQL endpoint

4.碎碎念

我个大怨种又回来啦…
但这真的是最后的KG实验啦~SPARQL endpoint with Ontop CLI部署,python使用SPARQLWrapper