当前位置:网站首页>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;
.边栏推荐
猜你喜欢

8 张图 | 剖析 Eureka 的首次同步注册表

ESP32在电池供电时用ULP监测电池电压

【Unity Shader 消融效果_案例分享】

产品学习(二)——竞品分析

概率论学习笔记
![[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security](/img/fb/0a9f0ea72efc4785cc21fd0d4830c2.png)
[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security

ESP32深度睡眠电流怎样低于10uA

SQL learning notes nine connections 2

Esp32 monitors the battery voltage with ULP when the battery is powered

VS2019如何永久配置本地OpenCV4.5.5使用
随机推荐
MySQL constraint learning notes
[network security tool] what is the use of USB control software
产品学习(一)——结构图
【#Unity Shader#自定义材质面板_第一篇】
[unity shader custom material panel part I]
软件工程复习
Is the account opening of Huafu securities safe and reliable? How to open Huafu securities account
问题:OfficeException: failed to start and connect(二)
问题:OfficeException: failed to start and connect(三)
Code power is full of quantitative learning | how to find a suitable financial announcement in the financial report
Gson的@JsonAdater注解的几种方式
DSBridge
On whether variables are thread safe
Esp32 esp-idf GPIO key interrupt response
[unity shader custom material panel part II]
Idea easy to use plug-in summary!!!
C语言课设物业费管理系统(大作业)
[ManageEngine Zhuohao] what is network operation and maintenance management and what is the use of network operation and maintenance platform
Notes on probability theory
Free trial of self-developed software noisecreater1.1