Profile Models
Generated CDIF profile Pydantic + RDF models.
- class dartfx.cdif.models.profiles.CdifCodelist(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, date_modified=None, url=None, license=None, conditions_of_access=None, pref_label=None, definition=None, note=None, has_top_concept=None, subject_of=None, **extra_data)[source]
Bases:
CdifBaseModelA controlled-vocabulary codelist implemented as a skos:ConceptScheme constrained for CDIF use. The scheme must have a resolvable @id and identify its top concepts via skos:hasTopConcept; each concept (CdifCodelistConcept) must have a resolvable @id, skos:inScheme, skos:prefLabel, and skos:notation. Hierarchical concepts must declare both skos:narrower (for JSON tree traversal) and skos:broader (for upward navigation) where hierarchy exists. CDIF metadata properties (schema:identifier, schema:dateModified, schema:license or schema:conditionsOfAccess) take precedence over the equivalent dcterms properties from the base skos:ConceptScheme.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[PropertyValue | str | list[PropertyValue | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
has_top_concept (Annotated[CdifCodelistConcept | list[CdifCodelistConcept] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hasTopConcept, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#ConceptScheme')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/codelist/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:prefLabel', 'schema:identifier', 'schema:dateModified', 'skos:hasTopConcept')
- identifier: Annotated[PropertyValue | str | list[PropertyValue | str] | None, RdfProperty(SCHEMA.identifier)]
- date_modified: Annotated[str | list[str] | None, RdfProperty(SCHEMA.dateModified)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- license: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.license)]
- conditions_of_access: Annotated[str | list[str] | None, RdfProperty(SCHEMA.conditionsOfAccess)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- has_top_concept: Annotated[CdifCodelistConcept | list[CdifCodelistConcept] | None, RdfProperty(SKOS.hasTopConcept)]
- subject_of: Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(SCHEMA.subjectOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifCodelistConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_scheme=None, pref_label=None, notation=None, definition=None, narrower=None, broader=None, **extra_data)[source]
Bases:
CdifBaseModelA SKOS Concept constrained for CDIF codelist use. Must have a resolvable @id, skos:inScheme, skos:notation, and skos:prefLabel. Becasue JSON-LD is an open-world implementation, any other skos properties may be included.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:inScheme', 'skos:prefLabel', 'skos:notation')
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- narrower: Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- broader: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifCompleteDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, has_primary_key=None, statistics=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifDataDescriptionDataset,CdifProvenanceMixin,CdifManifestMixinCDIF Complete composite profile combining Core, Discovery, Data Description, Provenance, and Manifest.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/complete/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', '@type', '@context', 'schema:name', 'schema:identifier', 'schema:dateModified', 'schema:subjectOf', 'schema:variableMeasured')
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:license', 'schema:conditionsOfAccess'), ('schema:url', 'schema:distribution'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifCoreDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifBaseModelBuilding block specifies core properties for CDIF schema.org metadata record, applicable to any resource type.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/core/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'))
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- same_as: Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- in_language: Annotated[str | list[str] | None, RdfProperty(SCHEMA.inLanguage)]
- date_modified: Annotated[str | list[str] | None, RdfProperty(SCHEMA.dateModified)]
- date_published: Annotated[str | list[str] | None, RdfProperty(SCHEMA.datePublished)]
- conditions_of_access: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.conditionsOfAccess)]
- license: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.license)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- distribution: Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(SCHEMA.distribution)]
- publishing_principles: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.publishingPrinciples)]
- keywords: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.keywords)]
- creator: Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(SCHEMA.creator)]
- contributor: Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.contributor)]
- publisher: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.publisher)]
- provider: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.provider)]
- funding: Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(SCHEMA.funding)]
- was_generated_by: Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(PROV.wasGeneratedBy)]
- was_derived_from: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(PROV.wasDerivedFrom)]
- subject_of: Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(SCHEMA.subjectOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifDataDescriptionDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_primary_key=None, statistics=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifDiscoveryDataset,CdifDataDescriptionMixinCDIF Data Description profile extending Discovery with variableMeasured, physical mapping, and stats.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/data_description/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:variableMeasured',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:license', 'schema:conditionsOfAccess'), ('schema:url', 'schema:distribution'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifDataDescriptionMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_primary_key=None, statistics=None, **extra_data)[source]
Bases:
CdifBaseModelAdditional constraints for CDIF data description level. Adds cdif:physicalDataType requirement on variableMeasured items and distribution-level cdi properties for file characterization (characterSet, fileSize, fileSizeUofM).
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:variableMeasured',)
- has_primary_key: Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.hasPrimaryKey)]
- statistics: Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.statistics)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifDiscoveryDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifDiscoveryMixinCDIF Discovery profile extending Core with measurement, variable, spatial, temporal, and quality.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/discovery/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifDiscoveryMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, **extra_data)[source]
Bases:
CdifBaseModelProfile module for discovery metadata. Currently a thin wrapper that composes cdifCore; reserved for discovery- specific extensions that are not part of the cdifCore foundation.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- measurement_technique: Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.measurementTechnique)]
- variable_measured: Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(SCHEMA.variableMeasured)]
- temporal_coverage: Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(SCHEMA.temporalCoverage)]
- has_quality_measurement: Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(DQV.hasQualityMeasurement)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifManifestDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifManifestMixinCDIF Manifest profile extending Core with package schema:hasPart resources and archive parts.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/manifest/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifManifestMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, **extra_data)[source]
Bases:
CdifBaseModelProfile module for packages: the resources that make up a dataset and where to retrieve each of them. Marks the catalog record as conformant to the CDIF manifest spec (https://w3id.org/cdif/manifest/1.1) and declares schema:hasPart in the two places a package needs it — on the Dataset, for parts that are independently accessible at their own addresses, and on a schema:distribution item, for component files inside an archive (ZIP, etc.) that have no address of their own. Both part shapes carry schema:about, so a part that describes another — a codebook, a data dictionary, a metadata sidecar — can say which one. The base schema:distribution anyOf [DataDownload, WebAPI] contributed by cdifCore is preserved — this BB only adds property constraints, no new anyOf branch. (Merged from the previous cdifProfile/cdifArchive BB, which held only the $defs for ArchivePart; everything now lives here.)
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- has_part: Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(SCHEMA.hasPart)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifProvenanceDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifProvenanceMixinCDIF Provenance profile extending Core with prov:wasGeneratedBy activities, instruments, and HowTo plans.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.CdifProvenanceMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelBuilding 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.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Core Profile
CDIF Core metadata profile (schema:Dataset).
- class dartfx.cdif.models.profiles.core.CdifConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, notation=None, definition=None, note=None, in_scheme=None, broader=None, narrower=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- broader: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.core.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.core.CdifCoreDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifBaseModelBuilding block specifies core properties for CDIF schema.org metadata record, applicable to any resource type.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/core/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'))
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- same_as: Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- in_language: Annotated[str | list[str] | None, RdfProperty(SCHEMA.inLanguage)]
- date_modified: Annotated[str | list[str] | None, RdfProperty(SCHEMA.dateModified)]
- date_published: Annotated[str | list[str] | None, RdfProperty(SCHEMA.datePublished)]
- conditions_of_access: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.conditionsOfAccess)]
- license: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.license)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- distribution: Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(SCHEMA.distribution)]
- publishing_principles: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.publishingPrinciples)]
- keywords: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.keywords)]
- creator: Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(SCHEMA.creator)]
- contributor: Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.contributor)]
- publisher: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.publisher)]
- provider: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.provider)]
- funding: Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(SCHEMA.funding)]
- was_generated_by: Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(PROV.wasGeneratedBy)]
- was_derived_from: Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(PROV.wasDerivedFrom)]
- subject_of: Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(SCHEMA.subjectOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.core.Identifier(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelProperties for a schema.org identifier (schema:PropertyValue pattern). Union-type policy: In CDIF profile UML models an attribute typed as schema:Identifier / schema:PropertyValue is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as the bare identifier value) OR a full schema:PropertyValue object (with explicit @type, propertyID, value). Consumers should accept either form.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:value', 'schema:url'),)
- property_id: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- value: Annotated[str | list[str] | None, RdfProperty(SCHEMA.value)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.core.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.core.Organization(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, additional_type=None, name=None, alternate_name=None, description=None, identifier=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Organization')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.core.Person(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, alternate_name=None, affiliation=None, contact_point=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModelschema for cdif profile of schema.org/Person
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
affiliation (Annotated[Organization | list[Organization] | None, RdfProperty(predicate=http://schema.org/affiliation, datatype=None, language=None, serializer=None, parser=None)])
contact_point (Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(predicate=http://schema.org/contactPoint, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Person')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- affiliation: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.affiliation)]
- contact_point: Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(SCHEMA.contactPoint)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.core.Reference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, had_role=None, relation=None, **extra_data)[source]
Bases:
CdifBaseModelSchema for a labeled link, a profile of schema.org/CreativeWork: a resolvable URL with an optional name and description. Optionally carries the DCAT relation surface (dcat:hadRole, dcterms:relation) for a link that expresses a typed relationship rather than a plain reference. Those two properties were a separate block, cdifDataType/cdifReference, which was an allOf of this schema plus exactly those two optional properties and nothing else – its dcat:Relationship co-type mandate had already been removed because it made every labeled link unsatisfiable and broke every schema:license example that followed schema.org’s own advice. Since both are optional, folding them in here changes no document’s validity while removing a block and five levels of $defs/Reference indirection. cdifReference was retired 2026-09-23.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
had_role (Annotated[Role | CdifConceptOrTermOrString | list[Role | CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://www.w3.org/ns/dcat#hadRole, datatype=None, language=None, serializer=None, parser=None)])
relation (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://purl.org/dc/terms/relation, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/CreativeWork')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- had_role: Annotated[Role | CdifConceptOrTermOrString | list[Role | CdifConceptOrTermOrString] | None, RdfProperty(DCAT.hadRole)]
- relation: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(DCTERMS.relation)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Discovery Profile
CDIF Discovery profile extending Core with measurement, variable, spatial, temporal, and quality.
- class dartfx.cdif.models.profiles.discovery.CdifConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, notation=None, definition=None, note=None, in_scheme=None, broader=None, narrower=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- broader: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.discovery.CdifDiscoveryDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifDiscoveryMixinCDIF Discovery profile extending Core with measurement, variable, spatial, temporal, and quality.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/discovery/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.discovery.CdifDiscoveryMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, **extra_data)[source]
Bases:
CdifBaseModelProfile module for discovery metadata. Currently a thin wrapper that composes cdifCore; reserved for discovery- specific extensions that are not part of the cdifCore foundation.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- measurement_technique: Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.measurementTechnique)]
- variable_measured: Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(SCHEMA.variableMeasured)]
- temporal_coverage: Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(SCHEMA.temporalCoverage)]
- has_quality_measurement: Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(DQV.hasQualityMeasurement)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.discovery.DefinedTerm(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, in_defined_term_set=None, term_code=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelschema.org Defined Term schema. Union-type policy: In CDIF profile UML models an attribute typed as schema:DefinedTerm is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as schema:name or schema:termCode in the default vocabulary) OR a full schema:DefinedTerm object (with explicit @type, name, identifier, termCode, inDefinedTermSet). Consumers should accept either form. Note that this differs from the cdif Concept policy: a Concept (skos:Concept) in CDIF profiles MUST be a controlled-vocabulary entry (object form or @id-reference) — plain strings are not permitted for Concept-typed values because vocabulary identity cannot be recovered from an unscoped label.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
in_defined_term_set (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/inDefinedTermSet, datatype=None, language=None, serializer=None, parser=None)])
term_code (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/termCode, datatype=None, language=None, serializer=None, parser=None)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DefinedTerm')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier', 'schema:termCode'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- in_defined_term_set: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.inDefinedTermSet)]
- term_code: Annotated[str | list[str] | None, RdfProperty(SCHEMA.termCode)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.discovery.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Data Description Profile
CDIF Data Description profile extending Discovery with variableMeasured, physical mapping, and stats.
- class dartfx.cdif.models.profiles.datadescription.CategoryStatistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, for_value=None, type_of_statistic=None, statistic=None, has_weight=None, **extra_data)[source]
Bases:
CdifBaseModelStatistics for a specific Category of an instance variable within a data set.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
for_value (Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/for, datatype=None, language=None, serializer=None, parser=None)])
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:for', 'cdi:statistic')
- for_value: Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(CDI['for'])]
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.CdifCodelistConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_scheme=None, pref_label=None, notation=None, definition=None, narrower=None, broader=None, **extra_data)[source]
Bases:
CdifBaseModelA SKOS Concept constrained for CDIF codelist use. Must have a resolvable @id, skos:inScheme, skos:notation, and skos:prefLabel. Becasue JSON-LD is an open-world implementation, any other skos properties may be included.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:inScheme', 'skos:prefLabel', 'skos:notation')
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- narrower: Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- broader: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.CdifConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, notation=None, definition=None, note=None, in_scheme=None, broader=None, narrower=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- broader: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.datadescription.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.datadescription.CdifDataDescriptionDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_primary_key=None, statistics=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifDiscoveryDataset,CdifDataDescriptionMixinCDIF Data Description profile extending Discovery with variableMeasured, physical mapping, and stats.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/data_description/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:variableMeasured',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:license', 'schema:conditionsOfAccess'), ('schema:url', 'schema:distribution'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.CdifDataDescriptionMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_primary_key=None, statistics=None, **extra_data)[source]
Bases:
CdifBaseModelAdditional constraints for CDIF data description level. Adds cdif:physicalDataType requirement on variableMeasured items and distribution-level cdi properties for file characterization (characterSet, fileSize, fileSizeUofM).
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:variableMeasured',)
- has_primary_key: Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.hasPrimaryKey)]
- statistics: Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.statistics)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.CdifInstanceVariable(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, physical_data_type=None, role=None, simple_unit_of_measure=None, uses=None, is_defined_by_represented_variable=None, function=None, platform_type=None, source=None, is_described_by_statistics_collection=None, described_unit_of_measure=None, qualifies=None, name=None, description=None, alternate_name=None, measurement_technique=None, property_id=None, unit_text=None, unit_code=None, min_value=None, max_value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelCDIF Instance Variable
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
physical_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/physicalDataType, datatype=None, language=None, serializer=None, parser=None)])
role (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/role, datatype=None, language=None, serializer=None, parser=None)])
simple_unit_of_measure (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/simpleUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
uses (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/uses, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_represented_variable (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_RepresentedVariable, datatype=None, language=None, serializer=None, parser=None)])
function (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/function, datatype=None, language=None, serializer=None, parser=None)])
platform_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/platformType, datatype=None, language=None, serializer=None, parser=None)])
source (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/source, datatype=None, language=None, serializer=None, parser=None)])
is_described_by_statistics_collection (Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDescribedBy_StatisticsCollection, datatype=None, language=None, serializer=None, parser=None)])
described_unit_of_measure (Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/describedUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
qualifies (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/qualifies, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
property_id (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
unit_text (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/unitText, datatype=None, language=None, serializer=None, parser=None)])
unit_code (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/unitCode, datatype=None, language=None, serializer=None, parser=None)])
min_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/minValue, datatype=None, language=None, serializer=None, parser=None)])
max_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/maxValue, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/InstanceVariable')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- physical_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.physicalDataType)]
- role: Annotated[str | list[str] | None, RdfProperty(CDIF.role)]
- simple_unit_of_measure: Annotated[str | list[str] | None, RdfProperty(CDIF.simpleUnitOfMeasure)]
- uses: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.uses)]
- is_defined_by_represented_variable: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_RepresentedVariable)]
- function: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.function)]
- platform_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.platformType)]
- source: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.source)]
- is_described_by_statistics_collection: Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDescribedBy_StatisticsCollection)]
- described_unit_of_measure: Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.describedUnitOfMeasure)]
- qualifies: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.qualifies)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- measurement_technique: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.measurementTechnique)]
- property_id: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- unit_text: Annotated[str | list[str] | None, RdfProperty(SCHEMA.unitText)]
- unit_code: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.unitCode)]
- url: Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.CdifPhysicalMapping(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, index=None, format_value=None, physical_data_type=None, number_pattern=None, null_sequence=None, default_value=None, scale=None, decimal_positions=None, minimum_length=None, maximum_length=None, is_required=None, formats_instance_variable=None, **extra_data)[source]
Bases:
CdifBaseModelDefines implementation-specific properties for the representation of a variable in a dataset. Aligned with CDIF 2026 schema using DDI-CDI flat per-column mapping structure.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
index (Annotated[int | list[int] | None, RdfProperty(predicate=~None.Namespace.index, datatype=None, language=None, serializer=None, parser=None)])
format_value (Annotated[str | list[str] | None, RdfProperty(predicate=~None.Namespace.format, datatype=None, language=None, serializer=None, parser=None)])
physical_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/physicalDataType, datatype=None, language=None, serializer=None, parser=None)])
number_pattern (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/numberPattern, datatype=None, language=None, serializer=None, parser=None)])
null_sequence (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/nullSequence, datatype=None, language=None, serializer=None, parser=None)])
default_value (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/defaultValue, datatype=None, language=None, serializer=None, parser=None)])
scale (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/scale, datatype=None, language=None, serializer=None, parser=None)])
decimal_positions (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/decimalPositions, datatype=None, language=None, serializer=None, parser=None)])
minimum_length (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/minimumLength, datatype=None, language=None, serializer=None, parser=None)])
maximum_length (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/maximumLength, datatype=None, language=None, serializer=None, parser=None)])
is_required (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isRequired, datatype=None, language=None, serializer=None, parser=None)])
formats_instance_variable (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/formats_InstanceVariable, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- format_value: Annotated[str | list[str] | None, RdfProperty(CDIF.format)]
- physical_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.physicalDataType)]
- number_pattern: Annotated[str | list[str] | None, RdfProperty(CDI.numberPattern)]
- null_sequence: Annotated[str | list[str] | None, RdfProperty(CDI.nullSequence)]
- default_value: Annotated[str | list[str] | None, RdfProperty(CDI.defaultValue)]
- is_required: Annotated[bool | list[bool] | None, RdfProperty(CDI.isRequired)]
- formats_instance_variable: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.formats_InstanceVariable)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.Concept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, alt_label=None, hidden_label=None, notation=None, definition=None, scope_note=None, note=None, history_note=None, change_note=None, editorial_note=None, example=None, in_scheme=None, top_concept_of=None, broader=None, narrower=None, related=None, exact_match=None, close_match=None, broad_match=None, narrow_match=None, related_match=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
alt_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#altLabel, datatype=None, language=None, serializer=None, parser=None)])
hidden_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hiddenLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
scope_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#scopeNote, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
history_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#historyNote, datatype=None, language=None, serializer=None, parser=None)])
change_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#changeNote, datatype=None, language=None, serializer=None, parser=None)])
editorial_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#editorialNote, datatype=None, language=None, serializer=None, parser=None)])
example (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#example, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
top_concept_of (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#topConceptOf, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
related (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#related, datatype=None, language=None, serializer=None, parser=None)])
exact_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#exactMatch, datatype=None, language=None, serializer=None, parser=None)])
close_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#closeMatch, datatype=None, language=None, serializer=None, parser=None)])
broad_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broadMatch, datatype=None, language=None, serializer=None, parser=None)])
narrow_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrowMatch, datatype=None, language=None, serializer=None, parser=None)])
related_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#relatedMatch, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel', 'skos:definition', 'skos:inScheme')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- alt_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.altLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- scope_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.scopeNote)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- history_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.historyNote)]
- change_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.changeNote)]
- editorial_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.editorialNote)]
- example: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.example)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- top_concept_of: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.topConceptOf)]
- broader: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- exact_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.exactMatch)]
- close_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.closeMatch)]
- broad_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broadMatch)]
- narrow_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrowMatch)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.DefinedTerm(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, in_defined_term_set=None, term_code=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelschema.org Defined Term schema. Union-type policy: In CDIF profile UML models an attribute typed as schema:DefinedTerm is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as schema:name or schema:termCode in the default vocabulary) OR a full schema:DefinedTerm object (with explicit @type, name, identifier, termCode, inDefinedTermSet). Consumers should accept either form. Note that this differs from the cdif Concept policy: a Concept (skos:Concept) in CDIF profiles MUST be a controlled-vocabulary entry (object form or @id-reference) — plain strings are not permitted for Concept-typed values because vocabulary identity cannot be recovered from an unscoped label.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
in_defined_term_set (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/inDefinedTermSet, datatype=None, language=None, serializer=None, parser=None)])
term_code (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/termCode, datatype=None, language=None, serializer=None, parser=None)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DefinedTerm')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier', 'schema:termCode'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- in_defined_term_set: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.inDefinedTermSet)]
- term_code: Annotated[str | list[str] | None, RdfProperty(SCHEMA.termCode)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.Identifier(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelProperties for a schema.org identifier (schema:PropertyValue pattern). Union-type policy: In CDIF profile UML models an attribute typed as schema:Identifier / schema:PropertyValue is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as the bare identifier value) OR a full schema:PropertyValue object (with explicit @type, propertyID, value). Consumers should accept either form.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:value', 'schema:url'),)
- property_id: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- value: Annotated[str | list[str] | None, RdfProperty(SCHEMA.value)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.ObjectReference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelA reference to a node defined elsewhere, by its @id.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- cdif_forbid_extra: ClassVar[bool] = True
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id',)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.SkosConceptLanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.Statistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, type_of_statistic=None, statistic=None, has_weight=None, applies_to=None, has_category_statistics=None, **extra_data)[source]
Bases:
CdifBaseModelA named bundle of one or more Statistic value objects for an instance variable, optionally weighted, optionally broken down by Category.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
applies_to (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/appliesTo, datatype=None, language=None, serializer=None, parser=None)])
has_category_statistics (Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(predicate=https://w3id.org/cdif/has_CategoryStatistics, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Statistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:statistic')
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- applies_to: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.appliesTo)]
- has_category_statistics: Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(CDIF.has_CategoryStatistics)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.StatisticsCollection(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_weight=None, has_statistics=None, indexed_by=None, **extra_data)[source]
Bases:
CdifBaseModelGroups one or more Statistics nodes for an instance variable. A typical use is a dataset-level collection holding row-count / mean / stddev Statistics for each measured variable.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
has_statistics (Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_Statistics, datatype=None, language=None, serializer=None, parser=None)])
indexed_by (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/indexedBy, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/StatisticsCollection')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:has_Statistics')
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- has_statistics: Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_Statistics)]
- indexed_by: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.indexedBy)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datadescription.ValueAndConceptDescription(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, classification_level=None, description=None, format_pattern=None, logical_expression=None, maximum_value_exclusive=None, maximum_value_inclusive=None, minimum_value_exclusive=None, minimum_value_inclusive=None, regular_expression=None, **extra_data)[source]
Bases:
CdifBaseModelFormal description of a set of values.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
classification_level (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/classificationLevel, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/description, datatype=None, language=None, serializer=None, parser=None)])
format_pattern (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/formatPattern, datatype=None, language=None, serializer=None, parser=None)])
logical_expression (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/logicalExpression, datatype=None, language=None, serializer=None, parser=None)])
maximum_value_exclusive (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/maximumValueExclusive, datatype=None, language=None, serializer=None, parser=None)])
maximum_value_inclusive (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/maximumValueInclusive, datatype=None, language=None, serializer=None, parser=None)])
minimum_value_exclusive (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/minimumValueExclusive, datatype=None, language=None, serializer=None, parser=None)])
minimum_value_inclusive (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/minimumValueInclusive, datatype=None, language=None, serializer=None, parser=None)])
regular_expression (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/regularExpression, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ValueAndConceptDescription')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- classification_level: Annotated[str | list[str] | None, RdfProperty(CDI.classificationLevel)]
- description: Annotated[str | list[str] | None, RdfProperty(CDI.description)]
- format_pattern: Annotated[str | list[str] | None, RdfProperty(CDI.formatPattern)]
- logical_expression: Annotated[str | list[str] | None, RdfProperty(CDI.logicalExpression)]
- maximum_value_exclusive: Annotated[str | list[str] | None, RdfProperty(CDI.maximumValueExclusive)]
- maximum_value_inclusive: Annotated[str | list[str] | None, RdfProperty(CDI.maximumValueInclusive)]
- minimum_value_exclusive: Annotated[str | list[str] | None, RdfProperty(CDI.minimumValueExclusive)]
- minimum_value_inclusive: Annotated[str | list[str] | None, RdfProperty(CDI.minimumValueInclusive)]
- regular_expression: Annotated[str | list[str] | None, RdfProperty(CDI.regularExpression)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Data Structure Profile
CDIF Data Structure profile (DDI-CDI structural components, keys, and represented variables).
- class dartfx.cdif.models.profiles.datastructure.AttributeComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, qualifies=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to qualify observations or provide other types of supplementary information.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
qualifies (Annotated[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/qualifies, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/AttributeComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- qualifies: Annotated[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.qualifies)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.CategoryStatistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, for_value=None, type_of_statistic=None, statistic=None, has_weight=None, **extra_data)[source]
Bases:
CdifBaseModelStatistics for a specific Category of an instance variable within a data set.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
for_value (Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/for, datatype=None, language=None, serializer=None, parser=None)])
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:for', 'cdi:statistic')
- for_value: Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(CDI['for'])]
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.CdifCodelistConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_scheme=None, pref_label=None, notation=None, definition=None, narrower=None, broader=None, **extra_data)[source]
Bases:
CdifBaseModelA SKOS Concept constrained for CDIF codelist use. Must have a resolvable @id, skos:inScheme, skos:notation, and skos:prefLabel. Becasue JSON-LD is an open-world implementation, any other skos properties may be included.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:inScheme', 'skos:prefLabel', 'skos:notation')
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- narrower: Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- broader: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.CdifConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, notation=None, definition=None, note=None, in_scheme=None, broader=None, narrower=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- broader: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.datastructure.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.datastructure.CdifInstanceVariable(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, physical_data_type=None, role=None, simple_unit_of_measure=None, uses=None, is_defined_by_represented_variable=None, function=None, platform_type=None, source=None, is_described_by_statistics_collection=None, described_unit_of_measure=None, qualifies=None, name=None, description=None, alternate_name=None, measurement_technique=None, property_id=None, unit_text=None, unit_code=None, min_value=None, max_value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelCDIF Instance Variable
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
physical_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/physicalDataType, datatype=None, language=None, serializer=None, parser=None)])
role (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/role, datatype=None, language=None, serializer=None, parser=None)])
simple_unit_of_measure (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/simpleUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
uses (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/uses, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_represented_variable (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_RepresentedVariable, datatype=None, language=None, serializer=None, parser=None)])
function (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/function, datatype=None, language=None, serializer=None, parser=None)])
platform_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/platformType, datatype=None, language=None, serializer=None, parser=None)])
source (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/source, datatype=None, language=None, serializer=None, parser=None)])
is_described_by_statistics_collection (Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDescribedBy_StatisticsCollection, datatype=None, language=None, serializer=None, parser=None)])
described_unit_of_measure (Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/describedUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
qualifies (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/qualifies, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
property_id (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
unit_text (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/unitText, datatype=None, language=None, serializer=None, parser=None)])
unit_code (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/unitCode, datatype=None, language=None, serializer=None, parser=None)])
min_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/minValue, datatype=None, language=None, serializer=None, parser=None)])
max_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/maxValue, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/InstanceVariable')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- physical_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.physicalDataType)]
- role: Annotated[str | list[str] | None, RdfProperty(CDIF.role)]
- simple_unit_of_measure: Annotated[str | list[str] | None, RdfProperty(CDIF.simpleUnitOfMeasure)]
- uses: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.uses)]
- is_defined_by_represented_variable: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_RepresentedVariable)]
- function: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.function)]
- platform_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.platformType)]
- source: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.source)]
- is_described_by_statistics_collection: Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDescribedBy_StatisticsCollection)]
- described_unit_of_measure: Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.describedUnitOfMeasure)]
- qualifies: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.qualifies)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- measurement_technique: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.measurementTechnique)]
- property_id: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- unit_text: Annotated[str | list[str] | None, RdfProperty(SCHEMA.unitText)]
- unit_code: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.unitCode)]
- url: Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.CdifRepresentedVariable(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, described_unit_of_measure=None, has_intended_data_type=None, takes_sentinel_values_from=None, takes_substantive_values_from=None, simple_unit_of_measure=None, descriptive_text=None, measures=None, unit_of_measure_kind=None, definition=None, display_label=None, external_definition=None, identifier=None, name=None, uses_concept=None, **extra_data)[source]
Bases:
CdifBaseModelConceptual variable with a substantive value domain specified.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
described_unit_of_measure (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/describedUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
has_intended_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasIntendedDataType, datatype=None, language=None, serializer=None, parser=None)])
takes_sentinel_values_from (Annotated[SentinelValueDomain | ObjectReference | URIRef | str | list[SentinelValueDomain | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/takesSentinelValuesFrom, datatype=None, language=None, serializer=None, parser=None)])
takes_substantive_values_from (Annotated[SubstantiveValueDomain | ObjectReference | URIRef | str | list[SubstantiveValueDomain | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/takesSubstantiveValuesFrom, datatype=None, language=None, serializer=None, parser=None)])
simple_unit_of_measure (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/simpleUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
descriptive_text (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/descriptiveText, datatype=None, language=None, serializer=None, parser=None)])
measures (Annotated[UnitType | ObjectReference | URIRef | str | list[UnitType | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/measures, datatype=None, language=None, serializer=None, parser=None)])
unit_of_measure_kind (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/unitOfMeasureKind, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/definition, datatype=None, language=None, serializer=None, parser=None)])
display_label (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/displayLabel, datatype=None, language=None, serializer=None, parser=None)])
external_definition (Annotated[Reference | list[Reference] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/externalDefinition, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/identifier, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/name, datatype=None, language=None, serializer=None, parser=None)])
uses_concept (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/uses_Concept, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/RepresentedVariable')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- described_unit_of_measure: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.describedUnitOfMeasure)]
- has_intended_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.hasIntendedDataType)]
- takes_sentinel_values_from: Annotated[SentinelValueDomain | ObjectReference | URIRef | str | list[SentinelValueDomain | ObjectReference | URIRef | str] | None, RdfProperty(CDI.takesSentinelValuesFrom)]
- takes_substantive_values_from: Annotated[SubstantiveValueDomain | ObjectReference | URIRef | str | list[SubstantiveValueDomain | ObjectReference | URIRef | str] | None, RdfProperty(CDI.takesSubstantiveValuesFrom)]
- simple_unit_of_measure: Annotated[str | list[str] | None, RdfProperty(CDI.simpleUnitOfMeasure)]
- descriptive_text: Annotated[str | list[str] | None, RdfProperty(CDIF.descriptiveText)]
- measures: Annotated[UnitType | ObjectReference | URIRef | str | list[UnitType | ObjectReference | URIRef | str] | None, RdfProperty(CDI.measures)]
- unit_of_measure_kind: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.unitOfMeasureKind)]
- definition: Annotated[str | list[str] | None, RdfProperty(CDIF.definition)]
- display_label: Annotated[str | list[str] | None, RdfProperty(CDIF.displayLabel)]
- external_definition: Annotated[Reference | list[Reference] | None, RdfProperty(CDI.externalDefinition)]
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDI.identifier)]
- name: Annotated[str | list[str] | None, RdfProperty(CDIF.name)]
- uses_concept: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.uses_Concept)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.Concept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, alt_label=None, hidden_label=None, notation=None, definition=None, scope_note=None, note=None, history_note=None, change_note=None, editorial_note=None, example=None, in_scheme=None, top_concept_of=None, broader=None, narrower=None, related=None, exact_match=None, close_match=None, broad_match=None, narrow_match=None, related_match=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
alt_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#altLabel, datatype=None, language=None, serializer=None, parser=None)])
hidden_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hiddenLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
scope_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#scopeNote, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
history_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#historyNote, datatype=None, language=None, serializer=None, parser=None)])
change_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#changeNote, datatype=None, language=None, serializer=None, parser=None)])
editorial_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#editorialNote, datatype=None, language=None, serializer=None, parser=None)])
example (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#example, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
top_concept_of (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#topConceptOf, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
related (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#related, datatype=None, language=None, serializer=None, parser=None)])
exact_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#exactMatch, datatype=None, language=None, serializer=None, parser=None)])
close_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#closeMatch, datatype=None, language=None, serializer=None, parser=None)])
broad_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broadMatch, datatype=None, language=None, serializer=None, parser=None)])
narrow_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrowMatch, datatype=None, language=None, serializer=None, parser=None)])
related_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#relatedMatch, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel', 'skos:definition', 'skos:inScheme')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- alt_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.altLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- scope_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.scopeNote)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- history_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.historyNote)]
- change_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.changeNote)]
- editorial_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.editorialNote)]
- example: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.example)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- top_concept_of: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.topConceptOf)]
- broader: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- exact_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.exactMatch)]
- close_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.closeMatch)]
- broad_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broadMatch)]
- narrow_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrowMatch)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.DataStructure(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_foreign_key=None, has_data_structure_component=None, has_primary_key=None, has_foreign_key_alt=None, has_primary_key_alt=None, **extra_data)[source]
Bases:
CdifBaseModelData organization based on reusable data structure components.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_foreign_key (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
has_data_structure_component (Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_DataStructureComponent, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | list[CdifKey] | None, RdfProperty(predicate=https://w3id.org/cdif/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_foreign_key_alt (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key_alt (Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DataStructure')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- has_foreign_key: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_ForeignKey)]
- has_data_structure_component: Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_DataStructureComponent)]
- has_foreign_key_alt: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_ForeignKey)]
- has_primary_key_alt: Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(CDI.has_PrimaryKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.DefinedTerm(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, in_defined_term_set=None, term_code=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelschema.org Defined Term schema. Union-type policy: In CDIF profile UML models an attribute typed as schema:DefinedTerm is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as schema:name or schema:termCode in the default vocabulary) OR a full schema:DefinedTerm object (with explicit @type, name, identifier, termCode, inDefinedTermSet). Consumers should accept either form. Note that this differs from the cdif Concept policy: a Concept (skos:Concept) in CDIF profiles MUST be a controlled-vocabulary entry (object form or @id-reference) — plain strings are not permitted for Concept-typed values because vocabulary identity cannot be recovered from an unscoped label.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
in_defined_term_set (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/inDefinedTermSet, datatype=None, language=None, serializer=None, parser=None)])
term_code (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/termCode, datatype=None, language=None, serializer=None, parser=None)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DefinedTerm')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier', 'schema:termCode'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- in_defined_term_set: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.inDefinedTermSet)]
- term_code: Annotated[str | list[str] | None, RdfProperty(SCHEMA.termCode)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.DimensionComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, categorical_additivity=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a dimensional data structure to identify the universes associated with data points. The variable acts as a field in the compound identifier (the key structure) to disambiguate the cells in the multi-dimensional “cube”. AG: references to the variables which are the components of a compound identifier, in which each variable is a single field - an axis - in a coordinate system addressing a location in a matrix. These variables are often categorical, but also commonly include time. Unlike other Components, they may be ordered using instances of cdi:ComponentPosition.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
categorical_additivity (Annotated[bool | list[bool] | None, RdfProperty(predicate=https://w3id.org/cdif/categoricalAdditivity, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DimensionComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_Variable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- categorical_additivity: Annotated[bool | list[bool] | None, RdfProperty(CDIF.categoricalAdditivity)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.DimensionalDataStructure(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_data_structure_component=None, has_primary_key=None, has_foreign_key=None, has_primary_key_alt=None, has_foreign_key_alt=None, **extra_data)[source]
Bases:
CdifBaseModelStructure of a dimensional data set (organized collection of multidimensional data). It is described by dimension, measure and attribute components.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_data_structure_component (Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_DataStructureComponent, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | list[CdifKey] | None, RdfProperty(predicate=https://w3id.org/cdif/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_foreign_key (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key_alt (Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_foreign_key_alt (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DimensionalDataStructure')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:has_DataStructureComponent')
- has_data_structure_component: Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | DimensionComponent | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_DataStructureComponent)]
- has_foreign_key: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_ForeignKey)]
- has_primary_key_alt: Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(CDI.has_PrimaryKey)]
- has_foreign_key_alt: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_ForeignKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.ForeignKey(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, is_composed_of=None, references_primary_key=None, **extra_data)[source]
Bases:
CdifBaseModelA set of variables whose values reference a primary key elsewhere. cdif:, not cdi:, throughout: this is a CDIF simplification, not the DDI-CDI shape. DDI-CDI composes a foreign key from cdi:ForeignKeyComponent nodes, each with cdi:correspondsTo and cdi:references; this form composes the variables directly, each carrying cdif:position. The prefix is what makes that divergence visible, and it matches the sibling cdif:Key. Until 2026-09-05 the definition required ‘cdif:isComposedOf’ while declaring ‘cdi:isComposedOf’, so it could only be satisfied by an undeclared and therefore unconstrained property.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
is_composed_of (Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(predicate=https://w3id.org/cdif/isComposedOf, datatype=None, language=None, serializer=None, parser=None)])
references_primary_key (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/references_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/ForeignKey')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isComposedOf', 'cdif:references_PrimaryKey')
- is_composed_of: Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(CDIF.isComposedOf)]
- references_primary_key: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.references_PrimaryKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.Identifier(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelProperties for a schema.org identifier (schema:PropertyValue pattern). Union-type policy: In CDIF profile UML models an attribute typed as schema:Identifier / schema:PropertyValue is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as the bare identifier value) OR a full schema:PropertyValue object (with explicit @type, propertyID, value). Consumers should accept either form.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:value', 'schema:url'),)
- property_id: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- value: Annotated[str | list[str] | None, RdfProperty(SCHEMA.value)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.IdentifierComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a long or wide data structure to identify the units associated to data points, and in dimensional and key value data structures to provide identifying fields for the instance values.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/IdentifierComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_Variable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.LongDataStructure(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_data_structure_component=None, has_primary_key=None, has_primary_key_alt=None, **extra_data)[source]
Bases:
CdifBaseModelStructure of a long dataset (organized collection of long data). It is described by identifier, measure, attribute, variable descriptor and variable value components.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_data_structure_component (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_DataStructureComponent, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | list[CdifKey] | None, RdfProperty(predicate=https://w3id.org/cdif/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key_alt (Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LongDataStructure')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:has_DataStructureComponent')
- has_data_structure_component: Annotated[Any | list[Any] | None, RdfProperty(CDI.has_DataStructureComponent)]
- has_primary_key_alt: Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(CDI.has_PrimaryKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.MeasureComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, name=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to hold the observed/derived values.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/name, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/MeasureComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- name: Annotated[str | list[str] | None, RdfProperty(CDIF.name)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.ObjectReference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelA reference to a node defined elsewhere, by its @id.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- cdif_forbid_extra: ClassVar[bool] = True
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id',)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.PrimaryKey(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, is_composed_of=None, **extra_data)[source]
Bases:
CdifBaseModelset of Variables that uniquely identify a data instance, expressed as an ordered list of cdi:ComponentPosition wrappers (unified with cdifKey’s cdi:ComponentPosition model).
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
is_composed_of (Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(predicate=https://w3id.org/cdif/isComposedOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/PrimaryKey')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isComposedOf')
- is_composed_of: Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(CDIF.isComposedOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.SkosConceptLanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.Statistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, type_of_statistic=None, statistic=None, has_weight=None, applies_to=None, has_category_statistics=None, **extra_data)[source]
Bases:
CdifBaseModelA named bundle of one or more Statistic value objects for an instance variable, optionally weighted, optionally broken down by Category.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
applies_to (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/appliesTo, datatype=None, language=None, serializer=None, parser=None)])
has_category_statistics (Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(predicate=https://w3id.org/cdif/has_CategoryStatistics, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Statistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:statistic')
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- applies_to: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.appliesTo)]
- has_category_statistics: Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(CDIF.has_CategoryStatistics)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.StatisticsCollection(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_weight=None, has_statistics=None, indexed_by=None, **extra_data)[source]
Bases:
CdifBaseModelGroups one or more Statistics nodes for an instance variable. A typical use is a dataset-level collection holding row-count / mean / stddev Statistics for each measured variable.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
has_statistics (Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_Statistics, datatype=None, language=None, serializer=None, parser=None)])
indexed_by (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/indexedBy, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/StatisticsCollection')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:has_Statistics')
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- has_statistics: Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_Statistics)]
- indexed_by: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.indexedBy)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.VariableDescriptorComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, is_defined_by_descriptor_variable=None, refers_to=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to provide codes for variable identification.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_descriptor_variable (Annotated[DescriptorVariable | list[DescriptorVariable] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_DescriptorVariable, datatype=None, language=None, serializer=None, parser=None)])
refers_to (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/refersTo, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableDescriptorComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_DescriptorVariable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- is_defined_by_descriptor_variable: Annotated[DescriptorVariable | list[DescriptorVariable] | None, RdfProperty(CDIF.isDefinedBy_DescriptorVariable)]
- refers_to: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDI.refersTo)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.VariableValueComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to record values of multiple variables.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableValueComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.datastructure.WideDataStructure(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_data_structure_component=None, has_primary_key=None, has_foreign_key=None, has_primary_key_alt=None, has_foreign_key_alt=None, **extra_data)[source]
Bases:
CdifBaseModelStructure of a wide dataset (organized collection of wide data). It is described by identifier, measure and attribute components.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_data_structure_component (Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_DataStructureComponent, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | list[CdifKey] | None, RdfProperty(predicate=https://w3id.org/cdif/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_foreign_key (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key_alt (Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
has_foreign_key_alt (Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/has_ForeignKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/WideDataStructure')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:has_DataStructureComponent')
- has_data_structure_component: Annotated[IdentifierComponent | MeasureComponent | AttributeComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | AttributeComponent | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_DataStructureComponent)]
- has_foreign_key: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_ForeignKey)]
- has_primary_key_alt: Annotated[PrimaryKey | list[PrimaryKey] | None, RdfProperty(CDI.has_PrimaryKey)]
- has_foreign_key_alt: Annotated[ForeignKey | ObjectReference | URIRef | str | list[ForeignKey | ObjectReference | URIRef | str] | None, RdfProperty(CDI.has_ForeignKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Provenance Profile
CDIF Provenance profile extending Core with prov:wasGeneratedBy activities, instruments, and HowTo plans.
- class dartfx.cdif.models.profiles.provenance.AdditionalProperty(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, name=None, value=None, unit_code=None, unit_text=None, **extra_data)[source]
Bases:
CdifBaseModelPropertyValue values required to define a soft-typed property with a value.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[ObjectReference | URIRef | str | int | float | bool | list[ObjectReference | URIRef | str | int | float | bool] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
unit_code (Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(predicate=http://schema.org/unitCode, datatype=None, language=None, serializer=None, parser=None)])
unit_text (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/unitText, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:name', 'schema:value')
- property_id: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- value: Annotated[ObjectReference | URIRef | str | int | float | bool | list[ObjectReference | URIRef | str | int | float | bool] | None, RdfProperty(SCHEMA.value)]
- unit_code: Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(SCHEMA.unitCode)]
- unit_text: Annotated[str | list[str] | None, RdfProperty(SCHEMA.unitText)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.AdditionalPropertySpecification(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, value_name=None, default_value=None, value=None, description=None, **extra_data)[source]
Bases:
CdifBaseModelA parameter specification (an overridable default) declared on a procedure / plan instrument, typed schema:PropertyValueSpecification; the default sits in schema:defaultValue. Contrast with AdditionalProperty (schema:PropertyValue), the concrete-value form carried by an analysis-event instrument. Until 2026-10-09 this declared only ‘@type’ and schema:name, so the description named schema:defaultValue as the point of the shape while the schema did not declare it. The object is open, so nothing failed – 203 entries in geochemBuildingBlocks carried a default that no schema described, and a placement path ending in schema:defaultValue could not be told from a misspelling. A domain profile adds its own keys here (geochemBuildingBlocks carries ada:dataType and ada:fieldScope on every one of these entries). Those stay out of this block: it is a generic schema.org shape with several consumers, and only the schema.org properties are its to declare.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
value_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/valueName, datatype=None, language=None, serializer=None, parser=None)])
default_value (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://schema.org/defaultValue, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValueSpecification')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- value_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.valueName)]
- default_value: Annotated[Any | list[Any] | None, RdfProperty(SCHEMA.defaultValue)]
- value: Annotated[Any | list[Any] | None, RdfProperty(SCHEMA.value)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.AgentInRole(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, role_name=None, contributor=None, agent=None, participant=None, **extra_data)[source]
Bases:
CdifBaseModelFor more granularity on how a person contributed to a Dataset, use schema:Role. The schema.org documentation does not state that the Role type is an expected data type of author, creator and contributor, but that is addressed in this blog post (http://blog.schema.org/2014/06/introducing-role.html). see https://github.com/ESIPFed/science-on- schema.org/blob/develop/guides/Dataset.md#roles-of-people. The Role holds the agent under the property it sits under, as schema.org’s Role pattern and validator.schema.org require – schema:contributor inside a contributor Role, schema:agent inside an activity’s agent Role, schema:participant inside a participant Role. At least one is required.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
role_name (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/roleName, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
agent (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/agent, datatype=None, language=None, serializer=None, parser=None)])
participant (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/participant, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Role')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:roleName')
- role_name: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.roleName)]
- contributor: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.contributor)]
- agent: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.agent)]
- participant: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.participant)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.provenance.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.provenance.CdifProvenanceDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifProvenanceMixinCDIF Provenance profile extending Core with prov:wasGeneratedBy activities, instruments, and HowTo plans.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.CdifProvenanceMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelBuilding 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.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.Concept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, alt_label=None, hidden_label=None, notation=None, definition=None, scope_note=None, note=None, history_note=None, change_note=None, editorial_note=None, example=None, in_scheme=None, top_concept_of=None, broader=None, narrower=None, related=None, exact_match=None, close_match=None, broad_match=None, narrow_match=None, related_match=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
alt_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#altLabel, datatype=None, language=None, serializer=None, parser=None)])
hidden_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hiddenLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
scope_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#scopeNote, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
history_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#historyNote, datatype=None, language=None, serializer=None, parser=None)])
change_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#changeNote, datatype=None, language=None, serializer=None, parser=None)])
editorial_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#editorialNote, datatype=None, language=None, serializer=None, parser=None)])
example (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#example, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
top_concept_of (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#topConceptOf, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
related (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#related, datatype=None, language=None, serializer=None, parser=None)])
exact_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#exactMatch, datatype=None, language=None, serializer=None, parser=None)])
close_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#closeMatch, datatype=None, language=None, serializer=None, parser=None)])
broad_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broadMatch, datatype=None, language=None, serializer=None, parser=None)])
narrow_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrowMatch, datatype=None, language=None, serializer=None, parser=None)])
related_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#relatedMatch, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel', 'skos:definition', 'skos:inScheme')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- alt_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.altLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- scope_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.scopeNote)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- history_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.historyNote)]
- change_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.changeNote)]
- editorial_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.editorialNote)]
- example: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.example)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- top_concept_of: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.topConceptOf)]
- broader: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- exact_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.exactMatch)]
- close_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.closeMatch)]
- broad_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broadMatch)]
- narrow_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrowMatch)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.DefinedTerm(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, in_defined_term_set=None, term_code=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelschema.org Defined Term schema. Union-type policy: In CDIF profile UML models an attribute typed as schema:DefinedTerm is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as schema:name or schema:termCode in the default vocabulary) OR a full schema:DefinedTerm object (with explicit @type, name, identifier, termCode, inDefinedTermSet). Consumers should accept either form. Note that this differs from the cdif Concept policy: a Concept (skos:Concept) in CDIF profiles MUST be a controlled-vocabulary entry (object form or @id-reference) — plain strings are not permitted for Concept-typed values because vocabulary identity cannot be recovered from an unscoped label.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
in_defined_term_set (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/inDefinedTermSet, datatype=None, language=None, serializer=None, parser=None)])
term_code (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/termCode, datatype=None, language=None, serializer=None, parser=None)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DefinedTerm')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier', 'schema:termCode'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- in_defined_term_set: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.inDefinedTermSet)]
- term_code: Annotated[str | list[str] | None, RdfProperty(SCHEMA.termCode)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.HowTo(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, is_based_on=None, step=None, **extra_data)[source]
Bases:
CdifBaseModelA methodology or protocol described as a HowTo with optional steps
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
is_based_on (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/isBasedOn, datatype=None, language=None, serializer=None, parser=None)])
step (Annotated[HowToStep | list[HowToStep] | None, RdfProperty(predicate=http://schema.org/step, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/HowTo')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- is_based_on: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.isBasedOn)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.HowToStep(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, position=None, additional_type=None, agent=None, instrument=None, object_value=None, result=None, additional_property=None, action_process=None, **extra_data)[source]
Bases:
CdifBaseModelA single step in a HowTo methodology. A step typed schema:HowToStep alone carries only its text, position and documentation link. Typed schema:HowToStep AND schema:Action, it also carries what the step used, acted on and produced, who performed it, the parameter values it used, and a nested sub-procedure – the activity’s own properties, so a step and the activity it belongs to are described the same way. Declaring schema:Action is required once any of those properties is present. A process is therefore free to be a set of HowTo objects, or one HowTo whose steps are actions with sub-procedures of their own; which parts are direct HowTo objects and which are steps is the protocol author’s decision.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
position (Annotated[int | list[int] | None, RdfProperty(predicate=http://schema.org/position, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
agent (Annotated[Person | Organization | Contributor | ObjectReference | URIRef | str | list[Person | Organization | Contributor | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/agent, datatype=None, language=None, serializer=None, parser=None)])
instrument (Annotated[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str | list[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/instrument, datatype=None, language=None, serializer=None, parser=None)])
object_value (Annotated[ThingValue | list[ThingValue] | None, RdfProperty(predicate=http://schema.org/object, datatype=None, language=None, serializer=None, parser=None)])
result (Annotated[ThingValue | list[ThingValue] | None, RdfProperty(predicate=http://schema.org/result, datatype=None, language=None, serializer=None, parser=None)])
additional_property (Annotated[AdditionalProperty | list[AdditionalProperty] | None, RdfProperty(predicate=http://schema.org/additionalProperty, datatype=None, language=None, serializer=None, parser=None)])
action_process (Annotated[HowTo | ObjectReference | URIRef | str | list[HowTo | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/actionProcess, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/HowToStep')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- additional_type: Annotated[str | list[str] | None, RdfProperty(SCHEMA.additionalType)]
- agent: Annotated[Person | Organization | Contributor | ObjectReference | URIRef | str | list[Person | Organization | Contributor | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.agent)]
- instrument: Annotated[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str | list[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(SCHEMA.instrument)]
- object_value: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.object)]
- result: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.result)]
- additional_property: Annotated[AdditionalProperty | list[AdditionalProperty] | None, RdfProperty(SCHEMA.additionalProperty)]
- action_process: Annotated[HowTo | ObjectReference | URIRef | str | list[HowTo | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.actionProcess)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.Identifier(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelProperties for a schema.org identifier (schema:PropertyValue pattern). Union-type policy: In CDIF profile UML models an attribute typed as schema:Identifier / schema:PropertyValue is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as the bare identifier value) OR a full schema:PropertyValue object (with explicit @type, propertyID, value). Consumers should accept either form.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:value', 'schema:url'),)
- property_id: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- value: Annotated[str | list[str] | None, RdfProperty(SCHEMA.value)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.ObjectReference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelA reference to a node defined elsewhere, by its @id.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- cdif_forbid_extra: ClassVar[bool] = True
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id',)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.Organization(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, additional_type=None, name=None, alternate_name=None, description=None, identifier=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Organization')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.Person(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, alternate_name=None, affiliation=None, contact_point=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModelschema for cdif profile of schema.org/Person
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
affiliation (Annotated[Organization | list[Organization] | None, RdfProperty(predicate=http://schema.org/affiliation, datatype=None, language=None, serializer=None, parser=None)])
contact_point (Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(predicate=http://schema.org/contactPoint, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Person')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- affiliation: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.affiliation)]
- contact_point: Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(SCHEMA.contactPoint)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.provenance.RoleFiller(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelThe Person or Organization in this role.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.provenance.ThingValue = ObjectReference | dict[str, Any] | str | URIRef
Manifest Profile
CDIF Manifest profile extending Core with package schema:hasPart resources and archive parts.
- class dartfx.cdif.models.profiles.manifest.CdifConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, notation=None, definition=None, note=None, in_scheme=None, broader=None, narrower=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- broader: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[CdifConcept | ObjectReference | URIRef | str | list[CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.manifest.CdifManifestDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifCoreDataset,CdifManifestMixinCDIF Manifest profile extending Core with package schema:hasPart resources and archive parts.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/manifest/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'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.manifest.CdifManifestMixin(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, **extra_data)[source]
Bases:
CdifBaseModelProfile module for packages: the resources that make up a dataset and where to retrieve each of them. Marks the catalog record as conformant to the CDIF manifest spec (https://w3id.org/cdif/manifest/1.1) and declares schema:hasPart in the two places a package needs it — on the Dataset, for parts that are independently accessible at their own addresses, and on a schema:distribution item, for component files inside an archive (ZIP, etc.) that have no address of their own. Both part shapes carry schema:about, so a part that describes another — a codebook, a data dictionary, a metadata sidecar — can say which one. The base schema:distribution anyOf [DataDownload, WebAPI] contributed by cdifCore is preserved — this BB only adds property constraints, no new anyOf branch. (Merged from the previous cdifProfile/cdifArchive BB, which held only the $defs for ArchivePart; everything now lives here.)
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- has_part: Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(SCHEMA.hasPart)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.manifest.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Code List Profile
CDIF Codelist profile (skos:ConceptScheme / schema:DefinedTermSet).
- class dartfx.cdif.models.profiles.codelist.CdifCodelist(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, date_modified=None, url=None, license=None, conditions_of_access=None, pref_label=None, definition=None, note=None, has_top_concept=None, subject_of=None, **extra_data)[source]
Bases:
CdifBaseModelA controlled-vocabulary codelist implemented as a skos:ConceptScheme constrained for CDIF use. The scheme must have a resolvable @id and identify its top concepts via skos:hasTopConcept; each concept (CdifCodelistConcept) must have a resolvable @id, skos:inScheme, skos:prefLabel, and skos:notation. Hierarchical concepts must declare both skos:narrower (for JSON tree traversal) and skos:broader (for upward navigation) where hierarchy exists. CDIF metadata properties (schema:identifier, schema:dateModified, schema:license or schema:conditionsOfAccess) take precedence over the equivalent dcterms properties from the base skos:ConceptScheme.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[PropertyValue | str | list[PropertyValue | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
has_top_concept (Annotated[CdifCodelistConcept | list[CdifCodelistConcept] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hasTopConcept, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#ConceptScheme')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/codelist/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:prefLabel', 'schema:identifier', 'schema:dateModified', 'skos:hasTopConcept')
- identifier: Annotated[PropertyValue | str | list[PropertyValue | str] | None, RdfProperty(SCHEMA.identifier)]
- date_modified: Annotated[str | list[str] | None, RdfProperty(SCHEMA.dateModified)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- license: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.license)]
- conditions_of_access: Annotated[str | list[str] | None, RdfProperty(SCHEMA.conditionsOfAccess)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- has_top_concept: Annotated[CdifCodelistConcept | list[CdifCodelistConcept] | None, RdfProperty(SKOS.hasTopConcept)]
- subject_of: Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(SCHEMA.subjectOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.codelist.CdifCodelistConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_scheme=None, pref_label=None, notation=None, definition=None, narrower=None, broader=None, **extra_data)[source]
Bases:
CdifBaseModelA SKOS Concept constrained for CDIF codelist use. Must have a resolvable @id, skos:inScheme, skos:notation, and skos:prefLabel. Becasue JSON-LD is an open-world implementation, any other skos properties may be included.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:inScheme', 'skos:prefLabel', 'skos:notation')
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- narrower: Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- broader: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
Complete Composite Profile
CDIF Complete composite profile combining Core, Discovery, Data Description, Provenance, and Manifest.
- class dartfx.cdif.models.profiles.complete.AdditionalProperty(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, name=None, value=None, unit_code=None, unit_text=None, **extra_data)[source]
Bases:
CdifBaseModelPropertyValue values required to define a soft-typed property with a value.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[ObjectReference | URIRef | str | int | float | bool | list[ObjectReference | URIRef | str | int | float | bool] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
unit_code (Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(predicate=http://schema.org/unitCode, datatype=None, language=None, serializer=None, parser=None)])
unit_text (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/unitText, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:name', 'schema:value')
- property_id: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- value: Annotated[ObjectReference | URIRef | str | int | float | bool | list[ObjectReference | URIRef | str | int | float | bool] | None, RdfProperty(SCHEMA.value)]
- unit_code: Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(SCHEMA.unitCode)]
- unit_text: Annotated[str | list[str] | None, RdfProperty(SCHEMA.unitText)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.AdditionalPropertySpecification(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, value_name=None, default_value=None, value=None, description=None, **extra_data)[source]
Bases:
CdifBaseModelA parameter specification (an overridable default) declared on a procedure / plan instrument, typed schema:PropertyValueSpecification; the default sits in schema:defaultValue. Contrast with AdditionalProperty (schema:PropertyValue), the concrete-value form carried by an analysis-event instrument. Until 2026-10-09 this declared only ‘@type’ and schema:name, so the description named schema:defaultValue as the point of the shape while the schema did not declare it. The object is open, so nothing failed – 203 entries in geochemBuildingBlocks carried a default that no schema described, and a placement path ending in schema:defaultValue could not be told from a misspelling. A domain profile adds its own keys here (geochemBuildingBlocks carries ada:dataType and ada:fieldScope on every one of these entries). Those stay out of this block: it is a generic schema.org shape with several consumers, and only the schema.org properties are its to declare.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
value_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/valueName, datatype=None, language=None, serializer=None, parser=None)])
default_value (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://schema.org/defaultValue, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValueSpecification')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- value_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.valueName)]
- default_value: Annotated[Any | list[Any] | None, RdfProperty(SCHEMA.defaultValue)]
- value: Annotated[Any | list[Any] | None, RdfProperty(SCHEMA.value)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.AttributeComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, qualifies=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to qualify observations or provide other types of supplementary information.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
qualifies (Annotated[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/qualifies, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/AttributeComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- qualifies: Annotated[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str | list[IdentifierComponent | MeasureComponent | DimensionComponent | VariableValueComponent | VariableDescriptorComponent | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.qualifies)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.CategoryStatistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, for_value=None, type_of_statistic=None, statistic=None, has_weight=None, **extra_data)[source]
Bases:
CdifBaseModelStatistics for a specific Category of an instance variable within a data set.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
for_value (Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/for, datatype=None, language=None, serializer=None, parser=None)])
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:for', 'cdi:statistic')
- for_value: Annotated[Category | ObjectReference | URIRef | str | list[Category | ObjectReference | URIRef | str] | None, RdfProperty(CDI['for'])]
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.CdifCodelistConcept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_scheme=None, pref_label=None, notation=None, definition=None, narrower=None, broader=None, **extra_data)[source]
Bases:
CdifBaseModelA SKOS Concept constrained for CDIF codelist use. Must have a resolvable @id, skos:inScheme, skos:notation, and skos:prefLabel. Becasue JSON-LD is an open-world implementation, any other skos properties may be included.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
pref_label (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', 'skos:inScheme', 'skos:prefLabel', 'skos:notation')
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- pref_label: Annotated[str | list[str] | None, RdfProperty(SKOS.prefLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[str | list[str] | None, RdfProperty(SKOS.definition)]
- narrower: Annotated[CdifCodelistConcept | ObjectReference | URIRef | str | list[CdifCodelistConcept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- broader: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.CdifCompleteDataset(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_part=None, has_primary_key=None, statistics=None, measurement_technique=None, variable_measured=None, spatial_coverage=None, temporal_coverage=None, has_quality_measurement=None, name=None, description=None, identifier=None, additional_type=None, same_as=None, version=None, in_language=None, date_modified=None, date_published=None, conditions_of_access=None, license=None, url=None, distribution=None, related_link=None, publishing_principles=None, keywords=None, creator=None, contributor=None, publisher=None, provider=None, funding=None, was_generated_by=None, was_derived_from=None, subject_of=None, **extra_data)[source]
Bases:
CdifDataDescriptionDataset,CdifProvenanceMixin,CdifManifestMixinCDIF Complete composite profile combining Core, Discovery, Data Description, Provenance, and Manifest.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_part (Annotated[ManifestPart | list[ManifestPart] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
has_primary_key (Annotated[CdifKey | ObjectReference | URIRef | str | list[CdifKey | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
statistics (Annotated[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str | list[Statistics | CategoryStatistics | StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/statistics, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | CdifConcept | ObjectReference | URIRef | str | list[DefinedTerm | CdifConcept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
variable_measured (Annotated[CdifInstanceVariable | VariableMeasured | list[CdifInstanceVariable | VariableMeasured] | None, RdfProperty(predicate=http://schema.org/variableMeasured, datatype=None, language=None, serializer=None, parser=None)])
spatial_coverage (Annotated[Place | list[Place] | None, RdfProperty(predicate=http://schema.org/spatialCoverage, datatype=None, language=None, serializer=None, parser=None)])
temporal_coverage (Annotated[ProperInterval | str | list[ProperInterval | str] | None, RdfProperty(predicate=http://schema.org/temporalCoverage, datatype=None, language=None, serializer=None, parser=None)])
has_quality_measurement (Annotated[QualityMeasurement | list[QualityMeasurement] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#hasQualityMeasurement, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[Identifier | ObjectReference | URIRef | str | list[Identifier | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
version (Annotated[str | float | list[str | float] | None, RdfProperty(predicate=http://schema.org/version, datatype=None, language=None, serializer=None, parser=None)])
in_language (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/inLanguage, datatype=None, language=None, serializer=None, parser=None)])
date_modified (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/dateModified, datatype=None, language=None, serializer=None, parser=None)])
date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/datePublished, datatype=None, language=None, serializer=None, parser=None)])
conditions_of_access (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/conditionsOfAccess, datatype=None, language=None, serializer=None, parser=None)])
license (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/license, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
distribution (Annotated[DataDownload | WebAPI | list[DataDownload | WebAPI] | None, RdfProperty(predicate=http://schema.org/distribution, datatype=None, language=None, serializer=None, parser=None)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, datatype=None, language=None, serializer=None, parser=None)])
publishing_principles (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publishingPrinciples, datatype=None, language=None, serializer=None, parser=None)])
keywords (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/keywords, datatype=None, language=None, serializer=None, parser=None)])
creator (Annotated[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str | list[Person | Organization | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/creator, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Person | Organization | Role | ObjectReference | URIRef | str | list[Person | Organization | Role | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
publisher (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/publisher, datatype=None, language=None, serializer=None, parser=None)])
provider (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/provider, datatype=None, language=None, serializer=None, parser=None)])
funding (Annotated[MonetaryGrant | list[MonetaryGrant] | None, RdfProperty(predicate=http://schema.org/funding, datatype=None, language=None, serializer=None, parser=None)])
was_generated_by (Annotated[CdifProvActivity | list[CdifProvActivity] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasGeneratedBy, datatype=None, language=None, serializer=None, parser=None)])
was_derived_from (Annotated[Reference | ObjectReference | URIRef | str | list[Reference | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#wasDerivedFrom, datatype=None, language=None, serializer=None, parser=None)])
subject_of (Annotated[CatalogRecord | list[CatalogRecord] | None, RdfProperty(predicate=http://schema.org/subjectOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- cdif_profile_uri: ClassVar[str | None] = 'https://w3id.org/cdif/complete/2.0'
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id', '@type', '@context', 'schema:name', 'schema:identifier', 'schema:dateModified', 'schema:subjectOf', 'schema:variableMeasured')
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:license', 'schema:conditionsOfAccess'), ('schema:url', 'schema:distribution'))
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.complete.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.complete.CdifInstanceVariable(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, physical_data_type=None, role=None, simple_unit_of_measure=None, uses=None, is_defined_by_represented_variable=None, function=None, platform_type=None, source=None, is_described_by_statistics_collection=None, described_unit_of_measure=None, qualifies=None, name=None, description=None, alternate_name=None, measurement_technique=None, property_id=None, unit_text=None, unit_code=None, min_value=None, max_value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelCDIF Instance Variable
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
physical_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/physicalDataType, datatype=None, language=None, serializer=None, parser=None)])
role (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/role, datatype=None, language=None, serializer=None, parser=None)])
simple_unit_of_measure (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/simpleUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
uses (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/uses, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_represented_variable (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_RepresentedVariable, datatype=None, language=None, serializer=None, parser=None)])
function (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/function, datatype=None, language=None, serializer=None, parser=None)])
platform_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/platformType, datatype=None, language=None, serializer=None, parser=None)])
source (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/source, datatype=None, language=None, serializer=None, parser=None)])
is_described_by_statistics_collection (Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDescribedBy_StatisticsCollection, datatype=None, language=None, serializer=None, parser=None)])
described_unit_of_measure (Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/describedUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
qualifies (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/qualifies, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
measurement_technique (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/measurementTechnique, datatype=None, language=None, serializer=None, parser=None)])
property_id (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
unit_text (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/unitText, datatype=None, language=None, serializer=None, parser=None)])
unit_code (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/unitCode, datatype=None, language=None, serializer=None, parser=None)])
min_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/minValue, datatype=None, language=None, serializer=None, parser=None)])
max_value (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/maxValue, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/InstanceVariable')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- physical_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.physicalDataType)]
- role: Annotated[str | list[str] | None, RdfProperty(CDIF.role)]
- simple_unit_of_measure: Annotated[str | list[str] | None, RdfProperty(CDIF.simpleUnitOfMeasure)]
- uses: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.uses)]
- is_defined_by_represented_variable: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_RepresentedVariable)]
- function: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.function)]
- platform_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.platformType)]
- source: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.source)]
- is_described_by_statistics_collection: Annotated[StatisticsCollection | ObjectReference | URIRef | str | list[StatisticsCollection | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDescribedBy_StatisticsCollection)]
- described_unit_of_measure: Annotated[DefinedTerm | Concept | ObjectReference | URIRef | str | list[DefinedTerm | Concept | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.describedUnitOfMeasure)]
- qualifies: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.qualifies)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- measurement_technique: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.measurementTechnique)]
- property_id: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- unit_text: Annotated[str | list[str] | None, RdfProperty(SCHEMA.unitText)]
- unit_code: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.unitCode)]
- url: Annotated[Reference | URIRef | str | list[Reference | URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.CdifKey(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, is_composed_of=None, **extra_data)[source]
Bases:
CdifBaseModelProfile of ddi-cdi Key/PrimaryKey: a CDIF Key is the role of an ordered set of cdi:InstanceVariables (referenced via cdifInstanceVariable) that uniquely identify a data instance. Each variable’s position in the key is recorded with an explicit cdi:ComponentPosition wrapper carrying cdi:indexes (the variable) and cdi:value (the integer position), matching the canonical DDI-CDI PrimaryKey structure in ddicdiDataStructure.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
is_composed_of (Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(predicate=https://w3id.org/cdif/isComposedOf, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/Key')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isComposedOf')
- is_composed_of: Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(CDIF.isComposedOf)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.CdifPhysicalMapping(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, index=None, format_value=None, physical_data_type=None, number_pattern=None, null_sequence=None, default_value=None, scale=None, decimal_positions=None, minimum_length=None, maximum_length=None, is_required=None, formats_instance_variable=None, **extra_data)[source]
Bases:
CdifBaseModelDefines implementation-specific properties for the representation of a variable in a dataset. Aligned with CDIF 2026 schema using DDI-CDI flat per-column mapping structure.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
index (Annotated[int | list[int] | None, RdfProperty(predicate=~None.Namespace.index, datatype=None, language=None, serializer=None, parser=None)])
format_value (Annotated[str | list[str] | None, RdfProperty(predicate=~None.Namespace.format, datatype=None, language=None, serializer=None, parser=None)])
physical_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/physicalDataType, datatype=None, language=None, serializer=None, parser=None)])
number_pattern (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/numberPattern, datatype=None, language=None, serializer=None, parser=None)])
null_sequence (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/nullSequence, datatype=None, language=None, serializer=None, parser=None)])
default_value (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/defaultValue, datatype=None, language=None, serializer=None, parser=None)])
scale (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/scale, datatype=None, language=None, serializer=None, parser=None)])
decimal_positions (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/decimalPositions, datatype=None, language=None, serializer=None, parser=None)])
minimum_length (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/minimumLength, datatype=None, language=None, serializer=None, parser=None)])
maximum_length (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/maximumLength, datatype=None, language=None, serializer=None, parser=None)])
is_required (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isRequired, datatype=None, language=None, serializer=None, parser=None)])
formats_instance_variable (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/formats_InstanceVariable, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- format_value: Annotated[str | list[str] | None, RdfProperty(CDIF.format)]
- physical_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.physicalDataType)]
- number_pattern: Annotated[str | list[str] | None, RdfProperty(CDI.numberPattern)]
- null_sequence: Annotated[str | list[str] | None, RdfProperty(CDI.nullSequence)]
- default_value: Annotated[str | list[str] | None, RdfProperty(CDI.defaultValue)]
- is_required: Annotated[bool | list[bool] | None, RdfProperty(CDI.isRequired)]
- formats_instance_variable: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.formats_InstanceVariable)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Concept(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, pref_label=None, alt_label=None, hidden_label=None, notation=None, definition=None, scope_note=None, note=None, history_note=None, change_note=None, editorial_note=None, example=None, in_scheme=None, top_concept_of=None, broader=None, narrower=None, related=None, exact_match=None, close_match=None, broad_match=None, narrow_match=None, related_match=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
pref_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#prefLabel, datatype=None, language=None, serializer=None, parser=None)])
alt_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#altLabel, datatype=None, language=None, serializer=None, parser=None)])
hidden_label (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#hiddenLabel, datatype=None, language=None, serializer=None, parser=None)])
notation (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#notation, datatype=None, language=None, serializer=None, parser=None)])
definition (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#definition, datatype=None, language=None, serializer=None, parser=None)])
scope_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#scopeNote, datatype=None, language=None, serializer=None, parser=None)])
note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#note, datatype=None, language=None, serializer=None, parser=None)])
history_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#historyNote, datatype=None, language=None, serializer=None, parser=None)])
change_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#changeNote, datatype=None, language=None, serializer=None, parser=None)])
editorial_note (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#editorialNote, datatype=None, language=None, serializer=None, parser=None)])
example (Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#example, datatype=None, language=None, serializer=None, parser=None)])
in_scheme (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#inScheme, datatype=None, language=None, serializer=None, parser=None)])
top_concept_of (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#topConceptOf, datatype=None, language=None, serializer=None, parser=None)])
broader (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broader, datatype=None, language=None, serializer=None, parser=None)])
narrower (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrower, datatype=None, language=None, serializer=None, parser=None)])
related (Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#related, datatype=None, language=None, serializer=None, parser=None)])
exact_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#exactMatch, datatype=None, language=None, serializer=None, parser=None)])
close_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#closeMatch, datatype=None, language=None, serializer=None, parser=None)])
broad_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#broadMatch, datatype=None, language=None, serializer=None, parser=None)])
narrow_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#narrowMatch, datatype=None, language=None, serializer=None, parser=None)])
related_match (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2004/02/skos/core#relatedMatch, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#Concept')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'skos:prefLabel', 'skos:definition', 'skos:inScheme')
- pref_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.prefLabel)]
- alt_label: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.altLabel)]
- notation: Annotated[str | list[str] | None, RdfProperty(SKOS.notation)]
- definition: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.definition)]
- scope_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.scopeNote)]
- note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.note)]
- history_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.historyNote)]
- change_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.changeNote)]
- editorial_note: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.editorialNote)]
- example: Annotated[LanguageTaggedValue | str | list[LanguageTaggedValue | str] | None, RdfProperty(SKOS.example)]
- in_scheme: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.inScheme)]
- top_concept_of: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.topConceptOf)]
- broader: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broader)]
- narrower: Annotated[Concept | ObjectReference | URIRef | str | list[Concept | ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrower)]
- exact_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.exactMatch)]
- close_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.closeMatch)]
- broad_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.broadMatch)]
- narrow_match: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SKOS.narrowMatch)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Contributor(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, role_name=None, contributor=None, agent=None, participant=None, **extra_data)[source]
Bases:
CdifBaseModelFor more granularity on how a person contributed to a Dataset, use schema:Role. The schema.org documentation does not state that the Role type is an expected data type of author, creator and contributor, but that is addressed in this blog post (http://blog.schema.org/2014/06/introducing-role.html). see https://github.com/ESIPFed/science-on- schema.org/blob/develop/guides/Dataset.md#roles-of-people. The Role holds the agent under the property it sits under, as schema.org’s Role pattern and validator.schema.org require – schema:contributor inside a contributor Role, schema:agent inside an activity’s agent Role, schema:participant inside a participant Role. At least one is required.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
role_name (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/roleName, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
agent (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/agent, datatype=None, language=None, serializer=None, parser=None)])
participant (Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(predicate=http://schema.org/participant, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Role')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:roleName')
- role_name: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.roleName)]
- contributor: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.contributor)]
- agent: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.agent)]
- participant: Annotated[RoleFiller | list[RoleFiller] | None, RdfProperty(SCHEMA.participant)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.DataStructureComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, **extra_data)[source]
Bases:
CdifBaseModelMembers common to every data structure component. Composed into each component below with allOf; not a component type in its own right, and not a branch of this schema’s root anyOf.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.DefinedTerm(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, in_defined_term_set=None, term_code=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelschema.org Defined Term schema. Union-type policy: In CDIF profile UML models an attribute typed as schema:DefinedTerm is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as schema:name or schema:termCode in the default vocabulary) OR a full schema:DefinedTerm object (with explicit @type, name, identifier, termCode, inDefinedTermSet). Consumers should accept either form. Note that this differs from the cdif Concept policy: a Concept (skos:Concept) in CDIF profiles MUST be a controlled-vocabulary entry (object form or @id-reference) — plain strings are not permitted for Concept-typed values because vocabulary identity cannot be recovered from an unscoped label.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
in_defined_term_set (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/inDefinedTermSet, datatype=None, language=None, serializer=None, parser=None)])
term_code (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/termCode, datatype=None, language=None, serializer=None, parser=None)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DefinedTerm')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier', 'schema:termCode'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- in_defined_term_set: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.inDefinedTermSet)]
- term_code: Annotated[str | list[str] | None, RdfProperty(SCHEMA.termCode)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.DimensionComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, categorical_additivity=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a dimensional data structure to identify the universes associated with data points. The variable acts as a field in the compound identifier (the key structure) to disambiguate the cells in the multi-dimensional “cube”. AG: references to the variables which are the components of a compound identifier, in which each variable is a single field - an axis - in a coordinate system addressing a location in a matrix. These variables are often categorical, but also commonly include time. Unlike other Components, they may be ordered using instances of cdi:ComponentPosition.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
categorical_additivity (Annotated[bool | list[bool] | None, RdfProperty(predicate=https://w3id.org/cdif/categoricalAdditivity, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DimensionComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_Variable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- categorical_additivity: Annotated[bool | list[bool] | None, RdfProperty(CDIF.categoricalAdditivity)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.ForeignKey(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, is_composed_of=None, references_primary_key=None, **extra_data)[source]
Bases:
CdifBaseModelA set of variables whose values reference a primary key elsewhere. cdif:, not cdi:, throughout: this is a CDIF simplification, not the DDI-CDI shape. DDI-CDI composes a foreign key from cdi:ForeignKeyComponent nodes, each with cdi:correspondsTo and cdi:references; this form composes the variables directly, each carrying cdif:position. The prefix is what makes that divergence visible, and it matches the sibling cdif:Key. Until 2026-09-05 the definition required ‘cdif:isComposedOf’ while declaring ‘cdi:isComposedOf’, so it could only be satisfied by an undeclared and therefore unconstrained property.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
is_composed_of (Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(predicate=https://w3id.org/cdif/isComposedOf, datatype=None, language=None, serializer=None, parser=None)])
references_primary_key (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/references_PrimaryKey, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/ForeignKey')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isComposedOf', 'cdif:references_PrimaryKey')
- is_composed_of: Annotated[ComponentPosition | list[ComponentPosition] | None, RdfProperty(CDIF.isComposedOf)]
- references_primary_key: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.references_PrimaryKey)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.HowTo(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, is_based_on=None, step=None, **extra_data)[source]
Bases:
CdifBaseModelA methodology or protocol described as a HowTo with optional steps
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
is_based_on (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/isBasedOn, datatype=None, language=None, serializer=None, parser=None)])
step (Annotated[HowToStep | list[HowToStep] | None, RdfProperty(predicate=http://schema.org/step, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/HowTo')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- is_based_on: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.isBasedOn)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.HowToStep(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, position=None, additional_type=None, agent=None, instrument=None, object_value=None, result=None, additional_property=None, action_process=None, **extra_data)[source]
Bases:
CdifBaseModelA single step in a HowTo methodology. A step typed schema:HowToStep alone carries only its text, position and documentation link. Typed schema:HowToStep AND schema:Action, it also carries what the step used, acted on and produced, who performed it, the parameter values it used, and a nested sub-procedure – the activity’s own properties, so a step and the activity it belongs to are described the same way. Declaring schema:Action is required once any of those properties is present. A process is therefore free to be a set of HowTo objects, or one HowTo whose steps are actions with sub-procedures of their own; which parts are direct HowTo objects and which are steps is the protocol author’s decision.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
position (Annotated[int | list[int] | None, RdfProperty(predicate=http://schema.org/position, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
agent (Annotated[Person | Organization | Contributor | ObjectReference | URIRef | str | list[Person | Organization | Contributor | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/agent, datatype=None, language=None, serializer=None, parser=None)])
instrument (Annotated[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str | list[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(predicate=http://schema.org/instrument, datatype=None, language=None, serializer=None, parser=None)])
object_value (Annotated[ThingValue | list[ThingValue] | None, RdfProperty(predicate=http://schema.org/object, datatype=None, language=None, serializer=None, parser=None)])
result (Annotated[ThingValue | list[ThingValue] | None, RdfProperty(predicate=http://schema.org/result, datatype=None, language=None, serializer=None, parser=None)])
additional_property (Annotated[AdditionalProperty | list[AdditionalProperty] | None, RdfProperty(predicate=http://schema.org/additionalProperty, datatype=None, language=None, serializer=None, parser=None)])
action_process (Annotated[HowTo | ObjectReference | URIRef | str | list[HowTo | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/actionProcess, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/HowToStep')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- additional_type: Annotated[str | list[str] | None, RdfProperty(SCHEMA.additionalType)]
- agent: Annotated[Person | Organization | Contributor | ObjectReference | URIRef | str | list[Person | Organization | Contributor | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.agent)]
- instrument: Annotated[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str | list[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(SCHEMA.instrument)]
- object_value: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.object)]
- result: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.result)]
- additional_property: Annotated[AdditionalProperty | list[AdditionalProperty] | None, RdfProperty(SCHEMA.additionalProperty)]
- action_process: Annotated[HowTo | ObjectReference | URIRef | str | list[HowTo | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.actionProcess)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Identifier(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelProperties for a schema.org identifier (schema:PropertyValue pattern). Union-type policy: In CDIF profile UML models an attribute typed as schema:Identifier / schema:PropertyValue is represented by a single attribute of that class type. The JSON Schema implementation permits the property value to be EITHER a plain string (interpreted as the bare identifier value) OR a full schema:PropertyValue object (with explicit @type, propertyID, value). Consumers should accept either form.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
property_id (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/propertyID, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/value, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/PropertyValue')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:value', 'schema:url'),)
- property_id: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.propertyID)]
- value: Annotated[str | list[str] | None, RdfProperty(SCHEMA.value)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.IdentifierComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a long or wide data structure to identify the units associated to data points, and in dimensional and key value data structures to provide identifying fields for the instance values.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/IdentifierComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_Variable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.InstrumentComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, alternate_name=None, identifier=None, additional_type=None, additional_property=None, manufacturer=None, model=None, has_part=None, **extra_data)[source]
Bases:
CdifBaseModelA sub-component of an instrument system (for example a sensor, or a sensing element within a sensor). Uses the same structure as the parent instrument and may itself carry schema:hasPart, so component hierarchies nest to any depth (instrument > sensor > sensing element …).
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
additional_property (Annotated[AdditionalProperty | AdditionalPropertySpecification | list[AdditionalProperty | AdditionalPropertySpecification] | None, RdfProperty(predicate=http://schema.org/additionalProperty, datatype=None, language=None, serializer=None, parser=None)])
manufacturer (Annotated[Organization | list[Organization] | None, RdfProperty(predicate=http://schema.org/manufacturer, datatype=None, language=None, serializer=None, parser=None)])
model (Annotated[ProductModel | list[ProductModel] | None, RdfProperty(predicate=http://schema.org/model, datatype=None, language=None, serializer=None, parser=None)])
has_part (Annotated[InstrumentComponent | ObjectReference | URIRef | str | list[InstrumentComponent | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/hasPart, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- additional_property: Annotated[AdditionalProperty | AdditionalPropertySpecification | list[AdditionalProperty | AdditionalPropertySpecification] | None, RdfProperty(SCHEMA.additionalProperty)]
- manufacturer: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.manufacturer)]
- model: Annotated[ProductModel | list[ProductModel] | None, RdfProperty(SCHEMA.model)]
- has_part: Annotated[InstrumentComponent | ObjectReference | URIRef | str | list[InstrumentComponent | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.hasPart)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.complete.IsStructuredByProperty = DataStructure | DimensionalDataStructure | LongDataStructure | WideDataStructure | ObjectReference | str | URIRef
- class dartfx.cdif.models.profiles.complete.LanguageTaggedValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, language=None, **extra_data)[source]
Bases:
CdifBaseModelAn RDF literal value with a language tag, serialized as a JSON-LD value object.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
value (str | None)
language (str | None)
extra_data (Any)
- value: str | None
- language: str | None
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.MeasureComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, name=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to hold the observed/derived values.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/name, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/MeasureComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- name: Annotated[str | list[str] | None, RdfProperty(CDIF.name)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.ObjectReference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelA reference to a node defined elsewhere, by its @id.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- cdif_forbid_extra: ClassVar[bool] = True
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@id',)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Organization(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, additional_type=None, name=None, alternate_name=None, description=None, identifier=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModel- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
additional_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Organization')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Person(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, identifier=None, alternate_name=None, affiliation=None, contact_point=None, same_as=None, **extra_data)[source]
Bases:
CdifBaseModelschema for cdif profile of schema.org/Person
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
affiliation (Annotated[Organization | list[Organization] | None, RdfProperty(predicate=http://schema.org/affiliation, datatype=None, language=None, serializer=None, parser=None)])
contact_point (Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(predicate=http://schema.org/contactPoint, datatype=None, language=None, serializer=None, parser=None)])
same_as (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/sameAs, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Person')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- cdif_any_of_required: ClassVar[tuple[tuple[str, ...], ...]] = (('schema:name', 'schema:identifier'),)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- alternate_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.alternateName)]
- affiliation: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.affiliation)]
- contact_point: Annotated[ContactPoint | list[ContactPoint] | None, RdfProperty(SCHEMA.contactPoint)]
- same_as: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.sameAs)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Reference(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, had_role=None, relation=None, **extra_data)[source]
Bases:
CdifBaseModelSchema for a labeled link, a profile of schema.org/CreativeWork: a resolvable URL with an optional name and description. Optionally carries the DCAT relation surface (dcat:hadRole, dcterms:relation) for a link that expresses a typed relationship rather than a plain reference. Those two properties were a separate block, cdifDataType/cdifReference, which was an allOf of this schema plus exactly those two optional properties and nothing else – its dcat:Relationship co-type mandate had already been removed because it made every labeled link unsatisfiable and broke every schema:license example that followed schema.org’s own advice. Since both are optional, folding them in here changes no document’s validity while removing a block and five levels of $defs/Reference indirection. cdifReference was retired 2026-09-23.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
had_role (Annotated[Role | CdifConceptOrTermOrString | list[Role | CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://www.w3.org/ns/dcat#hadRole, datatype=None, language=None, serializer=None, parser=None)])
relation (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://purl.org/dc/terms/relation, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/CreativeWork')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- had_role: Annotated[Role | CdifConceptOrTermOrString | list[Role | CdifConceptOrTermOrString] | None, RdfProperty(DCAT.hadRole)]
- relation: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(DCTERMS.relation)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.RoleFiller(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelThe Person or Organization in this role.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
extra_data (Any)
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.SentinelValueDomain(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, takes_values_from=None, display_label=None, recommended_data_type=None, is_described_by=None, **extra_data)[source]
Bases:
CdifBaseModelSpecification of possible sentinel values used by a variable. Sentinel values are special values used to indicate various invalid conditions for a variable, e.g. below detection, missing value.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
takes_values_from (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/takesValuesFrom, datatype=None, language=None, serializer=None, parser=None)])
display_label (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/displayLabel, datatype=None, language=None, serializer=None, parser=None)])
recommended_data_type (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/recommendedDataType, datatype=None, language=None, serializer=None, parser=None)])
is_described_by (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isDescribedBy, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/SentinelValueDomain')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- takes_values_from: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.takesValuesFrom)]
- display_label: Annotated[str | list[str] | None, RdfProperty(CDIF.displayLabel)]
- recommended_data_type: Annotated[str | list[str] | None, RdfProperty(CDIF.recommendedDataType)]
- is_described_by: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDI.isDescribedBy)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.Statistics(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, type_of_statistic=None, statistic=None, has_weight=None, applies_to=None, has_category_statistics=None, **extra_data)[source]
Bases:
CdifBaseModelA named bundle of one or more Statistic value objects for an instance variable, optionally weighted, optionally broken down by Category.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
type_of_statistic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/typeOfStatistic, datatype=None, language=None, serializer=None, parser=None)])
statistic (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/statistic, datatype=None, language=None, serializer=None, parser=None)])
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
applies_to (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/appliesTo, datatype=None, language=None, serializer=None, parser=None)])
has_category_statistics (Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(predicate=https://w3id.org/cdif/has_CategoryStatistics, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Statistics')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:statistic')
- type_of_statistic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.typeOfStatistic)]
- statistic: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDI.statistic)]
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- applies_to: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.appliesTo)]
- has_category_statistics: Annotated[CategoryStatistics | list[CategoryStatistics] | None, RdfProperty(CDIF.has_CategoryStatistics)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.StatisticsCollection(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_weight=None, has_statistics=None, indexed_by=None, **extra_data)[source]
Bases:
CdifBaseModelGroups one or more Statistics nodes for an instance variable. A typical use is a dataset-level collection holding row-count / mean / stddev Statistics for each measured variable.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
has_weight (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/hasWeight, datatype=None, language=None, serializer=None, parser=None)])
has_statistics (Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/has_Statistics, datatype=None, language=None, serializer=None, parser=None)])
indexed_by (Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/indexedBy, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/StatisticsCollection')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:has_Statistics')
- has_weight: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDI.hasWeight)]
- has_statistics: Annotated[Statistics | ObjectReference | URIRef | str | list[Statistics | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.has_Statistics)]
- indexed_by: Annotated[CdifInstanceVariable | ObjectReference | URIRef | str | list[CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.indexedBy)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.SubstantiveValueDomain(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, takes_values_from=None, display_label=None, recommended_data_type=None, is_described_by=None, **extra_data)[source]
Bases:
CdifBaseModelValue domain for a substantive conceptual domain. Typically a description and/or enumeration of allowed values of interest.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
takes_values_from (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/takesValuesFrom, datatype=None, language=None, serializer=None, parser=None)])
display_label (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/displayLabel, datatype=None, language=None, serializer=None, parser=None)])
recommended_data_type (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/recommendedDataType, datatype=None, language=None, serializer=None, parser=None)])
is_described_by (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isDescribedBy, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/SubstantiveValueDomain')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- takes_values_from: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDIF.takesValuesFrom)]
- display_label: Annotated[str | list[str] | None, RdfProperty(CDIF.displayLabel)]
- recommended_data_type: Annotated[str | list[str] | None, RdfProperty(CDIF.recommendedDataType)]
- is_described_by: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDI.isDescribedBy)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- type dartfx.cdif.models.profiles.complete.ThingValue = ObjectReference | dict[str, Any] | str | URIRef
- class dartfx.cdif.models.profiles.complete.VariableDescriptorComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, is_defined_by_descriptor_variable=None, refers_to=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to provide codes for variable identification.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_descriptor_variable (Annotated[DescriptorVariable | list[DescriptorVariable] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_DescriptorVariable, datatype=None, language=None, serializer=None, parser=None)])
refers_to (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/refersTo, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableDescriptorComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:isDefinedBy_DescriptorVariable')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- is_defined_by_descriptor_variable: Annotated[DescriptorVariable | list[DescriptorVariable] | None, RdfProperty(CDIF.isDefinedBy_DescriptorVariable)]
- refers_to: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDI.refersTo)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class dartfx.cdif.models.profiles.complete.VariableValueComponent(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, is_defined_by_variable=None, semantic=None, **extra_data)[source]
Bases:
CdifBaseModelRole given to a represented variable in the context of a data structure to record values of multiple variables.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/identifier, datatype=None, language=None, serializer=None, parser=None)])
is_defined_by_variable (Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/isDefinedBy_Variable, datatype=None, language=None, serializer=None, parser=None)])
semantic (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/semantic, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableValueComponent')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- is_defined_by_variable: Annotated[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str | list[RepresentedVariable | CdifInstanceVariable | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.isDefinedBy_Variable)]
- semantic: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.semantic)]
- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None