related#
DatasetActor#
Bases: Actor
Actors associated with a Dataset.
Attributes:
Name | Type | Description |
---|---|---|
dataset |
Dataset
|
Dataset ForeignKey relation |
role |
CharField
|
Role of the actor |
Source code in src/apps/core/models/catalog_record/related.py
add_role(role)
#
Adds a roles to the actor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
role |
str
|
The roles to add to the actor. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
A boolean indicating whether the roles was added or not. |
Raises:
Type | Description |
---|---|
ValueError
|
If the roles is not valid. |
Source code in src/apps/core/models/catalog_record/related.py
get_email()
#
Return email of actor if any.
Source code in src/apps/core/models/catalog_record/related.py
Temporal#
Bases: AbstractBaseModel
Time period that is covered by the dataset, i.e. period of observations.
Attributes:
Name | Type | Description |
---|---|---|
dataset |
Dataset
|
Dataset ForeignKey relation |
end_date |
DateTimeField
|
End of the period |
provenance |
Provenance
|
Provenance ForeignKey relation, if part of Provenance |
start_date |
DateTimeField
|
Start of the period |
temporal_coverage |
TextField
|
Period expressed as a string |
Source code in src/apps/core/models/catalog_record/related.py
DatasetProject#
Bases: AbstractBaseModel
Funding project for the dataset
Attributes:
Name | Type | Description |
---|---|---|
dataset(models.ManyToManyField) |
ManyToMany relation to Dataset |
|
title(HStoreField) |
Name of the project |
|
project_identifier(models.CharField) |
Project's external identifier |
|
participating_organizations(models.ManyToManyField) |
Project's participating organizations |
|
funders(models.ManyToManyField) |
Funding agencies of the project |
Source code in src/apps/core/models/catalog_record/related.py
Funding#
Bases: AbstractBaseModel
Funding for the project and dataset
Attributes:
Name | Type | Description |
---|---|---|
agency(models.ForeignKey) |
Agency that Funds the project |
|
funding_identifier(models.CharField) |
Funding identifier that is given by the funder organization |
Source code in src/apps/core/models/catalog_record/related.py
Funder#
Bases: AbstractBaseModel
Project's Funder Agency
Attributes: organization(models.ForeignKey): Organization that granted the funds funder_type(models.ForeignKey): Funder type reference
Source code in src/apps/core/models/catalog_record/related.py
FileSet#
Bases: AbstractBaseModel
Collection of files associated with a Dataset
Attributes:
Name | Type | Description |
---|---|---|
dataset(models.OneToOneField) |
Dataset associated with the fileset |
|
files(models.ManyToManyField) |
Files associated with the fileset |
|
storage(models.ForeignKey) |
FileStorage of the fileset |
Source code in src/apps/core/models/catalog_record/related.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
|
clear_cached_file_properties()
#
Clear cached file properties after changes to FileSet files.
Source code in src/apps/core/models/catalog_record/related.py
remove_unused_file_metadata()
#
Remove file and directory metadata for files and directories not in FileSet.
Source code in src/apps/core/models/catalog_record/related.py
RemoteResource#
Bases: AbstractBaseModel
Attributes:
Name | Type | Description |
---|---|---|
access_url(models.URLField) |
The URL where the resource can be accessed. |
|
checksum(models.TextField) |
The checksum of the resource |
|
dataset(Dataset) |
Dataset associated with remote resource |
|
description(HStoreField) |
Resource description |
|
download_url(models.URLField) |
The URL where the resource can be downloaded |
|
file_type(FileType) |
The file type of the resource |
|
mediatype(models.TextField) |
The mediatype of the resource |
|
title(HStoreField) |
Resource title |
|
use_category(models.ForeignKey) |
Category of the resource |
Source code in src/apps/core/models/catalog_record/related.py
EntityRelation#
Bases: AbstractBaseModel
An entity related to the dataset.
RDF Class: dcterms:relation
Source: DCAT Version 3