INSPIRE Thematic Clusters

GML attributes "owns"

1102 Views

It seems that in GML files, when an attribute is voidable in the conceptual UML schema, it creates in the physical GML schema, in addition to the nilReason, an element called "owns" that is a boolean. We don't understand what is the interest of this element and how it should be filled (we just try to fill it in order to make it accepted by the validator) but without understanding anything!

Can anyone help and provide us some explanations?

 

 

Replies

    • Public

    By Pawel SOCZEWSKI

    According to ISO 19136 ( 7.2.3.5 Ownership of property values) "owns" attribute is used only with referenced GML object (gml:OwnershipAttributeGroup). It means then the referenced object is “owned” by the parent feature, i.e.

    <Car gml:id=”c123”>

    <hasParts owns=”true” xlink:href=”urn:x-abc:id:x123”/>

    <!-- … -->

    </Car>

    the part will be deleted, if the car is deleted. 

    The default values of "owns" is "false". According Annex E "true" should be used in association role if type of association is "composition".

    I don't understand why "owns" is added at nilReason. I'm used Geoserver to generate GML and it doesn't do it :)

    • Public

    By Stefania MORRONE

    Hi all,

    the "owns" attribute is not 'added' at nilReason, though it might seem so. When dealing with references, in fact,  "nilReason" comes from gml:AssociationAttributeGroup which is an attribute group e.g.for 'gml:ReferenceType', together with the gml:OwnershipAttributeGroup. Therefore, when there is a schema element  (e.g. an association or a code list) whose data type is gml:ReferenceType or another data type for which those attributeGroups are specified, both "owns" and "nilReason" attributes appear.

    That said, the "owns" attribute is optional so there is no obligation to fill.

    On a side note: this "nilReason" attribute (coming together with the "owns" attribute) does not mean that the schema element itself is voidable!

    Hope this helps,

    Stefania

    • Public

    By Heidi VANPARYS

    I think that the ownership concept comes from the UML specification. It does not seem to be defined very clear there either, see a discussion of the topic at https://www.uml-diagrams.org/uml-core.html#ownership

    As Stefania already mentioned, the owns and nilReason attributes are not related. 

    At my agency, we do not fill this attribute.

    • Public

    By Peter PARSLOW

    The GML "OwnershipAttributeGroup" is defined in the GML spec (OGC document 07-036, currently at v3.2.1, equivalent to ISO 19136; clause 7.2.3.5). The text of the documentation is copied in the relevant schema file (http://schemas.opengis.net/gml/3.2.1/gmlBase.xsd)

Topographic and Cadastral Reference Data

Topographic and Cadastral Reference Data

Topographic and Cadastral Reference Data: If themes like Hydrography, Geographical Names, Administrative Units, Cadastral Parcels, Addresses, Buildings, Transport Networks matters to you, join this group!

Featured groups

Elevation, Orthoimagery, Reference Systems and Geographical Grids Cluster

Elevation, Orthoimagery, Reference Systems and Geographical Grids Cluster

INSPIRE Thematic Cluster Elevation, Orthoimagery, Reference systems, Geographical grids - Join this group to share your knowkledge, learn and collaborate in solving issues related to the Elevation, Orthoimagery, Reference systems and Geographical grids themes