简体   繁体   English

安装Jena Fuseki有哪些必要条件(如果有)?

[英]What perquisites, if any, are there for installing Jena Fuseki?

I am using Ubuntu 14.04, but I think this question and its answers could be relevant to a beginner in Jena Fuseki using any operating system (if adapted slightly). 我正在使用Ubuntu 14.04,但是我认为这个问题及其答案可能与使用任何操作系统(如果稍作改动)的Jena Fuseki的初学者有关。

I am trying to install Jena Fuseki, however, the instructions in all the tutorials I have found and on the website are unclear to me. 我正在尝试安装Jena Fuseki,但是,我对我发现的所有教程以及网站上的说明都不清楚。 I downloaded this file jena-fuseki-1.1.0-distribution.tar.gz and unzipped it into my home directory. 我下载了此文件jena-fuseki-1.1.0-distribution.tar.gz并将其解压缩到我的主目录中。

I then ran the following commands: 然后,我运行以下命令:

cd jena-fuseki-1.1.0
mkdir dataDir
chmod +x fuseki-server s-*
fuseki-server --update --loc=dataDir /myDataSet

However this was the output in my terminal after the last command: 但是,这是最后一条命令后在我的终端中的输出:

fuseki-server: command not found

I suspect there is something I haven't installed, but require to get this working. 我怀疑还没有安装某些东西,但是需要使它工作。 ie Do I need Java on my machine? 即我的机器上需要Java吗? Do I need Apache? 我需要Apache吗? Do I need Apache Jena? 我需要Apache Jena吗?

Or perhaps it is something entirely different that I am missing. 也许这是我完全不同的东西。 Keep in mind I am a beginner, so skipping over the obvious will not help me. 请记住,我是一个初学者,因此跳过明显的内容对我没有帮助。

The current dir . 当前目录. is usually not in the path for security reasons. 出于安全原因通常不在路径中。 Try: 尝试:

./fuseki-server --update --loc=dataDir /myDataSet

Also see Jena Fuseki Server command not found . 另请参见找不到Jena Fuseki Server命令

You need to have JAVA installed to successfully run Fuseki, but by the looks of your error you have it installed already, otherwise you would be getting an error message 'java: not found' (or similar). 您需要安装JAVA才能成功运行Fuseki,但是从错误的外观看,您已经安装了它,否则您将收到错误消息“ java:not found”(或类似消息)。

Except for java there shouldn't be any other dependencies. 除Java外,不应有任何其他依赖项。 I had a similar problem to you which I just solved and apparently it is a Linux problem and not a Fuseki error. 我有一个刚刚解决的问题 ,显然是Linux问题,而不是Fuseki错误。 This is what I did to get it working: 这是我为使其正常工作所做的:

  1. Download the 'apache-jena-2.12.0.tar.gz' and extract it to your (root)/opt folder (which seem to be the directory which is reserved for all the software and add-on packages that are not a part of the default installation). 下载“ apache-jena-2.12.0.tar.gz”并将其解压缩到您的(根)/ opt文件夹(该目录似乎是为所有不属于该软件包的软件和附加软件包保留的目录)默认安装)。
  2. The folder I extracted into /opt was called jena-fuseki-1.1.0, if you have a different name you have to change jena-fuseki-1.1.0 in the next two commands to the folder name you have. 我解压缩到/ opt中的文件夹称为jena-fuseki-1.1.0,如果您使用其他名称,则必须在接下来的两个命令中将jena-fuseki-1.1.0更改为您拥有的文件夹名称。 Run this command: export PATH=$PATH:/opt/jena-fuseki-1.1.0 运行此命令: export PATH=$PATH:/opt/jena-fuseki-1.1.0
  3. Then run: export FUSEKI_HOME=/opt/jena-fuseki-1.1.0 然后运行: export FUSEKI_HOME=/opt/jena-fuseki-1.1.0
  4. If you want a persistent data store you should create a new folder in the 'jena-fuseki-1.1.0' folder in which to store the data. 如果需要持久性数据存储,则应在“ jena-fuseki-1.1.0”文件夹中创建一个新文件夹,用于存储数据。 You do this by running mkdir dataDir from within the 'jena-fuseki-1.1.0' folder; 您可以通过在“ jena-fuseki-1.1.0”文件夹中运行mkdir dataDir来完成此操作; (if you) call it 'dataDir' (you should) then run: fuseki-server --update --loc=dataDir /myDataset . (如果您将其称为“ dataDir”(您应该)),然后运行: fuseki-server --update --loc=dataDir /myDataset You can change the name of 'dataDir' if you like and you can also pick a different name for /myDataset if you like which is the name you use when making calls to your database. 如果愿意,可以更改'dataDir'的名称;如果愿意,还可以为/ myDataset选择一个不同的名称,这是在调用数据库时使用的名称。

You don't need to download Jena seperately to use Fuseki. 您无需单独下载Jena即可使用Fuseki。 That is all; 就这些; you can now browse to 'localhost:3030' and start SPARQLing away :) 您现在可以浏览到'localhost:3030'并开始SPARQLing :)

./fuseki-server --update --loc=dataDir /myDataSet

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM