# AUTO-GENERATED by dartfx.cdif.codegen — DO NOT EDIT MANUALLY.
"""CDIF Provenance profile extending Core with prov:wasGeneratedBy activities, instruments, and HowTo plans."""
from __future__ import annotations
from typing import Any, ClassVar
from dartfx.cdif.models._base import CdifBaseModel
from dartfx.cdif.models.common import (
AdditionalProperty,
AdditionalPropertySpecification,
AgentInRole,
CdifConceptOrTermOrString,
Concept,
DefinedTerm,
HowTo,
HowToStep,
Identifier,
LanguageTaggedValue,
ObjectReference,
Organization,
Person,
RoleFiller,
ThingValue,
)
from dartfx.cdif.models.profiles.core import CdifCoreDataset
from dartfx.cdif.namespaces import SCHEMA
[docs]
class CdifProvenanceMixin(CdifBaseModel):
"""
Building block that defines the prov:wasGeneratedBy property for CDIF metadata records. Wraps the cdifProvActivity
building block as an array of provenance activities that describe how the described resource was generated.
"""
[docs]
class CdifProvenanceDataset(CdifCoreDataset, CdifProvenanceMixin):
"""CDIF Provenance profile extending Core with prov:wasGeneratedBy activities, instruments, and HowTo plans."""
rdf_type: ClassVar[Any] = [SCHEMA.Dataset]
cdif_profile_uri: ClassVar[str | None] = "https://w3id.org/cdif/provenance/2.0"
cdif_required_fields: ClassVar[tuple[str, ...]] = (
"@id",
"@type",
"@context",
"schema:name",
"schema:identifier",
"schema:dateModified",
"schema:subjectOf",
)
cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (
(
"schema:license",
"schema:conditionsOfAccess",
),
(
"schema:url",
"schema:distribution",
),
)
CdifProvenanceMixin.model_rebuild()
CdifProvenanceDataset.model_rebuild()
__all__ = [
"AdditionalProperty",
"AdditionalPropertySpecification",
"AgentInRole",
"CdifConceptOrTermOrString",
"CdifProvenanceDataset",
"CdifProvenanceMixin",
"Concept",
"DefinedTerm",
"HowTo",
"HowToStep",
"Identifier",
"LanguageTaggedValue",
"ObjectReference",
"Organization",
"Person",
"RoleFiller",
"ThingValue",
]