gStore 맵 데이터베이스 관계형 시스템 개요

블로그 게시물을 배포하고 설치 gStore지도 데이터베이스 관리 소프트웨어, 여기에서 어떻게 자신의 데이터 처리 및 관리를 사용하는 우리에게 얘기를하는 방법에 대해 설명합니다.

 영화 지식과 실무 호출의지도에 대한 예를 아래에

실험 환경

우분투 16.04

파이썬 3.5.3

시작 gStore

sudo bin/ghttp 9000

메시지가 9000 포트를 점유하는 경우, 당신은 다시 시작하는 과정의 좋은 끝을 구축 할 필요가있다.

sudo bin/shutdown 9000
sudo bin/ghttp 9000

자신의 프로세스를 구축하는 과정에서 데이터가 손실 될 수 있습니다 종료에 무료하지 않도록주의하십시오.

물론, 당신이있는 거 좋은 경우는 새로운 서비스를 다시 시작하기 위해 다른 포트를 사용할 수 있지만, 특히 같은 경우라는 데이터베이스 파일에 수행하는 것이 좋습니다하지 않습니다.

API 호출을 사용하여

여기에 문서의 존재 주어진 도움말 섹션의 저자가 수정되었습니다.

import sys
sys.path.append('../src')
import GstoreConnector
IP = "127.0.0.1"
Port = 9000
username = "root"
password = "123456"
sparql = "select ?x where \
                 { \
                     ?x  <rdf:type> <ub:UndergraduateStudent>. \
                 }"
filename = "res.txt"

# start a gc with given IP, Port, username and password
gc =  GstoreConnector.GstoreConnector(IP, Port, username, password)

# build a database with a RDF graph
res = gc.build("lubm", "data/lubm/lubm.nt")
print(res)

# load the database 
res = gc.load("lubm")
print(res);

# query
res = gc.query("lubm", "json", sparql)
print(res)

# query and save the result in a file
gc.fquery("lubm", "json", sparql, filename)

# save the database if you have changed the database
res = gc.checkpoint("lubm")
print(res)

# show information of the database
res = gc.monitor("lubm")
print(res)

# show all databases
res = gc.show()
print(res)

# get CoreVersion and APIVersion
res = gc.getCoreVersion()
print(res)
res = gc.getAPIVersion()
print(res)

운영 결과 

개요

뿐만 아니라 인터페이스의 개인적인 사용을 사이에 예나의 대비가 아름다운, 그래서 속도가 크게 개선되었습니다되지라고 생각합니다. 그리고 SPARQL 쿼리 언어 쿼리의 사용, 개인은 정교한 사이버을 사용하지 좋아해요. 국내 데이터베이스 관리 소프트웨어와 동시에, 보안도 보장됩니다.

출시 여섯 개 원래 기사 · 원 찬양 5 · 조회수 (420)

추천

출처blog.csdn.net/weixin_40469691/article/details/105388600