Example #1
0
 def __init__(self, conf=False):
     Configure.__init__(self)
     Configureable.__init__(self,conf)
     # We copy over all of the configuration that we were given
     self.copy(self.conf)
     self.namespace = Namespace("http://openworm.org/entities/")
     self.molecule_namespace = Namespace("http://openworm.org/entities/molecules/")
     self['nx'] = _B(self._init_networkX)
     self['rdf.namespace'] = self.namespace
     self['molecule_name'] = self._molecule_hash
     self['new_graph_uri'] = self._molecule_hash
     self._init_rdf_graph()
Example #2
0
 def __init__(self, conf=False):
     Configure.__init__(self)
     Configureable.__init__(self, conf)
     # We copy over all of the configuration that we were given
     self.copy(self.conf)
     self.namespace = Namespace("http://openworm.org/entities/")
     self.molecule_namespace = Namespace(
         "http://openworm.org/entities/molecules/")
     self['nx'] = _B(self._init_networkX)
     self['rdf.namespace'] = self.namespace
     self['molecule_name'] = self._molecule_hash
     self['new_graph_uri'] = self._molecule_hash
     self._init_rdf_graph()
Example #3
0
 def __init__(self, **kwargs):
     Configureable.__init__(self, **kwargs)
     if not isinstance(self.conf, Data):
         raise BadConf("Not a Data instance: "+ str(self.conf))
Example #4
0
 def __init__(self, **kwargs):
     if self.i == 1:
         raise Exception(self.i)
     self.i+=1
     Configureable.__init__(self, **kwargs)
     self.graph = False
Example #5
0
 def __init__(self, conf = False):
     if isinstance(conf, Data):
         Configureable.__init__(self, conf)
     else:
         Configureable.__init__(self, Data(conf))
Example #6
0
 def __init__(self, **kwargs):
     if self.i == 1:
         raise Exception(self.i)
     self.i += 1
     Configureable.__init__(self, **kwargs)
     self.graph = False
Example #7
0
 def __init__(self, conf=False):
     if isinstance(conf, Data):
         Configureable.__init__(self, conf)
     else:
         Configureable.__init__(self, Data(conf))
Example #8
0
 def __init__(self, **kwargs):
     Configureable.__init__(self, **kwargs)
     if not isinstance(self.conf, Data):
         raise BadConf("Not a Data instance: " + str(self.conf))