Note
This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.
datasources.models.quality module¶
This module contains models related to the quality assessment of data sources.
-
class
datasources.models.quality.
QualityCriterion
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A weighted criterion to determine whether a data source meets a certain quality level.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
do_not_call_in_templates
= True¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
metadata_field
¶ Which metadata field represents this criterion?
-
metadata_field_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
quality_level
¶ Which quality level does this criterion belong to?
-
quality_level_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
weight
¶ What proportion of the quality level does this criterion provide?
-
exception
-
class
datasources.models.quality.
QualityLevel
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A set of criteria that is required to grant a particular quality level.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
criteria
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
do_not_call_in_templates
= True¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
level
¶ What level is this?
-
objects
= <django.db.models.manager.Manager object>¶
-
ruleset
¶ Which ruleset does this level belong to?
-
ruleset_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
threshold
¶ Threshold level that must be exceeded by criteria weights to pass this level
-
exception
-
class
datasources.models.quality.
QualityRuleset
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A ruleset for assessing the quality of a data source.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
do_not_call_in_templates
= True¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
levels
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ Name of the ruleset
-
objects
= <django.db.models.manager.Manager object>¶
-
short_name
¶ Short text identifier
-
version
¶ Ruleset version - distinguishes successive versions of the same set
-
exception