Core Models

They are the models that are needed to make sense of the application

../_images/core.svg
class inspire_eu.models.core.Namespace(*args, **kwargs)[source]
Definition

Namespace uniquely identifying the data source of the spatial object.

Description

NOTE The namespace value will be owned by the data provider of the spatial object and will be registered in the INSPIRE External Object Identifier Namespaces Register.

Parameters:

Reverse relationships:

Parameters:
  • inspire_eu_cadastralzoning_namespaces (Reverse ForeignKey from CadastralZoning) – All inspire eu cadastralzoning namespace of this Namespace (related name of namespace)

  • inspire_eu_cadastralparcel_namespaces (Reverse ForeignKey from CadastralParcel) – All inspire eu cadastralparcel namespace of this Namespace (related name of namespace)

  • inspire_eu_building_namespaces (Reverse ForeignKey from Building) – All inspire eu building namespace of this Namespace (related name of namespace)

  • inspire_eu_otherconstruction_namespaces (Reverse ForeignKey from OtherConstruction) – All inspire eu otherconstruction namespace of this Namespace (related name of namespace)

__init__(*args, **kwargs)
class inspire_eu.models.core.Status(*args, **kwargs)[source]
Description

Possible values: Valid, Invalid

References
Parameters:

Reverse relationships:

Parameters:
  • theme (Reverse ForeignKey from Theme) – All Themes of this Status (related name of status)

  • applicationschema (Reverse ForeignKey from ApplicationSchema) – All Application Schemes of this Status (related name of status)

  • codelist (Reverse ForeignKey from CodeList) – All Code lists of this Status (related name of status)

  • codelistvalue (Reverse ForeignKey from CodeListValue) – All Code list values of this Status (related name of status)

__init__(*args, **kwargs)
class inspire_eu.models.core.Theme(*args, **kwargs)[source]

INSPIRE theme register

Definition

The INSPIRE theme register contains all spatial data themes, as defined in the Annexes of the INSPIRE Directive (Directive 2007/2/EC of the European Parliament and of the Council of 14 March 2007 establishing an Infrastructure for Spatial Information in the European Community (INSPIRE)). The descriptions of the themes are based on version 3.0 of the Definition of Annex Themes and Scope (D 2.3) by the data specifications drafting team and subsequent updates by the INSPIRE Thematic Working Groups (TWGs).

Owner

European Union

Register manager

European Commission, Joint Research Centre

Control body

Control body for the central INSPIRE registers and INSPIRE register federation

Submitter

Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation

Contact point

JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>

Licence

Europa Legal Notice

References

https://inspire.ec.europa.eu/theme

Parameters:

Relationship fields:

Parameters:

status (ForeignKey to Status) – Status (related name: theme)

Reverse relationships:

Parameters:
  • applicationschema (Reverse ManyToManyField from ApplicationSchema) – All Application Schemes of this Theme (related name of themes)

  • codelist (Reverse ManyToManyField from CodeList) – All Code lists of this Theme (related name of themes)

__init__(*args, **kwargs)
class inspire_eu.models.core.ApplicationSchema(*args, **kwargs)[source]

INSPIRE Application schema register

Definition

The INSPIRE application schema register contains all application schemas of the consolidated INSPIRE UML data model.

Owner

European Union

Register manager

European Commission, Joint Research Centre

Control body

Control body for the central INSPIRE registers and INSPIRE register federation

Submitter

Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation

Contact point

JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>

Licence

Europa Legal Notice

References

https://inspire.ec.europa.eu/applicationschema

Parameters:

Relationship fields:

Parameters:
  • status (ForeignKey to Status) – Status (related name: applicationschema)

  • themes (ManyToManyField to Theme) – Themes (related name: applicationschema)

Reverse relationships:

Parameters:

codelist (Reverse ForeignKey from CodeList) – All Code lists of this Application Schema (related name of application_schema)

__init__(*args, **kwargs)
class inspire_eu.models.core.CodeList(*args, **kwargs)[source]

INSPIRE Code List Register

Definition

The INSPIRE code list register contains the code lists and their values, as defined in the INSPIRE implementing rules on interoperability of spatial data sets and services (Commission Regulation (EU) No 1089/2010).

NOTE: It does not yet include references to external code lists and the additional code lists and extended values proposed in the Data Specification Technical Guidelines.

Owner

European Union

Register manager

European Commission, Joint Research Centre

Control body

Control body for the central INSPIRE registers and INSPIRE register federation

Submitter

Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation

Contact point

JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>

Licence

Europa Legal Notice https://ec.europa.eu/info/legal-notice_en

References

https://inspire.ec.europa.eu/codelist

Parameters:

Relationship fields:

Parameters:
  • application_schema (ForeignKey to ApplicationSchema) – Application schema (related name: codelist)

  • status (ForeignKey to Status) – Status (related name: codelist)

  • parent (ForeignKey to CodeList) – Parent (related name: codelist)

  • themes (ManyToManyField to Theme) – Themes (related name: codelist)

Reverse relationships:

Parameters:
  • codelist (Reverse ForeignKey from CodeList) – All Code lists of this Code list (related name of parent)

  • codelistvalue (Reverse ForeignKey from CodeListValue) – All Code list values of this Code list (related name of code_list)

__init__(*args, **kwargs)
class inspire_eu.models.core.CodeListValue(id, code_list, code, slug, link, status, label, definition, description)[source]
Parameters:

Relationship fields:

Parameters:
  • code_list (ForeignKey to CodeList) – Code list (related name: codelistvalue)

  • status (ForeignKey to Status) – Status (related name: codelistvalue)

Reverse relationships:

Parameters:
  • inspire_eu_cadastralzoning_levels (Reverse ForeignKey from CadastralZoning) – All inspire eu cadastralzoning level of this Code list value (related name of level)

  • inspire_eu_building_condition_of_constructions (Reverse ForeignKey from Building) – All inspire eu building condition of construction of this Code list value (related name of condition_of_construction)

  • inspire_eu_building_horizontal_geometry_references (Reverse ForeignKey from Building) – All inspire eu building horizontal geometry reference of this Code list value (related name of horizontal_geometry_reference)

  • inspire_eu_building_vertical_geometry_references (Reverse ForeignKey from Building) – All inspire eu building vertical geometry reference of this Code list value (related name of vertical_geometry_reference)

  • inspire_eu_buildingdocument_source_statuss (Reverse ForeignKey from BuildingDocument) – All inspire eu buildingdocument source status of this Code list value (related name of source_status)

  • inspire_eu_buildingelevation_elevation_references (Reverse ForeignKey from BuildingElevation) – All inspire eu buildingelevation elevation reference of this Code list value (related name of reference)

  • inspire_eu_buildingheightaboveground_height_references (Reverse ForeignKey from BuildingHeightAboveGround) – All inspire eu buildingheightaboveground height reference of this Code list value (related name of height_reference)

  • inspire_eu_buildingheightaboveground_low_references (Reverse ForeignKey from BuildingHeightAboveGround) – All inspire eu buildingheightaboveground low reference of this Code list value (related name of low_reference)

  • inspire_eu_buildingheightaboveground_s_height_statuss (Reverse ForeignKey from BuildingHeightAboveGround) – All inspire eu buildingheightaboveground height status of this Code list value (related name of status)

  • inspire_eu_buildingnature_natures (Reverse ForeignKey from BuildingNature) – All inspire eu buildingnature nature of this Code list value (related name of nature)

  • inspire_eu_buildingcurrentuse_current_uses (Reverse ForeignKey from BuildingCurrentUse) – All inspire eu buildingcurrentuse current use of this Code list value (related name of current_use)

  • inspire_eu_buildinggeographicalname_nativenesss (Reverse ForeignKey from BuildingGeographicalName) – All inspire eu buildinggeographicalname nativeness of this Code list value (related name of nativeness)

  • inspire_eu_buildinggeographicalname_name_statuss (Reverse ForeignKey from BuildingGeographicalName) – All inspire eu buildinggeographicalname name status of this Code list value (related name of name_status)

  • inspire_eu_buildinggeographicalname_grammatical_genders (Reverse ForeignKey from BuildingGeographicalName) – All inspire eu buildinggeographicalname grammatical gender of this Code list value (related name of grammatical_gender)

  • inspire_eu_buildinggeographicalname_grammatical_numbers (Reverse ForeignKey from BuildingGeographicalName) – All inspire eu buildinggeographicalname grammatical number of this Code list value (related name of grammatical_number)

  • inspire_eu_otherconstruction_condition_of_constructions (Reverse ForeignKey from OtherConstruction) – All inspire eu otherconstruction condition of construction of this Code list value (related name of condition_of_construction)

  • inspire_eu_otherconstruction_other_construction_natures (Reverse ForeignKey from OtherConstruction) – All inspire eu otherconstruction other construction nature of this Code list value (related name of other_construction_nature)

classmethod search(slug, code_list_slug=None, create=True)[source]

Search CodeListValue

Parameters:
  • slug (str) – Slug of CodeList

  • code_list_slug (str, optional) – Slug of CodeList foreign key. Defaults to None.

  • create (bool, optional) – If it does not exist, create a new one. Defaults to True.

Raises:
  • CodeList.DoesNotExist – When his foreign key does not exist

  • CodeListValue.DoesNotExist – Only when create param is false

Returns:

Row founded, or created

Return type:

CodeListValue

__init__(*args, **kwargs)
class inspire_eu.models.core.UnitOfMeasure(*args, **kwargs)[source]

Unit Of Measure

Definition

Any of the systems devised to measure some physical quantity such distance or area or a system devised to measure such things as the passage of time.

The classes of UnitOfMeasure are determined by the member “measureType.” Subclasses are not needed for implementation, but their use makes type constraints on measure valued attributes easier to specify. – conversionToISOstandardUnit is not null only if the conversion is a simple scale

References
Parameters:
  • id (BigAutoField) – Primary key: ID

  • name (CharField) – Name. The name(s) of a particular unit of measure. Examples would include the following: 1) for uomArea - square feet <br />2) for uomTime - seconds <br />3) for uomArea - miles<br />4) uomAngle - degrees.

  • slug (CharField) – Slug

  • symbol (CharField) – Symbol. The symbol used for this unit of measure, such at “ft” for feet, or “m” for meter.

  • measure_type (CharField) – Measure type. Measure Type

  • name_standard_unit (CharField) – Name standard unit. Name of the standard units to which this unit of measure can be directly converted. If this variable is NULL, then the standard unit for this measure type given by the local copy of the StandardsUnits code list.

  • scale_to_standard_unit (FloatField) – Scale to standard unit. If the implementation system used for this object does not support NULL, the scale set to 0 is equivalent to NULL for both scale and offset.<br />If X is the current unit, and S is the standard one the of two variables scale(ToStandardUnit) and offset(ToStandardUnit) can be used to make the conversion from X to S by:<br />S = offset + scale*X <br />and, conversely, <br />X = (S-offset)/scale

  • offset_to_standard_unit (FloatField) – Offset to standard unit. See scaleToStandardUnit for a description. Again, this variable is NULL is no linear conversion is possible. If the two units are only a scale in difference, then this number is zero (0). If the implementation system used for this object does not support NULL, the then scale set to 0 is equivalent to NULL for both scale and offset.

  • formula (CharField) – Formula. An algebraic formula (probably in some programming language) converting this unit of measure (represented in the formula by its uomSymbol) to the ISO standard (represented by its symbol. This member attribute is not required, but it is a valuable piece of documentation.

Reverse relationships:

Parameters:
  • inspire_eu_cadastralzoning_estimated_accuracy_uoms (Reverse ForeignKey from CadastralZoning) – All inspire eu cadastralzoning estimated accuracy uom of this Unit Of Measure (related name of estimated_accuracy_uom)

  • inspire_eu_cadastralzoning_area_value_uoms (Reverse ForeignKey from CadastralZoning) – All inspire eu cadastralzoning area value uom of this Unit Of Measure (related name of area_value_uom)

  • inspire_eu_cadastralparcel_area_value_uoms (Reverse ForeignKey from CadastralParcel) – All inspire eu cadastralparcel area value uom of this Unit Of Measure (related name of area_value_uom)

  • inspire_eu_building_horizontal_geometry_estimated_accuracy_uoms (Reverse ForeignKey from Building) – All inspire eu building horizontal geometry estimated accuracy uom of this Unit Of Measure (related name of horizontal_geometry_estimated_accuracy_uom)

  • inspire_eu_building_vertical_geometry_estimated_accuracy_uoms (Reverse ForeignKey from Building) – All inspire eu building vertical geometry estimated accuracy uom of this Unit Of Measure (related name of vertical_geometry_estimated_accuracy_uom)

  • inspire_eu_building_height_below_ground_uoms (Reverse ForeignKey from Building) – All inspire eu building height below ground uom of this Unit Of Measure (related name of height_below_ground_uom)

  • inspire_eu_buildingelevation_value_uoms (Reverse ForeignKey from BuildingElevation) – All inspire eu buildingelevation value uom of this Unit Of Measure (related name of value_uom)

__init__(*args, **kwargs)