- 我从这里下载了 Fuseki 独立服务器:http: //jena.apache.org/documentation/serving_data/#download-fuseki
- 选择可执行jar
配置了一个文件:
@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 tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . [] rdf:type fuseki:Server ; fuseki:services ( <#testService> ) . <#testService> rdf:type fuseki:Service ; fuseki:name "testService" ; fuseki:serviceQuery "query" ; fuseki:serviceReadGraphStore "get" ; fuseki:dataset <#Dataset> . <#Dataset> rdf:type ja:RDFDataset ; rdfs:label "a label for your dataset" ; ja:defaultGraph [ rdfs:label "sample.rdf" ; a ja:MemoryModel ; ja:content [ja:externalContent <file:/Users/hdeus/Documents/KnowledgeBase/SPARQL/TestData/sample.rdf> ] . ] .
冉
java -jar fuseki-server.jar --config=fuseki_config.ttl
20:46:08 INFO Home Directory: /Users/hdeus/Documents/KnowledgeBase/SPARQL/Engines/. 20:46:08 WARN No such directory for static content: /Users/hdeus/Documents/KnowledgeBase/SPARQL/Engines/. 20:46:08 WARN You may need to set the --pages or --home option to configure static content correctly 20:46:08 INFO Configuration file: fuseki_config.ttl 20:46:08 INFO Service: <file:///Users/hdeus/Documents/KnowledgeBase/SPARQL/Engines/fuseki_config.ttl#testService> 20:46:08 INFO name = testService 20:46:08 INFO query = /testService/query 20:46:08 INFO graphStore(R) = /testService/get 20:46:09 WARN Already initialized: dataset = testService 20:46:09 INFO Dataset path = /testService 20:46:09 INFO Fuseki 0.2.8-SNAPSHOT 20130530-0913 20:46:09 INFO Started 2013/06/01 20:46:09 EDT on port 3030
去了
http://localhost:3030/
并收到以下消息:错误 404:未找到
Fuseki - 版本 0.2.8-SNAPSHOT(构建日期:20130530-0913)
我做错了什么?从各种来源来看,这对其他人有用,但对我无效。