"""
Date types with dates.
"""
from __future__ import annotations
from typing import Any, TYPE_CHECKING
from typing_extensions import override
from betty.date import Datey, Date, DateySchema
from betty.json.linked_data import LinkedDataDumpableJsonLdObject, JsonLdObject
from betty.privacy import is_public
if TYPE_CHECKING:
from betty.serde.dump import DumpMapping, Dump
from betty.project import Project
[docs]
class HasDate(LinkedDataDumpableJsonLdObject):
"""
A resource with date information.
"""
[docs]
def dated_linked_data_contexts(self) -> tuple[str | None, str | None, str | None]:
"""
Get the JSON-LD context term definition IRIs for the possible dates.
:returns: A 3-tuple with the IRI for a single date, a start date, and an end date, respectively.
"""
return None, None, None