Abstract Models
They are data types or common definitions of fields that will be used in several django models when inherit them.
BaseInspireEUModel: Default is an empty class
DataLifeCycleInfo
Identifier
AbstractGeographicalName
- class inspire_eu.models.core.BaseInspireEUModel(*args, **kwargs)[source]
Base Model
- Definition
Abstract class that appends common fields
- __init__(*args, **kwargs)
- class inspire_eu.models.abstract.Identifier(*args, **kwargs)[source]
- Definition
External unique object identifier published by the responsible body, which may be used by external applications to reference the spatial object.
Description
NOTE 1 External object identifiers are distinct from thematic object identifiers.
NOTE 2 The voidable version identifier attribute is not part of the unique identifier of a spatial object and may be used to distinguish two versions of the same spatial object.
- Parameters:
local_id (CharField) – Local id. A local identifier, assigned by the data provider. The local identifier is unique within the namespace, that is no other spatial object carries the same unique identifier.<br />NOTE It is the responsibility of the data provider to guarantee uniqueness of the local identifier within the namespace.
version_id (CharField) – Version id. The identifier of the particular version of the spatial object, with a maximum length of 25 characters. If the specification of a spatial object type with an external object identifier includes life-cycle information, the version identifier is used to distinguish between the different versions of a spatial object. Within the set of all versions of a spatial object, the version identifier is unique.<br />NOTE The maximum length has been selected to allow for time stamps based on ISO 8601, for example, “2007-02-12T12:12:12+05:30” as the version identifier.<br />NOTE 2 The property is void, if the spatial data set does not distinguish between different versions of the spatial object. It is missing, if the spatial object type does not support any life-cycle information.
Relationship fields:
- Parameters:
namespace (
ForeignKeytoNamespace) – Namespace
- __init__(*args, **kwargs)
- class inspire_eu.models.abstract.DataLifeCycleInfo(*args, **kwargs)[source]
- Definition
Begin and End datetime fields
- Parameters:
begin_lifespan_version (DateTimeField) – Begin lifespan version. Registered area value giving quantification of the area projected on the horizontal plane of the cadastral parcel.
end_lifespan_version (DateTimeField) – End lifespan version. Date and time at which this version of the spatial object was superseded or retired in the spatial data set.
- __init__(*args, **kwargs)
- class inspire_eu.models.abstract.AbstractGeographicalName(*args, **kwargs)[source]
Geographical Name
- Definition
Proper noun applied to a real world entity.
- References
- Parameters:
language (CharField) – Language. Language of the name, given as a three letters code, in accordance with either ISO 639-3 or ISO 639-5.
source_of_name (CharField) – Source of name. Original data source from which the geographical name is taken from and integrated in the data set providing/publishing it. For some named spatial objects it might refer again to the publishing data set if no other information is available.
pronunciation (CharField) – Pronunciation. Proper, correct or standard (standard within the linguistic community concerned) pronunciation of the geographical name.
spelling (CharField) – Spelling. A proper way of writing the geographical name.
Relationship fields:
- Parameters:
nativeness (
ForeignKeytoCodeListValue) – Nativeness. Information enabling to acknowledge if the name is the one that is/was used in the area where the spatial object is situated at the instant when the name is/was in use.name_status (
ForeignKeytoCodeListValue) – Name status. Qualitative information enabling to discern which credit should be given to the name with respect to its standardization and/or its topicality.grammatical_gender (
ForeignKeytoCodeListValue) – Grammatical gender. Class of nouns reflected in the behavior of associated words.grammatical_number (
ForeignKeytoCodeListValue) – Grammatical number. Grammatical category of nouns that expresses count distinctions.
- __init__(*args, **kwargs)