owmeta.data_trans.bibtex module¶
- class owmeta.data_trans.bibtex.BibTexDataSource(*args, no_type_decl=False, **kwargs)[source]¶
Bases:
DSMixin
,LocalFileDataSource
- File name
DatatypeProperty
Attribute:
file_name
- Torrent file name
DatatypeProperty
Attribute:
torrent_file_name
- MD5 hash
DatatypeProperty
Attribute:
md5
- SHA-256 hash
DatatypeProperty
Attribute:
sha256
- SHA-512 hash
DatatypeProperty
Attribute:
sha512
- Input source
ObjectProperty
Attribute:
source
The data source that was translated into this one
- Transformation
ObjectProperty
Attribute:
transformation
Information about the transformation process that created this object
- Translation
ObjectProperty
Attribute:
translation
Information about the translation process that created this object
- Description
DatatypeProperty
Attribute:
description
Free-text describing the data source
- class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci")¶
- File name
- class owmeta.data_trans.bibtex.BibTexDataTranslator(*args, no_type_decl=False, **kwargs)[source]¶
Bases:
DTMixin
,DataTranslator
Input type(s):
BibTexDataSource
Output type(s):
EvidenceDataSource
- input_type¶
alias of
BibTexDataSource
- output_type¶
alias of
EvidenceDataSource
- translate()[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")¶
- class owmeta.data_trans.bibtex.EvidenceDataSource(*args, no_type_decl=False, **kwargs)[source]¶
Bases:
DSMixin
,DataSource
- Context
ObjectProperty
Attribute:
evidence_context
The context
- Input source
ObjectProperty
Attribute:
source
The data source that was translated into this one
- Transformation
ObjectProperty
Attribute:
transformation
Information about the transformation process that created this object
- Translation
ObjectProperty
Attribute:
translation
Information about the translation process that created this object
- Description
DatatypeProperty
Attribute:
description
Free-text describing the data source
- after_transform()[source]¶
Called after
Transformer.transform
.This method should handle any of the things that should happen for an output data source after
Transformer.transform
(orTranslator.translate
). This can include things like flushing output to files, closing file handles, and writing triples in a Context.NOTE: Be sure to call this method via super() in sub-classes
- class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci")¶
- context_property¶
“Context”, a
ObjectProperty
: The context
- Context