Question: Aggregation / complex valued property / fk / duplicate tags

2 messages Options
Embed this post
Permalink
Chandler, Peter - 0443 - MITLL

Question: Aggregation / complex valued property / fk / duplicate tags

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

In the Philosopher example (see below) the XML syntax requires:

 

<app:country>

   <app:Country>

 

This syntax (having the same XML element tag in sequence (repeated) “duplicate tags”) seems unusual/different/confusing/non-standard.  

Is there away to aggregate/nest elements without duplicating/repeating  the element tags in the xml?

 

 Preferred XML syntax:

            <app:Place gml:id="PLACE_2">

               <!-- other elements -->

                <app:country gml:id="COUNTRY_2">

                    <!-- other elements -->

                </app:country>

            </app:Place gml:id="PLACE_2">

 

Peter.

 

Peter Chandler

MIT Lincoln Laboratory

244 Wood Street

Lexington, MA  02420

Email:  [hidden email]

781-981-3938

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users
Judit Mays

Re: Question: Aggregation / complex valued property / fk / duplicate tags

Reply Threaded More More options
Print post
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Peter,

even though it seems as if there are two elements of the same name, this
is not really the case. The first is spelled with lower case "c", the
second is spelled with upper case "C".

The reason for the this is:
A feature (here: <app:Place>) contains a property (here: <app:country>),
which in itself is a feature (here: <app:Country>).

Writing lower case for properties and upper case for features is not a
must, but it is a convention which makes life easier.

You are right that the property name appears to be redundant, as it
gives no further information on the role of the association to the
containing feature. A better property name would be "app:liesIn" instead
of "app:country".

As to whether it is possible to nest elements by giving the id only
(instead of the whole feature): yes and no.
It is possible if this would be a standrad xml document.
But as it is a GML feature/schema, this is not an option.

For further details please have a look at chapter 9 of this book:
http://books.google.com/books?id=D_CP7kOyqRYC

Kind regards,
Judit Mays


Chandler, Peter - 0443 - MITLL schrieb:

> In the Philosopher example (see below) the XML syntax requires:
>
>  
>
> <app:country>
>
>    <app:Country>
>
>  
>
> This syntax (having the same XML element tag in sequence (repeated)
> “duplicate tags”) seems unusual/different/confusing/non-standard.  
>
> Is there away to aggregate/nest elements without duplicating/repeating
>  the element tags in the xml?
>
>  
>
>  Preferred XML syntax:
>
>             <app:Place gml:id="PLACE_2">
>
>                <!-- other elements -->
>
>                 <app:country gml:id="COUNTRY_2">
>
>                     <!-- other elements -->
>
>                 </app:country>
>
>             </app:Place gml:id="PLACE_2">
>
>  
>
> Peter.
>
>  
>
> /Peter Chandler/
>
> /MIT Lincoln Laboratory/
>
> /244 Wood Street/
>
> /Lexington, MA  02420/
>
> /Email:  [hidden email]/
>
> /781-981-3938/
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrz5/MACgkQ00HMccodrqXjQQCdGU00g1csHDy7XOLb8wm+8mFm
jaQAni0V2rFk9L94UIjJlCYpN5LaDFMc
=52YV
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users