コード例 #1
0
ファイル: rdfObject.py プロジェクト: tanmoydeb07/cheshire3
 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
ファイル: rdfObject.py プロジェクト: ReinSi/cheshire3
 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
ファイル: ore.py プロジェクト: sblack-usu/foresite-toolkit
 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
コード例 #8
0
 def __init__(self, endpoint):
     ConjunctiveGraph.__init__(self, 'SPARQLStore')
     self.open(endpoint)
     self.namespace_manager = ns_mgr
コード例 #9
0
ファイル: rdf_models.py プロジェクト: IRI-Research/jocondelab
 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)