How are relationships used to associate information?

The GJXDM provides three basic ways of associating two pieces of information: inclusion, referencing, and relationships.  The association method is accomplished by using a separate structure, called a relationship that links two pieces of information. This facility is also provided by GJXDM’s “RelationshipType” structure, which contains attributes for a “subject” (one side of the association), an “object” (the other side of the association), and a name for the association or relationship. Using a relationship, an example that represents a person’s birth location would look like this:

 

 

 <j:Location j:id=”location1”>

            <j:LocationAddress>

                        <j:LocationCityName>Boston</j:LocationCityName>

                        <j:LocationStateCode.USPostalService>MA

 </j:LocationStateCode.USPostalService>

 </j:LocationAddress>

 </j:Location>

 

 <j:Person j:id=”person1”>

 </j:Person>

 <j:Relationship j:subject=”person1” j:object=”location1” name=”j:PersonBirthLocation”/>