Common Sub-Models
Shared CDIF building-block Pydantic + RDF models generated from CDIF JSON Schemas.
- class dartfx.cdif.models.common.Action(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, target=None, result=None, object_value=None, query_input=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)
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
target (Annotated[EntryPoint | list[EntryPoint] | None, RdfProperty(predicate=http://schema.org/target, datatype=None, language=None, serializer=None, parser=None)])
result (Annotated[DataDownload | list[DataDownload] | None, RdfProperty(predicate=http://schema.org/result, datatype=None, language=None, serializer=None, parser=None)])
object_value (Annotated[Thing | list[Thing] | None, RdfProperty(predicate=http://schema.org/object, datatype=None, language=None, serializer=None, parser=None)])
query_input (Annotated[PropertyValueSpecification | list[PropertyValueSpecification] | None, RdfProperty(predicate=http://schema.org/query-input, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Action')]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- target: Annotated[EntryPoint | list[EntryPoint] | None, RdfProperty(SCHEMA.target)]
- result: Annotated[DataDownload | list[DataDownload] | None, RdfProperty(SCHEMA.result)]
- query_input: Annotated[PropertyValueSpecification | list[PropertyValueSpecification] | None, RdfProperty(SCHEMA['query-input'])]
- 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.common.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.common.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.common.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
- class dartfx.cdif.models.common.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.common.CatalogRecord(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, conforms_to=None, date_modified=None, about=None, additional_type=None, maintainer=None, sd_date_published=None, included_in_data_catalog=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)
conforms_to (Annotated[Any | list[Any] | None, RdfProperty(predicate=http://purl.org/dc/terms/conformsTo, 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)])
about (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/about, datatype=None, language=None, serializer=None, parser=None)])
additional_type (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/additionalType, datatype=None, language=None, serializer=None, parser=None)])
maintainer (Annotated[Person | Organization | list[Person | Organization] | None, RdfProperty(predicate=http://schema.org/maintainer, datatype=None, language=None, serializer=None, parser=None)])
sd_date_published (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/sdDatePublished, datatype=None, language=None, serializer=None, parser=None)])
included_in_data_catalog (Annotated[DataCatalog | list[DataCatalog] | None, RdfProperty(predicate=http://schema.org/includedInDataCatalog, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Dataset')]
- conforms_to: Annotated[Any | list[Any] | None, RdfProperty(DCTERMS.conformsTo)]
- date_modified: Annotated[str | list[str] | None, RdfProperty(SCHEMA.dateModified)]
- about: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.about)]
- additional_type: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.additionalType)]
- maintainer: Annotated[Person | Organization | list[Person | Organization] | None, RdfProperty(SCHEMA.maintainer)]
- sd_date_published: Annotated[str | list[str] | None, RdfProperty(SCHEMA.sdDatePublished)]
- included_in_data_catalog: Annotated[DataCatalog | list[DataCatalog] | None, RdfProperty(SCHEMA.includedInDataCatalog)]
- 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.common.Category(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, descriptive_text=None, definition=None, display_label=None, **extra_data)[source]
Bases:
CdifBaseModelMinimal Category shape used as a CategoryStatistics target. CDIF simplifies the DDI-CDI InternationalString / LabelForDisplay / ObjectName valued properties to plain strings carried under the cdif: namespace. A full CDIF treatment of categories lives in cdifEnumerationDomain / SKOS Concept.
- 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=https://w3id.org/cdif/name, 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)])
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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Category')]
- name: Annotated[str | list[str] | None, RdfProperty(CDIF.name)]
- descriptive_text: Annotated[str | list[str] | None, RdfProperty(CDIF.descriptiveText)]
- definition: Annotated[str | list[str] | None, RdfProperty(CDIF.definition)]
- display_label: Annotated[str | list[str] | None, RdfProperty(CDIF.displayLabel)]
- 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.common.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.common.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.common.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.common.CdifConceptOrTermOrString = DefinedTerm | Concept | CdifConcept | ObjectReference | str | URIRef
- class dartfx.cdif.models.common.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.common.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.common.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.common.CdifProvActivity(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, used=None, instrument=None, name=None, description=None, identifier=None, agent=None, participant=None, object_value=None, result=None, action_status=None, start_time=None, end_time=None, location=None, action_process=None, error=None, additional_property=None, **extra_data)[source]
Bases:
CdifBaseModelExtended provenance activity building block for CDIF – the schema.org implementation. Extends the minimal prov:Activity (generatedBy) with schema.org Action properties for agents, instruments, inputs and outputs, methodology and plan, temporal bounds, action chaining, and more. What the activity used is recorded with schema:instrument (instruments, software, reagents) and schema:object (inputs), not with prov:used.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
used (Annotated[Entity | ObjectReference | URIRef | str | list[Entity | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/prov#used, 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)])
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)])
agent (Annotated[Person | Organization | AgentInRole | ObjectReference | URIRef | str | list[Person | Organization | AgentInRole | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/agent, datatype=None, language=None, serializer=None, parser=None)])
participant (Annotated[Person | Organization | AgentInRole | ObjectReference | URIRef | str | list[Person | Organization | AgentInRole | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/participant, 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)])
action_status (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/actionStatus, datatype=None, language=None, serializer=None, parser=None)])
start_time (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/startTime, datatype=None, language=None, serializer=None, parser=None)])
end_time (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/endTime, datatype=None, language=None, serializer=None, parser=None)])
location (Annotated[Place | ObjectReference | URIRef | str | list[Place | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/location, 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)])
error (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/error, 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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/ns/prov#Activity'), rdflib.term.URIRef('http://schema.org/Action')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- used: Annotated[Entity | ObjectReference | URIRef | str | list[Entity | ObjectReference | URIRef | str] | None, RdfProperty(PROV.used)]
- instrument: Annotated[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str | list[InstrumentProduct | SoftwareApplication | ObjectReference | dict[str, Any] | URIRef | str] | None, RdfProperty(SCHEMA.instrument)]
- 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)]
- agent: Annotated[Person | Organization | AgentInRole | ObjectReference | URIRef | str | list[Person | Organization | AgentInRole | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.agent)]
- participant: Annotated[Person | Organization | AgentInRole | ObjectReference | URIRef | str | list[Person | Organization | AgentInRole | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.participant)]
- object_value: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.object)]
- result: Annotated[ThingValue | list[ThingValue] | None, RdfProperty(SCHEMA.result)]
- action_status: Annotated[str | list[str] | None, RdfProperty(SCHEMA.actionStatus)]
- start_time: Annotated[str | list[str] | None, RdfProperty(SCHEMA.startTime)]
- end_time: Annotated[str | list[str] | None, RdfProperty(SCHEMA.endTime)]
- location: Annotated[Place | ObjectReference | URIRef | str | list[Place | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.location)]
- action_process: Annotated[HowTo | ObjectReference | URIRef | str | list[HowTo | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.actionProcess)]
- error: Annotated[str | list[str] | None, RdfProperty(SCHEMA.error)]
- additional_property: Annotated[AdditionalProperty | list[AdditionalProperty] | None, RdfProperty(SCHEMA.additionalProperty)]
- 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.common.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.common.Checksum(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, algorithm=None, checksum_value=None, **extra_data)[source]
Bases:
CdifBaseModelA string value calculated from the content of the resource representation, used to test if content has been modified. The checksum is a property of a particular distribution/DataDownload.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
algorithm (Annotated[str | list[str] | None, RdfProperty(predicate=http://spdx.org/rdf/terms#algorithm, datatype=None, language=None, serializer=None, parser=None)])
checksum_value (Annotated[str | list[str] | None, RdfProperty(predicate=http://spdx.org/rdf/terms#checksumValue, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://spdx.org/rdf/terms#Checksum')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- algorithm: Annotated[str | list[str] | None, RdfProperty(SPDX.algorithm)]
- checksum_value: Annotated[str | list[str] | None, RdfProperty(SPDX.checksumValue)]
- 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.common.ComponentPosition(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, indexes=None, value=None, **extra_data)[source]
Bases:
CdifBaseModelComponentPosition wrapper indexing one variable’s position in the key.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
indexes (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/indexes, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/value, 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/ComponentPosition')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdi:indexes', 'cdi:value')
- indexes: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(CDI.indexes)]
- 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.common.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.common.ConceptScheme(*, 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_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.common.ContactPoint(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, email=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelAn email address or a contact web page (a form, an issue tracker), or both; at least one is required. Schema.org also allows telephone and postal contacts. A URL-only contact is ordinary in DCAT (a vcard:Kind with only vcard:hasURL), so requiring email made such records invalid.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
email (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/email, 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/ContactPoint')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- email: Annotated[str | list[str] | None, RdfProperty(SCHEMA.email)]
- 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.common.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.common.CreativeWorkRef(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelschema for a labeled link, a profile of schema.org/CreativeWork
- 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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/CreativeWork')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:url')
- 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)]
- 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.common.DataCatalog(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, url=None, identifier=None, **extra_data)[source]
Bases:
CdifBaseModelidentify the source for the origin the metadata record.
- 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)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=http://schema.org/identifier, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DataCatalog')]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(SCHEMA.identifier)]
- 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.common.DataDownload(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, content_url=None, encoding_format=None, content_size=None, checksum=None, conforms_to=None, provider=None, **extra_data)[source]
Bases:
CdifBaseModelschema to document file-based access to a resoruce via URL, based on schema.org/DataDownload
- 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)])
content_url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/contentUrl, datatype=None, language=None, serializer=None, parser=None)])
encoding_format (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/encodingFormat, datatype=None, language=None, serializer=None, parser=None)])
content_size (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/contentSize, datatype=None, language=None, serializer=None, parser=None)])
checksum (Annotated[Checksum | list[Checksum] | None, RdfProperty(predicate=http://spdx.org/rdf/terms#checksum, datatype=None, language=None, serializer=None, parser=None)])
conforms_to (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://purl.org/dc/terms/conformsTo, 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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/DataDownload')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:contentUrl', '@type')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- content_url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.contentUrl)]
- encoding_format: Annotated[str | list[str] | None, RdfProperty(SCHEMA.encodingFormat)]
- content_size: Annotated[str | list[str] | None, RdfProperty(SCHEMA.contentSize)]
- conforms_to: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(DCTERMS.conformsTo)]
- provider: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.provider)]
- 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.common.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.common.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.common.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.common.DescriptorValueDomain(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, takes_values_from=None, **extra_data)[source]
Bases:
CdifBaseModelA cdi:DescriptorValueDomain enumerating the codes that can appear in the descriptor column, each paired (via cdif:isDefinedBy) with the RepresentedVariable that the code names.
- 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[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=https://w3id.org/cdif/takesValuesFrom, 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/DescriptorValueDomain')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:takesValuesFrom')
- takes_values_from: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDIF.takesValuesFrom)]
- 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.common.DescriptorVariable(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_values_from=None, name=None, **extra_data)[source]
Bases:
CdifBaseModelVariable that provides codes for variable identification in the context of a data structure. Descriptor Variables hold values which reference the logical variables in the data set, indicating which one the associated value in the corresponding Reference Variable is a measure/value for. Descriptor Variables are presentational variables found only in Long Data Sets. EA models this as its own association (connector 345) rather than a formal redefinition of the inherited isDefinedBy (connector 429), but CDIF treats it as a redefinition: the variable a VariableDescriptorComponent is a role of IS its DescriptorVariable, so the inherited property is disallowed below rather than left available.
- 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_values_from (Annotated[DescriptorValueDomain | list[DescriptorValueDomain] | None, RdfProperty(predicate=https://w3id.org/cdif/hasValuesFrom, 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/DescriptorVariable')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:hasValuesFrom', 'cdif:name')
- has_values_from: Annotated[DescriptorValueDomain | list[DescriptorValueDomain] | None, RdfProperty(CDIF.hasValuesFrom)]
- 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.common.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.common.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.common.Entity(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, **extra_data)[source]
Bases:
CdifBaseModelan inline prov:Entity used by the activity (see prov:used description)
- 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)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/ns/prov#Entity')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- 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.common.EntryPoint(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, url=None, encoding_format=None, description=None, url_template=None, http_method=None, content_type=None, **extra_data)[source]
Bases:
CdifBaseModelThe entry point being linked to. Deliberately not sealed: real targets also carry schema:httpMethod, schema:urlTemplate, schema:contentType and domain-specific properties, and JSON-LD is open-world.
- 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)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, datatype=None, language=None, serializer=None, parser=None)])
encoding_format (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/encodingFormat, 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_template (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/urlTemplate, datatype=None, language=None, serializer=None, parser=None)])
http_method (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/httpMethod, datatype=None, language=None, serializer=None, parser=None)])
content_type (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/contentType, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/EntryPoint')]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- encoding_format: Annotated[str | list[str] | None, RdfProperty(SCHEMA.encodingFormat)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- url_template: Annotated[str | list[str] | None, RdfProperty(SCHEMA.urlTemplate)]
- http_method: Annotated[str | list[str] | None, RdfProperty(SCHEMA.httpMethod)]
- content_type: Annotated[str | list[str] | None, RdfProperty(SCHEMA.contentType)]
- 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.common.EnumerationDomain(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, name=None, references=None, purpose=None, **extra_data)[source]
Bases:
CdifBaseModelA base class acting as an extension point to allow a codification vocabulary to be documented as enumerated value domain.
- 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)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
references (Annotated[ConceptScheme | ObjectReference | URIRef | str | list[ConceptScheme | ObjectReference | URIRef | str] | None, RdfProperty(predicate=https://w3id.org/cdif/references, datatype=None, language=None, serializer=None, parser=None)])
purpose (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/purpose, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('https://w3id.org/cdif/EnumerationDomain')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'cdif:references')
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.identifier)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- references: Annotated[ConceptScheme | ObjectReference | URIRef | str | list[ConceptScheme | ObjectReference | URIRef | str] | None, RdfProperty(CDIF.references)]
- purpose: Annotated[str | list[str] | None, RdfProperty(CDIF.purpose)]
- 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.common.Fingerprint(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, algorithm_specification=None, algorithm_version=None, type_of_fingerprint=None, **extra_data)[source]
Bases:
CdifBaseModelIntegrity fingerprint (checksum/hash) of this distribution’s bytes (DDI-CDI DataFingerprint).
- 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 (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/value, datatype=None, language=None, serializer=None, parser=None)])
algorithm_specification (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/algorithmSpecification, datatype=None, language=None, serializer=None, parser=None)])
algorithm_version (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/algorithmVersion, datatype=None, language=None, serializer=None, parser=None)])
type_of_fingerprint (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/typeOfFingerprint, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('cdi:value',)
- value: Annotated[str | list[str] | None, RdfProperty(CDI.value)]
- algorithm_specification: Annotated[str | list[str] | None, RdfProperty(CDI.algorithmSpecification)]
- algorithm_version: Annotated[str | list[str] | None, RdfProperty(CDI.algorithmVersion)]
- type_of_fingerprint: Annotated[str | list[str] | None, RdfProperty(CDI.typeOfFingerprint)]
- 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.common.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.common.GeoCoordinates(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, latitude=None, longitude=None, **extra_data)[source]
Bases:
CdifBaseModelA point location. Point locations are recommended for data that is associated with specific sample locations, particularly if these are widely spaced such that an enclosing bounding box would be a misleading representation of the spatial location. Be aware that some client applications might only index or display bounding box extents or a single point location.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
latitude (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/latitude, datatype=None, language=None, serializer=None, parser=None)])
longitude (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/longitude, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/GeoCoordinates')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:latitude', 'schema:longitude')
- 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.common.GeoShape(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, box=None, line=None, **extra_data)[source]
Bases:
CdifBaseModelA schema:GeoShape bounding box. The geometry is described with a set of latitude/longitude pairs (in that order).The documentation for schema:GeoShape states ‘Either whitespace or commas can be used to separate latitude and longitude; whitespace should be used when writing a list of several such points.’
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
box (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/box, datatype=None, language=None, serializer=None, parser=None)])
line (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/line, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/GeoShape')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:box')
- box: Annotated[str | list[str] | None, RdfProperty(SCHEMA.box)]
- line: Annotated[str | list[str] | None, RdfProperty(SCHEMA.line)]
- 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.common.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.common.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.common.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.common.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.common.Instant(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, in_time_position=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)
in_time_position (Annotated[TimePosition | list[TimePosition] | None, RdfProperty(predicate=http://www.w3.org/2006/time#inTimePosition, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2006/time#Instant')]
- in_time_position: Annotated[TimePosition | list[TimePosition] | None, RdfProperty(TIME.inTimePosition)]
- 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.common.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
- class dartfx.cdif.models.common.InstrumentProduct(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, additional_type=None, name=None, description=None, alternate_name=None, identifier=None, url=None, manufacturer=None, model=None, category=None, owner=None, contributor=None, additional_property=None, valid_from=None, valid_through=None, has_part=None, related_link=None, subject_of=None, **extra_data)[source]
Bases:
CdifBaseModelSchema for describing laboratory instruments and instrument systems. Supports ownership, manufacturer, model, commissioning dates, hierarchical sub-components via schema:hasPart, and domain-specific typing. Instruments may be standalone devices or complex systems with sub-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)
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)])
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
alternate_name (Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | 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)])
url (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, 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)])
category (Annotated[DefinedTerm | list[DefinedTerm] | None, RdfProperty(predicate=http://schema.org/category, datatype=None, language=None, serializer=None, parser=None)])
owner (Annotated[Organization | list[Organization] | None, RdfProperty(predicate=http://schema.org/owner, datatype=None, language=None, serializer=None, parser=None)])
contributor (Annotated[Contributor | list[Contributor] | None, RdfProperty(predicate=http://schema.org/contributor, 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)])
valid_from (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/validFrom, datatype=None, language=None, serializer=None, parser=None)])
valid_through (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/validThrough, 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)])
related_link (Annotated[LinkRole | list[LinkRole] | None, RdfProperty(predicate=http://schema.org/relatedLink, 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/Product')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- alternate_name: Annotated[ObjectReference | URIRef | str | list[ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.alternateName)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- url: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(SCHEMA.url)]
- manufacturer: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.manufacturer)]
- model: Annotated[ProductModel | list[ProductModel] | None, RdfProperty(SCHEMA.model)]
- category: Annotated[DefinedTerm | list[DefinedTerm] | None, RdfProperty(SCHEMA.category)]
- owner: Annotated[Organization | list[Organization] | None, RdfProperty(SCHEMA.owner)]
- contributor: Annotated[Contributor | list[Contributor] | None, RdfProperty(SCHEMA.contributor)]
- additional_property: Annotated[AdditionalProperty | AdditionalPropertySpecification | list[AdditionalProperty | AdditionalPropertySpecification] | None, RdfProperty(SCHEMA.additionalProperty)]
- valid_from: Annotated[str | list[str] | None, RdfProperty(SCHEMA.validFrom)]
- valid_through: Annotated[str | list[str] | None, RdfProperty(SCHEMA.validThrough)]
- has_part: Annotated[InstrumentComponent | ObjectReference | URIRef | str | list[InstrumentComponent | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.hasPart)]
- 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
- type dartfx.cdif.models.common.IsStructuredByProperty = DataStructure | DimensionalDataStructure | LongDataStructure | WideDataStructure | ObjectReference | str | URIRef
- class dartfx.cdif.models.common.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.common.LinkRole(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, link_relationship=None, target=None, **extra_data)[source]
Bases:
CdifBaseModelA typed link, implemented as a schema.org LinkRole: schema:linkRelationship names how the target relates to the subject, and schema:target carries the EntryPoint actually being linked to. This is the right shape when the relationship itself is the point – “this is the canonical version of”, “this is the download endpoint for”. Where the value is simply a work at a URL, such as a license or a terms-of-service document, use schemaorgProperties/labeledLink instead: a licence is a work, not a role, and wrapping it in a Role forces every consumer through an indirection to reach the thing itself. Defined here as a block rather than inline in a profile (where it lived until 2026-09-23) so that more than one consumer can reuse it. While it was inline in cdifCore, schemaorgProperties/instrument could not reach it and defined schema:relatedLink as a labeled link instead – the same property carrying two different shapes depending on which node held it.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
link_relationship (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=http://schema.org/linkRelationship, datatype=None, language=None, serializer=None, parser=None)])
target (Annotated[EntryPoint | list[EntryPoint] | None, RdfProperty(predicate=http://schema.org/target, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/LinkRole')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:linkRelationship')
- link_relationship: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.linkRelationship)]
- target: Annotated[EntryPoint | list[EntryPoint] | None, RdfProperty(SCHEMA.target)]
- 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.common.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.common.ManifestPart(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, description=None, encoding_format=None, url=None, about=None, **extra_data)[source]
Bases:
CdifBaseModelOne independently accessible member of a package. Type it for what it is: schema:Dataset for data, schema:CreativeWork for a codebook, methods document or quality report, schema:MediaObject for a browse image. Parts under separate stewardship should carry their own schema:provider, schema:conditionsOfAccess and schema:dateModified, since those are what differ.
- 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)])
encoding_format (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/encodingFormat, datatype=None, language=None, serializer=None, parser=None)])
url (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/url, 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)
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- encoding_format: Annotated[str | list[str] | None, RdfProperty(SCHEMA.encodingFormat)]
- url: Annotated[str | list[str] | None, RdfProperty(SCHEMA.url)]
- 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.common.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.common.MonetaryGrant(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, identifier=None, description=None, name=None, funder=None, **extra_data)[source]
Bases:
CdifBaseModelFunding acknowledgement properties, profile of schema.org/MonetaryGrant
- 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=http://schema.org/identifier, 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)])
name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/name, datatype=None, language=None, serializer=None, parser=None)])
funder (Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/funder, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/MonetaryGrant')]
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(SCHEMA.identifier)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- funder: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.funder)]
- 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.common.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.common.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.common.PartNode(*, 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_physical_mapping=None, array_base=None, comment_prefix=None, delimiter=None, header=None, header_row_count=None, is_delimited=None, is_fixed_width=None, line_terminators=None, quote_char=None, skip_blank_rows=None, skip_columns=None, skip_initial_space=None, skip_rows=None, escape_character=None, header_is_case_sensitive=None, treat_consecutive_delimiters_as_one=None, table_direction=None, text_direction=None, trim=None, countRows=None, countColumns=None, **extra_data)[source]
Bases:
CdifBaseModelA sub-component of an instrument system. Uses the same structure as the parent instrument but without nesting (single level of hasPart).
- 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_physical_mapping (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=https://w3id.org/cdif/hasPhysicalMapping, datatype=None, language=None, serializer=None, parser=None)])
array_base (Annotated[int | list[int] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/arrayBase, datatype=None, language=None, serializer=None, parser=None)])
comment_prefix (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#commentPrefix, datatype=None, language=None, serializer=None, parser=None)])
delimiter (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#delimiter, datatype=None, language=None, serializer=None, parser=None)])
header (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#header, datatype=None, language=None, serializer=None, parser=None)])
header_row_count (Annotated[int | list[int] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#headerRowCount, datatype=None, language=None, serializer=None, parser=None)])
is_delimited (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isDelimited, datatype=None, language=None, serializer=None, parser=None)])
is_fixed_width (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/isFixedWidth, datatype=None, language=None, serializer=None, parser=None)])
line_terminators (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#lineTerminators, datatype=None, language=None, serializer=None, parser=None)])
quote_char (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#quoteChar, datatype=None, language=None, serializer=None, parser=None)])
skip_blank_rows (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#skipBlankRows, datatype=None, language=None, serializer=None, parser=None)])
skip_columns (Annotated[int | list[int] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#skipColumns, datatype=None, language=None, serializer=None, parser=None)])
skip_initial_space (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#skipInitialSpace, datatype=None, language=None, serializer=None, parser=None)])
skip_rows (Annotated[int | list[int] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#skipRows, datatype=None, language=None, serializer=None, parser=None)])
escape_character (Annotated[str | list[str] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/escapeCharacter, datatype=None, language=None, serializer=None, parser=None)])
header_is_case_sensitive (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/headerIsCaseSensitive, datatype=None, language=None, serializer=None, parser=None)])
treat_consecutive_delimiters_as_one (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/treatConsecutiveDelimitersAsOne, datatype=None, language=None, serializer=None, parser=None)])
table_direction (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#tableDirection, datatype=None, language=None, serializer=None, parser=None)])
text_direction (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#textDirection, datatype=None, language=None, serializer=None, parser=None)])
trim (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/ns/csvw#trim, 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_physical_mapping: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(CDIF.hasPhysicalMapping)]
- comment_prefix: Annotated[str | list[str] | None, RdfProperty(CSVW.commentPrefix)]
- delimiter: Annotated[str | list[str] | None, RdfProperty(CSVW.delimiter)]
- header: Annotated[bool | list[bool] | None, RdfProperty(CSVW.header)]
- is_delimited: Annotated[bool | list[bool] | None, RdfProperty(CDI.isDelimited)]
- is_fixed_width: Annotated[bool | list[bool] | None, RdfProperty(CDI.isFixedWidth)]
- line_terminators: Annotated[str | list[str] | None, RdfProperty(CSVW.lineTerminators)]
- quote_char: Annotated[str | list[str] | None, RdfProperty(CSVW.quoteChar)]
- skip_blank_rows: Annotated[bool | list[bool] | None, RdfProperty(CSVW.skipBlankRows)]
- skip_initial_space: Annotated[bool | list[bool] | None, RdfProperty(CSVW.skipInitialSpace)]
- escape_character: Annotated[str | list[str] | None, RdfProperty(CDI.escapeCharacter)]
- header_is_case_sensitive: Annotated[bool | list[bool] | None, RdfProperty(CDI.headerIsCaseSensitive)]
- treat_consecutive_delimiters_as_one: Annotated[bool | list[bool] | None, RdfProperty(CDI.treatConsecutiveDelimitersAsOne)]
- table_direction: Annotated[str | list[str] | None, RdfProperty(CSVW.tableDirection)]
- text_direction: Annotated[str | list[str] | None, RdfProperty(CSVW.textDirection)]
- trim: Annotated[str | list[str] | None, RdfProperty(CSVW.trim)]
- 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.common.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.common.Place(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, additional_type=None, name=None, identifier=None, alternate_name=None, geo=None, has_geometry=None, **extra_data)[source]
Bases:
CdifBaseModelSpatial Extent description for CDIF discovery profile. Note required prefix declaration for geoSparql ( http://www.opengis.net/ont/geosparql#) and OGC simple features (sf: http://www.opengis.net/ont/sf#)
- 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[DefinedTerm | str | list[DefinedTerm | 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)])
alternate_name (Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(predicate=http://schema.org/alternateName, datatype=None, language=None, serializer=None, parser=None)])
geo (Annotated[GeoCoordinates | GeoShape | list[GeoCoordinates | GeoShape] | None, RdfProperty(predicate=http://schema.org/geo, datatype=None, language=None, serializer=None, parser=None)])
has_geometry (Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(predicate=http://www.opengis.net/ont/geosparql#hasGeometry, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/Place')]
- additional_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.additionalType)]
- name: Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- alternate_name: Annotated[DefinedTerm | str | list[DefinedTerm | str] | None, RdfProperty(SCHEMA.alternateName)]
- geo: Annotated[GeoCoordinates | GeoShape | list[GeoCoordinates | GeoShape] | None, RdfProperty(SCHEMA.geo)]
- has_geometry: Annotated[dict[str, Any] | list[dict[str, Any]] | None, RdfProperty(GEOSPARQL.hasGeometry)]
- 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.common.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.common.ProductModel(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, identifier=None, **extra_data)[source]
Bases:
CdifBaseModelProduct model information for this instrument.
- 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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/ProductModel')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- identifier: Annotated[Identifier | str | list[Identifier | str] | None, RdfProperty(SCHEMA.identifier)]
- 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.common.ProperInterval(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, description=None, interval_started_by=None, interval_finished_by=None, has_beginning=None, has_end=None, **extra_data)[source]
Bases:
CdifBaseModela w3c time proper interval with bounds that are named time ordinal eras with identifier, e.g. geologic age. This is a SOSO schema.org extension
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
description (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/description, datatype=None, language=None, serializer=None, parser=None)])
interval_started_by (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2006/time#intervalStartedBy, datatype=None, language=None, serializer=None, parser=None)])
interval_finished_by (Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/2006/time#intervalFinishedBy, datatype=None, language=None, serializer=None, parser=None)])
has_beginning (Annotated[Instant | list[Instant] | None, RdfProperty(predicate=http://www.w3.org/2006/time#hasBeginning, datatype=None, language=None, serializer=None, parser=None)])
has_end (Annotated[Instant | list[Instant] | None, RdfProperty(predicate=http://www.w3.org/2006/time#hasEnd, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2006/time#ProperInterval')]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- interval_started_by: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(TIME.intervalStartedBy)]
- interval_finished_by: Annotated[URIRef | str | list[URIRef | str] | None, RdfProperty(TIME.intervalFinishedBy)]
- 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.common.PropertyValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, property_id=None, value=None, url=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)
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[str | list[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')]
- 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[str | list[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.common.PropertyValueSpecification(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value_name=None, description=None, value_required=None, value_pattern=None, **extra_data)[source]
Bases:
CdifBaseModelQuery input parameter for a web API action, typed as schema:PropertyValueSpecification.
- 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_name (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/valueName, 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)])
value_required (Annotated[bool | list[bool] | None, RdfProperty(predicate=http://schema.org/valueRequired, datatype=None, language=None, serializer=None, parser=None)])
value_pattern (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/valuePattern, 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, ...]] = ('schema:valueName', 'schema:description')
- value_name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.valueName)]
- description: Annotated[str | list[str] | None, RdfProperty(SCHEMA.description)]
- value_required: Annotated[bool | list[bool] | None, RdfProperty(SCHEMA.valueRequired)]
- value_pattern: Annotated[str | list[str] | None, RdfProperty(SCHEMA.valuePattern)]
- 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.common.QualityMeasurement(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, is_measurement_of=None, value=None, **extra_data)[source]
Bases:
CdifBaseModeldefinitions for simple quality measure 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_measurement_of (Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#isMeasurementOf, datatype=None, language=None, serializer=None, parser=None)])
value (Annotated[DefinedTerm | str | int | float | list[DefinedTerm | str | int | float] | None, RdfProperty(predicate=http://www.w3.org/ns/dqv#value, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/ns/dqv#QualityMeasurement')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('dqv:isMeasurementOf', 'dqv:value')
- is_measurement_of: Annotated[DefinedTerm | ObjectReference | URIRef | str | list[DefinedTerm | ObjectReference | URIRef | str] | None, RdfProperty(DQV.isMeasurementOf)]
- value: Annotated[DefinedTerm | str | int | float | list[DefinedTerm | str | int | float] | None, RdfProperty(DQV.value)]
- 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.common.QuantitativeValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=None, unit_text=None, **extra_data)[source]
Bases:
CdifBaseModelFile size as a QuantitativeValue.
- 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 (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://schema.org/value, 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/QuantitativeValue')]
- 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.common.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.common.RepresentedVariable(*, 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, described_unit_of_measure_alt=None, has_intended_data_type_alt=None, unit_of_measure_kind_alt=None, external_definition_alt=None, identifier_alt=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=https://w3id.org/cdif/describedUnitOfMeasure, datatype=None, language=None, serializer=None, parser=None)])
has_intended_data_type (Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(predicate=https://w3id.org/cdif/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=https://w3id.org/cdif/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=https://w3id.org/cdif/externalDefinition, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/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)])
described_unit_of_measure_alt (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_alt (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)])
unit_of_measure_kind_alt (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)])
external_definition_alt (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_alt (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)])
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(CDIF.describedUnitOfMeasure)]
- has_intended_data_type: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDIF.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(CDIF.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(CDIF.externalDefinition)]
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.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)]
- described_unit_of_measure_alt: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.describedUnitOfMeasure)]
- has_intended_data_type_alt: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.hasIntendedDataType)]
- unit_of_measure_kind_alt: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(CDI.unitOfMeasureKind)]
- external_definition_alt: Annotated[Reference | list[Reference] | None, RdfProperty(CDI.externalDefinition)]
- identifier_alt: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDI.identifier)]
- 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.common.Role(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, role_name=None, contributor=None, **extra_data)[source]
Bases:
CdifBaseModelA dcat:Role – DCAT’s declared range for dcat:hadRole. Defined inline rather than as its own building block because nothing else in the register needs it yet; dcat:hadRole’s domain is owl:unionOf [prov:Attribution, dcat:Relationship], so promote it to a block if a qualified attribution ever needs the same shape. dcat:Role rdfs:subClassOf skos:Concept, so the skos:prefLabel / skos:inScheme furniture of a concept is permitted alongside; it is not required here because DCAT states no cardinality constraints on the class – dcat.ttl declares no rdfs:subClassOf and no owl:Restriction on dcat:Relationship, and the “mandatory” wording in the DCAT-3 document is prose in the spec tables rather than an axiom in the vocabulary.
- 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[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(predicate=http://schema.org/contributor, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/ns/dcat#Role'), rdflib.term.URIRef('http://schema.org/Role')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- role_name: Annotated[CdifConceptOrTermOrString | list[CdifConceptOrTermOrString] | None, RdfProperty(SCHEMA.roleName)]
- contributor: Annotated[Person | Organization | ObjectReference | URIRef | str | list[Person | Organization | ObjectReference | URIRef | str] | None, RdfProperty(SCHEMA.contributor)]
- 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.common.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.common.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.common.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.common.SoftwareApplication(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, name=None, software_version=None, url=None, **extra_data)[source]
Bases:
CdifBaseModelSoftware used by the activity (acquisition, reduction, processing).
- 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)])
software_version (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/softwareVersion, 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/SoftwareApplication')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'schema:name')
- name: Annotated[str | list[str] | None, RdfProperty(SCHEMA.name)]
- software_version: Annotated[str | list[str] | None, RdfProperty(SCHEMA.softwareVersion)]
- 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.common.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.common.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.common.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
- class dartfx.cdif.models.common.Thing(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, description=None, **extra_data)[source]
Bases:
CdifBaseModelThe entity upon which the action is carried out, whose state is kept intact or changed. This is an open ended class for general description of Actions. When schema:Action (or a subclass) is used to describe operations for a WebAPI distribution, the object is implicitly the resource that is the subject of the containing metadata record, so this property would be superfluous.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | 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/Thing')]
- 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
- type dartfx.cdif.models.common.ThingValue = ObjectReference | dict[str, Any] | str | URIRef
- class dartfx.cdif.models.common.TimePosition(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, has_trs=None, numeric_position=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)
has_trs (Annotated[str | list[str] | None, RdfProperty(predicate=http://www.w3.org/2006/time#hasTRS, datatype=None, language=None, serializer=None, parser=None)])
numeric_position (Annotated[int | float | list[int | float] | None, RdfProperty(predicate=http://www.w3.org/2006/time#numericPosition, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.w3.org/2006/time#TimePosition')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type', 'time:hasTRS', 'time:numericPosition')
- has_trs: Annotated[str | list[str] | None, RdfProperty(TIME.hasTRS)]
- numeric_position: Annotated[int | float | list[int | float] | None, RdfProperty(TIME.numericPosition)]
- 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.common.UnitType(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, descriptive_text=None, definition=None, display_label=None, external_definition=None, identifier=None, name=None, uses_concept=None, external_definition_alt=None, identifier_alt=None, **extra_data)[source]
Bases:
CdifBaseModelUnit type is a type or class of objects of interest (units).
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
descriptive_text (Annotated[str | list[str] | None, RdfProperty(predicate=https://w3id.org/cdif/descriptiveText, 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=https://w3id.org/cdif/externalDefinition, datatype=None, language=None, serializer=None, parser=None)])
identifier (Annotated[Identifier | list[Identifier] | None, RdfProperty(predicate=https://w3id.org/cdif/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)])
external_definition_alt (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_alt (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)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/UnitType')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('@type',)
- descriptive_text: Annotated[str | list[str] | None, RdfProperty(CDIF.descriptiveText)]
- 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(CDIF.externalDefinition)]
- identifier: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDIF.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)]
- external_definition_alt: Annotated[Reference | list[Reference] | None, RdfProperty(CDI.externalDefinition)]
- identifier_alt: Annotated[Identifier | list[Identifier] | None, RdfProperty(CDI.identifier)]
- 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.common.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
- class dartfx.cdif.models.common.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.common.VariableMeasured(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=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:
CdifBaseModelSchema.org PropertyValue-based variableMeasured. Defines properties for a measured variable in a dataset, typed as schema:PropertyValue.
- 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)])
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[CreativeWorkRef | URIRef | str | list[CreativeWorkRef | URIRef | str] | None, RdfProperty(predicate=http://schema.org/url, 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)]
- 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[CreativeWorkRef | URIRef | str | list[CreativeWorkRef | 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.common.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.common.WebAPI(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, service_type=None, terms_of_service=None, documentation=None, potential_action=None, **extra_data)[source]
Bases:
CdifBaseModeluse schema.org Action to document url or url template and parameters to request data through a web accessible location. At this point, schema is set up for one action– an HTTP Get that requests data. The url template parameters (in curly brackets ‘{}’) specify query paramters to filter the source data, request particular output formats or other aspects of data.
- Parameters:
rdf_uri_generator (RdfUriGenerator)
id (str | None)
rdf_types_jsonld (str | list[str] | None)
jsonld_context (dict[str, Any] | list[Any] | str | None)
service_type (Annotated[str | list[str] | None, RdfProperty(predicate=http://schema.org/serviceType, datatype=None, language=None, serializer=None, parser=None)])
terms_of_service (Annotated[Reference | str | list[Reference | str] | None, RdfProperty(predicate=http://schema.org/termsOfService, datatype=None, language=None, serializer=None, parser=None)])
documentation (Annotated[Reference | str | list[Reference | str] | None, RdfProperty(predicate=http://schema.org/documentation, datatype=None, language=None, serializer=None, parser=None)])
potential_action (Annotated[Action | list[Action] | None, RdfProperty(predicate=http://schema.org/potentialAction, datatype=None, language=None, serializer=None, parser=None)])
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://schema.org/WebAPI')]
- cdif_required_fields: ClassVar[tuple[str, ...]] = ('schema:serviceType', 'schema:potentialAction', 'schema:termsOfService')
- service_type: Annotated[str | list[str] | None, RdfProperty(SCHEMA.serviceType)]
- terms_of_service: Annotated[Reference | str | list[Reference | str] | None, RdfProperty(SCHEMA.termsOfService)]
- documentation: Annotated[Reference | str | list[Reference | str] | None, RdfProperty(SCHEMA.documentation)]
- 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.common.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
- class dartfx.cdif.models.common.WktLiteralValue(*, rdf_uri_generator=<factory>, id=None, rdf_types_jsonld=None, jsonld_context=None, value=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)
value (str | list[str] | None)
extra_data (Any)
- rdf_type: ClassVar[Any] = [rdflib.term.URIRef('http://www.opengis.net/ont/geosparql#wktLiteral')]
- value: str | list[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