owmeta.data_trans.neuron_data module

class owmeta.data_trans.neuron_data.NeuronCSVDataSource(*args, no_type_decl=False, **kwargs)[source]

Bases: DSMixin, CSVDataSource

BibTeX filesDatatypeProperty

Attribute: bibtex_files

List of BibTeX files that are referenced in the csv file by entry ID

CSV file nameDatatypeProperty

Attribute: csv_file_name

Header column namesDatatypeProperty

Attribute: csv_header

CSV field delimiterDatatypeProperty

Attribute: csv_field_delimiter

Default value: ,

File nameDatatypeProperty

Attribute: file_name

Torrent file nameDatatypeProperty

Attribute: torrent_file_name

MD5 hashDatatypeProperty

Attribute: md5

SHA-256 hashDatatypeProperty

Attribute: sha256

SHA-512 hashDatatypeProperty

Attribute: sha512

Input sourceObjectProperty

Attribute: source

The data source that was translated into this one

TransformationObjectProperty

Attribute: transformation

Information about the transformation process that created this object

TranslationObjectProperty

Attribute: translation

Information about the translation process that created this object

DescriptionDatatypeProperty

Attribute: description

Free-text describing the data source

Parameters
commit_opCommitOp, optional

The operation to use for commiting the file changes. The default is COPY

bibtex_files

“BibTeX files”, a DatatypeProperty: List of BibTeX files that are referenced in the csv file by entry ID

class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci/bio")
class owmeta.data_trans.neuron_data.NeuronCSVDataTranslator(*args, no_type_decl=False, **kwargs)[source]

Bases: DTMixin, CSVDataTranslator

Input type(s): NeuronCSVDataSource

Output type(s): DataWithEvidenceDataSource

input_type

alias of NeuronCSVDataSource

output_type

alias of DataWithEvidenceDataSource

translate(data_source)[source]

Notionally, this method takes one or more data sources, and translates them into some other data source that captures essentially the same information, but, possibly, in a different format. Additional sources can be passed in as well for auxiliary information which are not “translated” in their entirety into the output data source. Such auxiliarry data sources should be distinguished from the primary ones in the translation

Parameters
*args

Input data sources

**kwargs

Named input data sources

Returns
the output data source
class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci/bio")