data_catalog#
PIDType#
GeneratedPIDType#
default_allowed_pid_types#
default_publishing_channels#
DataCatalog#
Bases: AbstractBaseModel
A curated collection of metadata about resources.
RDF Class: dcat:Catalog
Source: DCAT Version 3, Draft 11, https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog
Attributes:
Name | Type | Description |
---|---|---|
title |
HStoreField
|
catalog title |
dataset_versioning_enabled |
BooleanField
|
does the catalog have versioning enabled |
harvested |
BooleanField
|
are the catalog resources harvested from some other sources |
language |
ManyToManyField
|
default language of the catalog |
publisher |
ForeignKey
|
publisher of the cataloged resources |
access_rights |
ForeignKey
|
default access rights for the cataloged resources |
Source code in src/apps/core/models/data_catalog.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
|
managed_pid_types: list
property
#
PID types that are allowed to be generated and managed by Metax.
can_admin_datasets(user)
#
Determine if user has permission to update all datasets in catalog.
This is potentially called for every dataset in a list, so we memoize the value for the lifetime of the instance.
Source code in src/apps/core/models/data_catalog.py
can_create_datasets(user)
#
Determine if user has permission to create datasets in catalog.
Source code in src/apps/core/models/data_catalog.py
CatalogHomePage#
Bases: AbstractDatasetProperty
A homepage of the catalog (a public Web document usually available in HTML).
RDF Property: foaf:homepage
Source: DCAT Version 3, Draft 11, https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_homepage
Note
foaf:homepage is an inverse functional property (IFP) which means that it MUST be unique and precisely identify the Web-page for the resource. This property indicates the canonical Web-page, which might be helpful in cases where there is more than one Web-page about the resource.
Source code in src/apps/core/models/data_catalog.py
DatasetPublisher#
Bases: AbstractBaseModel
The entity responsible for making the item available.
Note
Resources of type foaf:Agent are recommended as values for this property.
RDF Property: dcterms:publisher
Source: DCAT Version 3, Draft 11, https://www.w3.org/TR/vocab-dcat-3/#Property:resource_publisher
Attributes:
Name | Type | Description |
---|---|---|
name |
HStoreField
|
the name of the publisher organization |
homepage |
ManyToManyField
|
webpage of the publisher |