owmeta.data_trans.data_with_evidence_ds module¶
- class owmeta.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource(*args, no_type_decl=False, **kwargs)[source]¶
Bases:
DSMixin
,DataSource
A data source that has an “evidence context” containing statements which support those in its “data context”. The data source also has a combined context which imports both the data and evidence contexts. The data and evidence contexts have identifiers based on the data source’s identifier and the combined context has the same identifier as 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")¶
- combined_context_property¶
“Combined context”, a
ObjectProperty
: Context importing both the data and evidence contexts
- data_context_property¶
“Data context”, a
ObjectProperty
: The context in which primary data for this data source is defined
- evidence_context_property¶
“Evidence context”, a
ObjectProperty
: The context in which evidence for the “Data context” is defined