示例#1
0
 def __init__(self, store=None, id=None):
     if store is not None and id is not None:
         ConjunctiveGraph.__init__(self, store, id)
     else:
         ConjunctiveGraph.__init__(self)
     for (key, val) in namespaces.iteritems():
         self.bind(key, val)
示例#2
0
 def __init__(self, store=None, id=None):
     if store is not None and id is not None:
         ConjunctiveGraph.__init__(self, store, id)
     else:
         ConjunctiveGraph.__init__(self)
     for (key,val) in namespaces.iteritems():
         self.bind(key, val)
示例#3
0
 def __init__(self, store=None, id=None):
     # id *should* be aggregation URI
     if store != None and id != None:
         ConjunctiveGraph.__init__(self, store, id)
     else:
         ConjunctiveGraph.__init__(self)
     for (key, val) in namespaces.items():
         self.bind(key, val)
示例#4
0
文件: AOFGraph.py 项目: jo-tud/aof
    def __init__(self,identifier):
        pass
        store = IOMemory() # TODO: Change the storage mechanism to a persistent one and implement caching
        #d=Dataset(self, store=store,default_union=True)

        ConjunctiveGraph.__init__(self, store=store, identifier=identifier)
        self.id=identifier

        # Make sure the aof namespace is always known to AOFGraph
        self.bind('aof', AOF)
示例#5
0
文件: rdfObject.py 项目: IIIF/iiif.io
 def __init__(self, store=None, id=None):
     if store != None and id != None:
         ConjunctiveGraph.__init__(self, store, id)
     else:
         ConjunctiveGraph.__init__(self)
     self.bindall()
示例#6
0
 def __init__(self, store=None, id=None):
     if store != None and id != None:
         ConjunctiveGraph.__init__(self, store, id)
     else:
         ConjunctiveGraph.__init__(self)
     self.bindall()
示例#7
0
 def __init__(self, endpoint):
     ConjunctiveGraph.__init__(self, 'SPARQLStore')
     self.open(endpoint)
     self.namespace_manager = ns_mgr
 def __init__(self, endpoint):
     ConjunctiveGraph.__init__(self, 'SPARQLStore')
     self.open(endpoint)
     self.namespace_manager = ns_mgr
示例#9
0
 def __init__(self, do_open=False, create=False):
     identifier = "jocondelab"        
     store = plugin.get("SQLAlchemy", Store)(identifier=identifier)
     ConjunctiveGraph.__init__(self, store=store, identifier=identifier)
     if do_open:
         self.open(create)