- 我dowloaded的定式獨立服務器從這裏: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:未找到
定式 - 版本0.2.8-SNAPSHOT(生產日期:20130530-0913)
我我做錯了嗎?從各種渠道來看,這是爲其他人工作,但不適合我。
某些警告輸出顯示「沒有這樣的靜態內容目錄:/ Users/hdeus/Documents/KnowledgeBase/SPARQL/Engines /」。該目錄是否存在? –