fuseki Web界面不显示数据集 [英] fuseki webinterface does not show datasets

查看:210
本文介绍了fuseki Web界面不显示数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了fuseki并使用

I have installed fuseki and start the server with

#!/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.

The server is working and programs can store data in /testDB, but the webinterface does not show the datasets and I cannot add a dataset. When I try to query the interface says Please select a dataset.

我想我以前有这个问题,可以通过重新安装fuseki文件夹来解决.我想了解我做错了什么以及如何避免这个问题. 谢谢!

I think I had this problem before and solved it by reinstalling the fuseki folder. I would like to understand what I did wrong and how to avoid this problem. Thank you!

配置文件是自动生成的文件.它是:

the config file is the one automatically generated. It is:

# 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界面可用的数据集,应该如何更改?

How should I change it, if I want to datasets available to clients and to the webbrowser interface?

推荐答案

问题不是出在config file上,而是出在.../apache-jena-fuseki-2.5.0/run/shiro.ini中的默认shiro.ini文件上.默认值仅允许本地访问,而我的访问是服务器.更改说明很清楚.这里是更改后的相关部分:

The problem was not with the config file, but with the default shiro.ini file in .../apache-jena-fuseki-2.5.0/run/shiro.ini. The default values do only allow local access and my access was a server. The instructions to change are clear enough. Here the relevant parts after the change:

[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 ##

我认为它是在某处解释的,当我从本地安装转移到服务器时,我读了却忘记了它.如果界面指示未授予许可而不是邀请选择数据集,则将很有帮助.

I assume that it is explained somewhere and I read it and forgot it when I moved from my localhost installation to a server. It would be helpful if the interface would indicate that permissions are not given in stead of inviting to select a dataset.

这篇关于fuseki Web界面不显示数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆