gws.base.metadata
¶
OWS and ISO-19115 metadata.
The metadata structure as defined here is based on:
ISO 19115:2003 Geographic information – Metadata
ISO 19139 - Geographic Information - Metadata - XML Schema Implementation
OGC Web Services Common Standard OGC 06-121r9
Web Map Server Implementation Specification OGC 06-042
Web Feature Service 2.0 Interface Standard OGC 09-025r1
Source code: gws.base.metadata
Submodules¶
Package Contents¶
- class gws.base.metadata.Config(*args, **kwargs)¶
Bases:
gws.Config
Metadata configuration. (added in 8.2)
- abstract: str | None¶
Object abstract, a brief description of the object.
- accessConstraints: str | None¶
Access constraint for the object.
- accessConstraintsType: str | None¶
Access constraint type for the object.
- attribution: str | None¶
Attribution information for the object.
- attributionUrl: str | None¶
Attribution URL for the object.
- authorityIdentifier: str | None¶
Identifier (WMS)
- authorityName: str | None¶
AuthorityURL name (WMS)
- authorityUrl: str | None¶
AuthorityURL (WMS)
- catalogCitationUid: str | None¶
CI_Citation.Identifier (CSW).
- catalogUid: str | None¶
MD_Metadata.Identifier (CSW).
- contactAddress: str | None¶
Contact address for the object.
- contactAddressType: str | None¶
Type of contact address, such as ‘postal’ or ‘email’.
- contactArea: str | None¶
Contact area or state.
- contactCity: str | None¶
Contact city.
- contactCountry: str | None¶
Contact country.
- contactEmail: str | None¶
Contact email address.
- contactFax: str | None¶
Contact fax number.
- contactOrganization: str | None¶
Contact organization or institution.
- contactPerson: str | None¶
Contact person name.
- contactPhone: str | None¶
Contact phone number.
- contactPosition: str | None¶
Contact position or job title.
- contactProviderName: str | None¶
Name of the provider of the contact information.
- contactProviderSite: str | None¶
Website of the provider of the contact information.
- contactRole: gws.base.metadata.iso.CI_RoleCode | None¶
Role of the contact person, such as ‘pointOfContact’ or ‘author’.
- contactUrl: str | None¶
URL for additional contact information.
- contactZip: str | None¶
Contact postal code.
- crs: gws.CrsName | None¶
MD_ReferenceSystem (ISO).
- dateCreated: gws.DateStr | None¶
Object creation date.
- dateUpdated: gws.DateStr | None¶
Object last update date.
- fees: str | None¶
Fees associated with accessing or using the object.
- image: str | None¶
Image URL or path associated with the object.
- inspireDegreeOfConformity: gws.base.metadata.inspire.IM_DegreeOfConformity | None¶
- inspireMandatoryKeyword: gws.base.metadata.inspire.IM_MandatoryKeyword | None¶
- inspireResourceType: gws.base.metadata.inspire.IM_ResourceType | None¶
- inspireSpatialDataServiceType: gws.base.metadata.inspire.IM_SpatialDataServiceType | None¶
- inspireSpatialScope: gws.base.metadata.inspire.IM_SpatialScope | None¶
- inspireSpatialScopeName: str | None¶
- inspireTheme: gws.base.metadata.inspire.IM_Theme | None¶
- isoMaintenanceFrequencyCode: gws.base.metadata.iso.MD_MaintenanceFrequencyCode | None¶
- isoQualityConformanceExplanation: str | None¶
- isoQualityConformanceQualityPass: bool | None¶
- isoQualityConformanceSpecificationDate: str | None¶
- isoQualityConformanceSpecificationTitle: str | None¶
- isoQualityLineageSource: str | None¶
- isoQualityLineageSourceScale: int | None¶
- isoQualityLineageStatement: str | None¶
- isoRestrictionCode: gws.base.metadata.iso.MD_RestrictionCode | None¶
- isoScope: gws.base.metadata.iso.MD_ScopeCode | None¶
- isoScopeName: str | None¶
- isoServiceFunction: gws.base.metadata.iso.SV_ServiceFunction | None¶
- isoSpatialRepresentationType: gws.base.metadata.iso.MD_SpatialRepresentationTypeCode | None¶
- isoSpatialResolution: str | None¶
- isoTopicCategories: list[gws.base.metadata.iso.MD_TopicCategoryCode] | None¶
- keywords: list[str] | None¶
river’.
- Type:
Keywords, optionally prefixed with a vocabulary, e.g. ‘gemet
- language: str | None¶
Language code (ISO 639-1).
- license: str | None¶
License information for the object.
- licenseUrl: gws.Url | None¶
License URL.
- metaLinks: list[LinkConfig] | None¶
MetadataURL (WMS, WFS) or metadata links (CSW).
- name: str | None¶
Object name.
- parentIdentifier: str | None¶
MD_Metadata.parentIdentifier (ISO).
- serviceMetadataURL: str | None¶
Service metadata URL (WMTS).
- temporalBegin: gws.DateStr | None¶
EX_TemporalExtent (ISO).
- temporalEnd: gws.DateStr | None¶
EX_TemporalExtent (ISO).
- title: str | None¶
Object title.
- wgsExtent: gws.Extent | None¶
EX_Extent (ISO).
- gws.base.metadata.from_args(*args, **kwargs) gws.Metadata ¶
Create a Metadata object from arguments (dicts or other Metadata objects).
- gws.base.metadata.from_config(c: gws.Config) gws.Metadata ¶
Create a Metadata object from a configuration.
- Parameters:
c – Configuration object.
- gws.base.metadata.from_dict(d: dict) gws.Metadata ¶
Create a Metadata object from a dictionary.
- Parameters:
d – Dictionary containing metadata information.
- gws.base.metadata.from_props(p: gws.Props) gws.Metadata ¶
Create a Metadata object from properties.
- Parameters:
p – Properties object.
- gws.base.metadata.keyword_groups(md: gws.Metadata) list[KeywordGroup] ¶
- class gws.base.metadata.KeywordGroup(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- codeSpace: str¶
Code space for the keyword group, e.g. ‘iso’, ‘gemet’, ‘inspire’, ‘gcmd’.
- keywords: list[str]¶
List of keywords in the group.
- typeName: str¶
Type name for the keyword group, e.g. ‘isoTopicCategories’, ‘keywords’.
- gws.base.metadata.new() gws.Metadata ¶
Create a new Metadata object with default values.
- class gws.base.metadata.Props(*args, **kwargs)¶
Bases:
gws.Props
Represents metadata properties.
- abstract: str¶
- attribution: str¶
- dateCreated: str¶
- dateUpdated: str¶
- keywords: list[str]¶
- language: str¶
- title: str¶
- gws.base.metadata.props(md: gws.Metadata) gws.Props ¶
Properties of a Metadata object.
- gws.base.metadata.update(md: gws.Metadata, *args, **kwargs) gws.Metadata ¶
Update a Metadata object from arguments (dicts or other Metadata objects).