当前位置:网站首页>Using fuseki query when there are multiple models in TDB
Using fuseki query when there are multiple models in TDB
2022-07-01 06:41:00 【Cold tea ice】
Catalog
Problem description
One TDB Multiple maps can be stored in , The front by API To create a map , You can create a map through the following code :
Model model = dataset.getNamedModel("kgMovie");
dataset.addNamedModel("kgMovie",model);
That is to say a TDB There can be one defalut Default atlas dataset for , There can also be many named datasets .
adopt Fuseki When querying , By default, you can only query default Data set under , How to query others ?
resolvent
Solutions refer to This article , He mentioned two ways , Only the first method I tried was feasible , The second method is unknown graphName How to configure , I tried several ways of writing, but I couldn't , If there is a big guy passing by , Please give me some advice .

Post one that I can use conf, as follows :
@prefix : <http://base/#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
:service1 a fuseki:Service ;
fuseki:dataset <#dataset> ;
fuseki:name "kgMovie" ;
fuseki:serviceQuery "query" , "sparql" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" .
<#dataset> rdf:type tdb:DatasetTDB;
tdb:location "D:/jena/test";
tdb:unionDefaultGraph true;
.边栏推荐
猜你喜欢

sci-hub如何使用

C语言课设销售管理系统设计(大作业)

Dirty reading, unreal reading and unrepeatable reading

C language course set up property fee management system (big work)

Async and await

How to use SCI hub

MySQL learning

SQL学习笔记九种连接2
![[wechat applet low code development] second, resolve the code composition of the applet in practice](/img/ab/28ab01db84b1437220e659118b2871.png)
[wechat applet low code development] second, resolve the code composition of the applet in practice

On whether variables are thread safe
随机推荐
node中引入模块的原理
[network security tool] what is the use of USB control software
VS2019如何永久配置本地OpenCV4.5.5使用
常用快捷键
Router 6/ 以及和Router5 的区别
Requests module (requests)
Lxml module (data extraction)
mysql数据类型学习笔记
What is a port scanning tool? What is the use of port scanning tools
SQL learning notes 2
Redis安装到Windows系统上的详细步骤
在支付宝上买基金安全吗?哪里可以买基金
NOC 设计的一些坑
HW(OD)岗面试题
记一次线上接口慢查询问题排查
SQL statement
基金定投是高风险产品吗?
JSON module
How to use SCI hub
MySQL learning