2016-12-23 3 views
1

내가 명령 줄에서 Blazegraph 2.1.1을 실행하고를 통해 네임 스페이스를 만들 수 있습니다. 웹 인터페이스는 잘 작동하므로 많은 GET 작업을 수행하십시오. REST API를 통해 새로운 네임 스페이스를 만들고 싶습니다. 나는이 명령을 Blazegraph을 실행 Blazegraph는 REST API를

java -server -Xmx4g -Dbigdata.propertyFile=RWStore.properties -jar blazegraph.jar 

은 POST입니다 : 내가 응답으로 (GET과 동일) 기존 네임 스페이스의 목록을 받기를 실행할 때마다

http://localhost:9999/bigdata/namespace 

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> 
<properties> 
<entry key="com.bigdata.rdf.sail.namespace">MY_NAMESPACE</entry> 
<entry key="com.bigdata.rdf.store.AbstractTripleStore.quads">false</entry> 
<entry key="com.bigdata.rdf.store.AbstractTripleStore.axiomsClass">com.bigdata.rdf.axioms.OwlAxioms</entry> 
<entry key="com.bigdata.rdf.sail.truthMaintenance">true</entry> 
</properties> 

, 우체부가 응답을 보여주는

Content-Type →application/rdf+xml 
Server →Jetty(9.2.z-SNAPSHOT) 
Transfer-Encoding →chunked 

내가 톰캣에 배포 된 Blazegraph 인스턴스에 대해 같은 POST를 실행

, 그것은 예상대로 작동하고 이름 공간이 생성됩니다로 헤더.

내가 네임 스페이스의 생성을 허용하는 명령 행 버전에서 뭔가를 활성화해야합니까? Tomcat 인스턴스 (다른 저널)와 동일한 등록 정보 파일을 사용하고 있습니다. 또한 web.xml을 재정의하려고 시도했지만 차이점도 없었습니다.

이 내 등록 정보 파일입니다 :

com.bigdata.journal.AbstractJournal.file=C:/Development/Ontology/BlazegraphServer/bigdata.jnl 
com.bigdata.journal.AbstractJournal.bufferMode=DiskRW 
com.bigdata.service.AbstractTransactionService.minReleaseAge=1 
com.bigdata.btree.writeRetentionQueue.capacity=4000 
com.bigdata.btree.BTree.branchingFactor=128 
com.bigdata.journal.AbstractJournal.initialExtent=209715200 
com.bigdata.journal.AbstractJournal.maximumExtent=209715200 
com.bigdata.rwstore.RWStore.readBlobsAsync=false 
com.bigdata.rdf.store.DataLoader.closure=None 
com.bigdata.rdf.sail.truthMaintenance=true 
com.bigdata.rdf.store.AbstractTripleStore.quads=false 
com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers=true 
com.bigdata.rdf.store.AbstractTripleStore.textIndex=true 
com.bigdata.rdf.store.AbstractTripleStore.axiomsClass=com.bigdata.rdf.axioms.OwlAxioms 
com.bigdata.namespace.kb.lex.com.bigdata.btree.BTree.branchingFactor=400 
com.bigdata.namespace.kb.spo.com.bigdata.btree.BTree.branchingFactor=1024 

답변

2

내가 문제는 POST 명령에 사용 된 네임 스페이스가 될 수 있다고 생각합니다. 실행 항아리의 기본 URL은 /blazegraph입니다.

은 아래의 명령에 상응를 사용해 볼 수 있습니까?

curl -X POST -H 'Content-type: application/xml' --data @ns.xml http://localhost:9999/blazegraph/namespace 
+0

많은 감사 @ 브래드! 그것은 작은 것들입니다. 나에게 많은 좌절을 안겨 줬어. – Wolfgang