Metainfo

Models

class apis_core.apis_metainfo.models.Collection(*args, **kwargs)[source]

Allows to group entities and relation.

exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)[source]

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apis_core.apis_metainfo.models.Source(*args, **kwargs)[source]

Holds information about entities and their relations

exception DoesNotExist
exception MultipleObjectsReturned
class apis_core.apis_metainfo.models.TempEntityClass(*args, **kwargs)[source]

Base class to bind common attributes to many classes.

The common attributes are: written start and enddates recognized start and enddates which are derived by RegEx from the written dates. A review boolean field to mark an object as reviewed

exception DoesNotExist
exception MultipleObjectsReturned
save(parse_dates=True, *args, **kwargs)[source]

Adaption of the save() method of the class to automatically parse string-dates into date objects

class apis_core.apis_metainfo.models.Text(*args, **kwargs)[source]

Holds unstructured text associeted with one ore many entities/relations.

exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)[source]

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apis_core.apis_metainfo.models.Uri(id, uri, domain, rdf_link, entity, loaded, loaded_time)[source]
exception DoesNotExist
exception MultipleObjectsReturned
class apis_core.apis_metainfo.models.UriCandidate(*args, **kwargs)[source]

Used to store the URI candidates for automatically generated entities.

exception DoesNotExist
exception MultipleObjectsReturned