Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 def __init__(self, person_id: Optional[str]):
     Entity.__init__(self, person_id)
     HasFiles.__init__(self)
     HasCitations.__init__(self)
     HasLinks.__init__(self)
     HasPrivacy.__init__(self)
Ejemplo n.º 7
0
 def __init__(self, note_id: str, text: str):
     Entity.__init__(self, note_id)
     self._text = text
Ejemplo n.º 8
0
 def __init__(self, person: Person, role: PresenceRole, event: Event):
     Entity.__init__(self)
     self.person = person
     self.role = role
     self.event = event
Ejemplo n.º 9
0
 def __init__(self, place_id: Optional[str], names: List[PlaceName]):
     Entity.__init__(self, place_id)
     HasLinks.__init__(self)
     self._names = names
     self._coordinates = None
Ejemplo n.º 10
0
 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