gpt4 book ai didi

jena - fuseki 网络界面不显示数据集

转载 作者:行者123 更新时间:2023-12-03 15:25:04 25 4
gpt4 key购买 nike

我已经安装了 fuseki 并启动了服务器

#!/bin/sh    
cd /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0
exec /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0/fuseki-server -v --update --mem /testDB

服务器正在工作,程序可以将数据存储在/testDB 中,但网络界面不显示数据集,我无法添加数据集。当我尝试查询时,界面显示 Please select a dataset.
我想我以前遇到过这个问题,并通过重新安装fuseki文件夹解决了它。我想了解我做错了什么以及如何避免这个问题。
谢谢!

配置文件是自动生成的。这是:
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

## Fuseki Server configuration file.

@prefix : <#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .

[] rdf:type fuseki:Server ;
# Example::
# Server-wide query timeout.
#
# Timeout - server-wide default: milliseconds.
# Format 1: "1000" -- 1 second timeout
# Format 2: "10000,60000" -- 10s timeout to first result,
# then 60s timeout for the rest of query.
#
# See javadoc for ARQ.queryTimeout for details.
# This can also be set on a per dataset basis in the dataset assembler.
#
# ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "30000" ] ;

# Add any custom classes you want to load.
# Must have a "public static void init()" method.
# ja:loadClass "your.code.Class" ;

# End triples.
.

如果我希望数据集可供客户端和网络浏览器界面使用,我应该如何更改它?

最佳答案

问题不在于 config file ,但使用默认值 shiro.ini文件在 .../apache-jena-fuseki-2.5.0/run/shiro.ini .默认值只允许本地访问,而我的访问是服务器。更改说明已经足够清楚了。这里是更改后的相关部分:

[users]
# Implicitly adds "iniRealm = org.apache.shiro.realm.text.IniRealm"
admin=passXXX ## changed

[roles]

[urls]
## Control functions open to anyone
/$/status = anon
/$/ping = anon

## and the rest are restricted to localhost.
##/$/** = localhostFilter ## commented out

## If you want simple, basic authentication user/password
## on the operations,
## 1 - set a better password in [users] above.
## 2 - comment out the "/$/** = localhost" line and use:
"/$/** = authcBasic,user[admin]" ## enabled, removed ##

我假设它在某处得到了解释,当我从本地主机安装移动到服务器时,我阅读了它并忘记了它。如果界面指示未授予权限而不是邀请选择数据集,那将会很有帮助。

关于jena - fuseki 网络界面不显示数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43685530/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com