我已安装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中存储数据,但是Web界面不显示数据集,我无法添加数据集。当我尝试查询界面时说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.
.
如果我想要客户端和webbrowser界面可用的数据集,我应该如何更改它?
答案 0 :(得分:6)
问题不在于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 ##
我认为它在某处被解释了,当我从localhost安装移动到服务器时,我读了它并忘记了它。如果接口指示不提供权限而不是邀请选择数据集,将会很有帮助。