bionty.PublicSource#

class bionty.PublicSource(entity: str, organism: str, currently_used: bool, source: str, version: str, source_name: Optional[str], url: Optional[str], md5: Optional[str], source_website: Optional[str])#
class bionty.PublicSource(*db_args)

Bases: Registry

Versions of public ontologies.

Warning

Do not modify the records unless you know what you are doing!

Fields

id AutoField

Internal id, valid only in one DB instance.

uid CharField

A universal id (hash of selected field).

entity CharField

Entity class name.

organism CharField

Organism name, use ‘all’ if unknown or none applied.

currently_used BooleanField

Whether this record is currently used.

source CharField

Source key, short form, CURIE prefix for ontologies.

source_name TextField

Source full name, long form.

version CharField

Version of the source.

url TextField

URL of the source file.

md5 TextField

Hash md5 of the source file.

source_website TextField

Website of the source.

created_at DateTimeField

Time of creation of record.

updated_at DateTimeField

Time of last update to record.

created_by ForeignKey

Creator of record, a User.

Methods