MRCGS API

Data: data

  • Namespace: http://enunciate.codehaus.org/samples/genealogy/data
  • XML Schema File: data.xsd

The data in this namespace is divided into elements and types. Types define the structure of the data. Elements define specific instances of the types, and are therefore more relevant to REST endpoints, which generally consume and/or produce elements.

The following elements are members of this namespace:

The following types are members of this namespace:

Element event

An event assertion.

Example XML

<?xml version="1.0" encoding="UTF-8"?> <data:event xmlns:data="http://enunciate.codehaus.org/samples/genealogy/data" type="..." id="..."> <data:description> <!--content of type 'string'--> ... </data:description> <data:tags> <!--content of type 'string'--> ... </data:tags> <data:tags> <!--(another 'string' type)--> </data:tags> <!--...more "tags" elements...--> <data:date> <!--content of type 'dateTime'--> ... </data:date> <data:place> <!--content of type 'string'--> ... </data:place> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:event>

Example JSON

{ "type" : { }, "description" : "...", "tags" : [ "...", ... ], "date" : "...", "place" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }

Element person

A person. The central data in genealogical information.

Example XML

<?xml version="1.0" encoding="UTF-8"?> <data:person xmlns:data="http://enunciate.codehaus.org/samples/genealogy/data" id="..."> <data:gender type="..." id="..."> <!--content of type 'gender'--> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:gender> <data:names id="..."> <!--content of type 'name'--> <data:value> <!--content of type 'string'--> ... </data:value> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:names> <data:names> <!--(another 'name' type)--> </data:names> <!--...more "names" elements...--> <data:events type="..." id="..."> <!--content of type 'event'--> <data:description> <!--content of type 'string'--> ... </data:description> <data:tags> <!--content of type 'string'--> ... </data:tags> <data:tags> <!--(another 'string' type)--> </data:tags> <!--...more "tags" elements...--> <data:date> <!--content of type 'dateTime'--> ... </data:date> <data:place> <!--content of type 'string'--> ... </data:place> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:events> <data:events> <!--(another 'event' type)--> </data:events> <!--...more "events" elements...--> <data:facts type="..." id="..."> <!--content of type 'fact'--> <data:value> <!--content of type 'string'--> ... </data:value> <data:description> <!--content of type 'string'--> ... </data:description> <data:Tag> <!--content of type 'string'--> ... </data:Tag> <data:Tag> <!--(another 'string' type)--> </data:Tag> <!--...more "Tag" elements...--> <data:date> <!--content of type 'dateTime'--> ... </data:date> <data:place> <!--content of type 'string'--> ... </data:place> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:facts> <data:facts> <!--(another 'fact' type)--> </data:facts> <!--...more "facts" elements...--> <data:relationships id="..."> <!--content of type 'relationship'--> <data:id> <!--content of type 'string'--> ... </data:id> <data:type> <!--content of type 'null'--> ... </data:type> <data:sourcePersonName id="..."> <!--content of type 'name'--> <data:value> <!--content of type 'string'--> ... </data:value> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:sourcePersonName> <data:targetPersonName id="..."> <!--content of type 'name'--> <data:value> <!--content of type 'string'--> ... </data:value> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:targetPersonName> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:relationships> <data:relationships> <!--(another 'relationship' type)--> </data:relationships> <!--...more "relationships" elements...--> <data:picture> <!--content of type 'base64Binary'--> ... </data:picture> <data:eventDescriptions> <!--content of type 'eventDescriptionContainer'--> <data:typesToDescriptions type="..." id="..."> <!--content of type 'event'--> <data:description> <!--content of type 'string'--> ... </data:description> <data:tags> <!--content of type 'string'--> ... </data:tags> <data:tags> <!--(another 'string' type)--> </data:tags> <!--...more "tags" elements...--> <data:date> <!--content of type 'dateTime'--> ... </data:date> <data:place> <!--content of type 'string'--> ... </data:place> <data:note> <!--content of type 'string'--> ... </data:note> <data:infoSet> <!--content of type 'IDREF'--> ... </data:infoSet> </data:typesToDescriptions> <data:typesToDescriptions> <!--(another 'event' type)--> </data:typesToDescriptions> <!--...more "typesToDescriptions" elements...--> </data:eventDescriptions> <data:recording> <!--content of type 'string'--> ... </data:recording> </data:person>

Example JSON

{ "id" : "...", "gender" : { "type" : { }, "id" : "...", "note" : "...", "infoSet" : "..." }, "names" : [ { "value" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, ... ], "events" : [ { "type" : { }, "description" : "...", "tags" : [ "...", ... ], "date" : "...", "place" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, ... ], "facts" : [ { "type" : { }, "value" : "...", "description" : "...", "Tag" : [ "...", ... ], "date" : "...", "place" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, ... ], "relationships" : [ { "id" : "...", "type" : { }, "sourcePersonName" : { "value" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, "targetPersonName" : { "value" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, "note" : "...", "infoSet" : "..." }, ... ], "picture" : "...", "eventDescriptions" : { "typesToDescriptions" : [ { "type" : { }, "description" : "...", "tags" : [ "...", ... ], "date" : "...", "place" : "...", "id" : "...", "note" : "...", "infoSet" : "..." }, ... ] }, "recording" : "..." }

Element rootElementMapWrapper

Example XML

<?xml version="1.0" encoding="UTF-8"?> <data:rootElementMapWrapper xmlns:data="http://enunciate.codehaus.org/samples/genealogy/data"> <data:map> <!--content of type 'rootElementMapAdapted'--> <data:entry> <!--content of type 'rootElementMapAdaptedEntry'--> <data:value> <!--content of type 'rootElementMapAdaptedValue'--> </data:value> <data:key> <!--content of type 'string'--> ... </data:key> </data:entry> <data:entry> <!--(another 'rootElementMapAdaptedEntry' type)--> </data:entry> <!--...more "entry" elements...--> </data:map> </data:rootElementMapWrapper>

Example JSON

{ "map" : { "entry" : [ { "value" : { }, "key" : "..." }, ... ] } }

Type (anonymous)

A type of relationship.

Possible Values

value description
spouse indicates a spouse relationship.
parent indicates a parent relationship.
child indicates a child relationship.

Type assertion

An assertion of a piece of information, usually associated with a source.

Attributes

name type description
id ID The id of the assertion.

Child Elements

name (type) min/max
occurs
description
note (string) 0/1 A note associated with this assertion.
infoSet (IDREF) 0/1 The infoset from which this assertion was made.

Type event

An event assertion.

Attributes

name type description
type eventType The type of this event.

Child Elements

name (type) min/max
occurs
description
description (string) 0/1 A description of this event.
tags (string) 0/unbounded (no documentation provided)

Type eventDescriptionContainer

Child Elements

name (type) min/max
occurs
description
typesToDescriptions (event) 0/unbounded (no documentation provided)

Type eventType

Enumeration for event types.

Possible Values

value description
birth Specifies a birth event.
christening Specifies a christening event.
marriage Specifies a marriage event.
death Specifies a death event.
burial Specifies a burial event.

Type fact

A generic fact assertion.

Attributes

name type description
type factType The fact type.

Child Elements

name (type) min/max
occurs
description
value (string) 0/1 The value of the fact.
description (string) 0/1 A description of the fact.
Tag (string) 0/unbounded (no documentation provided)

Type factType

The set of fact types.

Possible Values

value description
occupation somebody's occupation.
possessions somebody's possessions.
race somebody's race.
nation_of_origin somebody's nation of origin.
physical_description somebody's physical description.

Type gender

A gender assertion.

Attributes

name type description
type genderType The type of gender.

Type genderType

The types of gender.

Possible Values

value description
m Male gender.
f Female gender.

Type name

A name assertion.

Child Elements

name (type) min/max
occurs
description
value (string) 0/1 The text value of the name.

Type occurringAssertion

An assertion that occurs at some point in time.

Child Elements

name (type) min/max
occurs
description
date (dateTime) 0/1 The date of the occurrence.
place (string) 0/1 The place of the occurrence.

Type person

A person. The central data in genealogical information.

Attributes

name type description
id ID The person id.

Child Elements

name (type) min/max
occurs
description
gender (gender) 0/1 The gender of a person.
names (name) 0/unbounded The names of the person.
events (event) 0/unbounded The events associated with a person.
facts (fact) 0/unbounded The facts about a person.
relationships (relationship) 0/unbounded The relationships of a person.
picture (base64Binary) 0/1 A picture of a person.
eventDescriptions (eventDescriptionContainer) 0/1 (no documentation provided)
recording (string) 0/1 (no documentation provided)

Type relationship

A relationship between two people.

Child Elements

name (type) min/max
occurs
description
id (string) 0/1 The id of the relationship.
type () 0/1 The relationship type.
sourcePersonName (name) 0/1 The name of the source person.
targetPersonName (name) 0/1 The name of the target person.

Type rootElementMapAdapted

Child Elements

name (type) min/max
occurs
description
entry (rootElementMapAdaptedEntry) 0/unbounded (no documentation provided)

Type rootElementMapAdaptedEntry

Child Elements

name (type) min/max
occurs
description
value (rootElementMapAdaptedValue) 0/1 (no documentation provided)
key (string) 0/1 (no documentation provided)

Type rootElementMapWrapper

Child Elements

name (type) min/max
occurs
description
map (rootElementMapAdapted) 0/1 (no documentation provided)