QuitStore
QuitStore copied to clipboard
Automatic filenaming on branched graphs.
-
Start quit on an new repo.
content = "<http://ex.org/a> <http://ex.org/b> <http://ex.org/c> ." with TemporaryRepositoryFactory().withGraph("http://example.org/", content) as repo: args = quitApp.parseArgs(['-t', repo.workdir]) objects = quitApp.initialize(args) config = objects['config'] app = create_app(config).test_client() -
Create two branches from the same original branch
app.post("/branch", data={"oldbranch": "master", "newbranch": "develop"}) app.post("/branch", data={"oldbranch": "master", "newbranch": "target"}) -
Insert data into the same new graph on both branches.
update = "INSERT DATA {graph <http://new.org/> {<http://ex.org/x> <http://ex.org/y> <http://ex.org/z> .}}" app.post('/sparql/target', data={"update": update}) update = "INSERT DATA {graph <http://new.org/> {<http://ex.org/z> <http://ex.org/y> <http://ex.org/x> .}}" app.post('/sparql/develop', data={"update": update})
Problem: in one branch there will be new.nt and in the other one new_1.nt.
Further there is a problem merging the two graphs from different files.