def __init__(self, citation_id: Optional[str], source: Source): Entity.__init__(self, citation_id) Dated.__init__(self) HasFiles.__init__(self) HasPrivacy.__init__(self) self.location = None self.source = source
def __init__(self, source_id: Optional[str], name: Optional[str] = None): Entity.__init__(self, source_id) Dated.__init__(self) HasFiles.__init__(self) HasLinks.__init__(self) HasPrivacy.__init__(self) self.name = name self.author = None self.publisher = None
def __init__(self, file_id: Optional[str], path: PathLike, media_type: Optional[MediaType] = None): Entity.__init__(self, file_id) Described.__init__(self) HasPrivacy.__init__(self) HasMediaType.__init__(self) HasNotes.__init__(self) HasCitations.__init__(self) self._path = Path(path) self.media_type = media_type
def __init__(self, person: Person, individual: Optional[str] = None, affiliation: Optional[str] = None): Entity.__init__(self) Localized.__init__(self) HasCitations.__init__(self) self._individual = individual self._affiliation = affiliation # Set the person association last, because the association requires comparisons, and self.__eq__() uses the # individual and affiliation names. self.person = person
def __init__(self, event_id: Optional[str], event_type: EventType, date: Optional[Datey] = None): Entity.__init__(self, event_id) Dated.__init__(self) HasFiles.__init__(self) HasCitations.__init__(self) Described.__init__(self) HasPrivacy.__init__(self) self.date = date self._type = event_type
def __init__(self, person_id: Optional[str]): Entity.__init__(self, person_id) HasFiles.__init__(self) HasCitations.__init__(self) HasLinks.__init__(self) HasPrivacy.__init__(self)
def __init__(self, note_id: str, text: str): Entity.__init__(self, note_id) self._text = text
def __init__(self, person: Person, role: PresenceRole, event: Event): Entity.__init__(self) self.person = person self.role = role self.event = event
def __init__(self, place_id: Optional[str], names: List[PlaceName]): Entity.__init__(self, place_id) HasLinks.__init__(self) self._names = names self._coordinates = None
def __init__(self, encloses: Place, enclosed_by: Place): Entity.__init__(self) Dated.__init__(self) HasCitations.__init__(self) self.encloses = encloses self.enclosed_by = enclosed_by