当前位置:网站首页>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;
.边栏推荐
猜你喜欢
随机推荐
三分钟带你快速了解网站开发的整个流程
3. Disabling copy construction
C#如何打印输出原版数组
8 张图 | 剖析 Eureka 的首次同步注册表
2022 年江苏省职业院校技能大赛(中职) 网络搭建与应用赛项公开赛卷
Some pits designed by NOC
Design of sales management system for C language course (big homework)
Esp32 esp-idf ADC monitors battery voltage (with correction)
Notes on probability theory
Methods of downloading Foreign Periodicals
SQL learning notes nine connections 2
What is a port scanning tool? What is the use of port scanning tools
(上)苹果有开源,但又怎样呢?
[ManageEngine Zhuohao] what is network operation and maintenance management and what is the use of network operation and maintenance platform
【微信小程序】如何搭积木式开发?
[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security
C language course set up salary management system (big homework)
脏读、幻读和不可重复读
[ManageEngine] terminal management system helps Huasheng securities' digital transformation
微信公众号内嵌跳转微信小程序方案总结








