【问题标题】:fuseki webinterface does not show datasetsfuseki 网络界面不显示数据集
【发布时间】:2017-09-26 21:16:51
【问题描述】:

我已经安装了 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.
   .

如果我想将数据集提供给客户端和网络浏览器界面,我应该如何更改它?

【问题讨论】:

  • 你能发布你的配置文件吗?

标签: jena fuseki


【解决方案1】:

问题不在于config file,而在于.../apache-jena-fuseki-2.5.0/run/shiro.ini 中的默认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-3.17.0。谢谢!
猜你喜欢
  • 2019-01-07
  • 2018-11-20
  • 2014-07-29
  • 1970-01-01
  • 2023-01-03
  • 1970-01-01
  • 2015-09-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多