def __init__(self, project_id, config, datadir): DatadirMixin.__init__(self, datadir, 'projects', project_id) self.project_id = project_id self.name = config['name'] self.language = config['language'] self.analyzer_spec = config.get('analyzer', None) self.vocab_id = config.get('vocab', None) self.config = config self._base_datadir = datadir self._init_access()
def __init__(self, project_id, config, datadir, registry): DatadirMixin.__init__(self, datadir, 'projects', project_id) self.project_id = project_id self.name = config.get('name', project_id) self.language = config['language'] self.analyzer_spec = config.get('analyzer', None) self.transform_spec = config.get('transform', 'pass') self.vocab_id = config.get('vocab', None) self.config = config self._base_datadir = datadir self.registry = registry self._init_access()
def __init__(self, vocab_id, datadir): DatadirMixin.__init__(self, datadir, 'vocabs', vocab_id) self.vocab_id = vocab_id
def __init__(self, vocab_id, datadir, language): DatadirMixin.__init__(self, datadir, 'vocabs', vocab_id) self.vocab_id = vocab_id self.language = language self._skos_vocab = None