예제 #1
0
파일: stress-ktbs.py 프로젝트: fderbel/ktbs
def setUp():
    global ARGS, BASE
    if ARGS.ktbs is None:
        my_ktbs = make_ktbs()
        ARGS.ktbs = my_ktbs.uri
    elif ARGS.ktbs.startswith("file://"):
        my_ktbs = make_ktbs(repository=ARGS.ktbs[7:])
        ARGS.ktbs = my_ktbs.uri
    else:
        my_ktbs = get_ktbs(ARGS.ktbs)
    
    BASE = my_ktbs.create_base(label="stress-ktbs-base")
    model = BASE.create_model("m")
    model.unit = KTBS.millisecond
    BASE.create_stored_trace("t/", "m", "2012-09-06T00:00:00Z",
                             default_subject="Alice")
예제 #2
0
파일: stress-ktbs.py 프로젝트: HuaiQiu/ktbs
def setUp():
    global ARGS, BASE

    if ARGS.ktbs is None:
        my_ktbs = make_ktbs()
        ARGS.ktbs = my_ktbs.uri
    elif ARGS.ktbs.startswith("file://"):
        ktbs_config = get_ktbs_configuration()
        ktbs_config.set('rdf_database', 'repository', ARGS.ktbs[7:])
        my_ktbs = make_ktbs(ktbs_config)
        ARGS.ktbs = my_ktbs.uri
    else:
        my_ktbs = get_ktbs(ARGS.ktbs)

    BASE = my_ktbs.create_base(label="stress-ktbs-base")
    model = BASE.create_model("m")
    model.unit = KTBS.millisecond
    BASE.create_stored_trace("t/",
                             "m",
                             "2012-09-06T00:00:00Z",
                             default_subject="Alice")
예제 #3
0
 def setup(self):
     # Run the kTBS on another from the other tests to prevent reusing existing semaphores
     self.my_ktbs = make_ktbs("http://localhost:54321/")
     self.service = self.my_ktbs.service
예제 #4
0
 def setUp(self):
     # Run the kTBS on another from the other tests to prevent reusing existing semaphores
     self.my_ktbs = make_ktbs("http://localhost:54321/")
     self.service = self.my_ktbs.service
예제 #5
0
 def setup(self):
     self.my_ktbs = make_ktbs()
예제 #6
0
 def setUp(self):
     self.my_ktbs = make_ktbs()
예제 #7
0
 def setUp(self):
     self.my_ktbs = make_ktbs("http://localhost:12345/")
     self.service = self.my_ktbs.service