Data: cite
- Namespace: http://enunciate.codehaus.org/samples/genealogy/cite
- XML Schema File: cite.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 contributor
- Type: contributor
A contributor of information from a source.
With some invalid XML in the documentation...
Example XML
<?xml version="1.0" encoding="UTF-8"?>
<cite:contributor xmlns:cite="http://enunciate.codehaus.org/samples/genealogy/cite" id="...">
<cite:contactName>
<!--content of type 'string'-->
...
</cite:contactName>
<cite:emails>...</cite:emails>
</cite:contributor>
Example JSON
{
"id" : "...",
"contactName" : "...",
"emails" : {
"value" : "..."
}
}
Element repository
- Type: repository
A repository for sources.
Example XML
<?xml version="1.0" encoding="UTF-8"?>
<cite:repository xmlns:cite="http://enunciate.codehaus.org/samples/genealogy/cite" id="...">
<cite:location>
<!--content of type 'string'-->
...
</cite:location>
<cite:email>...</cite:email>
</cite:repository>
Example JSON
{
"id" : "...",
"location" : "...",
"email" : {
"value" : "..."
}
}
Element source
- Type: source
A source of genealogical information.
Example XML
<?xml version="1.0" encoding="UTF-8"?>
<cite:source xmlns:cite="http://enunciate.codehaus.org/samples/genealogy/cite" id="...">
<cite:title>
<!--content of type 'string'-->
...
</cite:title>
<cite:link>
<!--content of type 'string'-->
...
</cite:link>
<cite:infoSets id="...">
<!--content of type 'infoSet'-->
<cite:inferences>
<!--content of type 'IDREF'-->
...
</cite:inferences>
<cite:inferences>
<!--(another 'IDREF' type)-->
</cite:inferences>
<!--...more "inferences" elements...-->
<cite:contributor>...</cite:contributor>
<cite:source>
<!--content of type 'IDREF'-->
...
</cite:source>
<cite:sourceReference>
<!--content of type 'string'-->
...
</cite:sourceReference>
</cite:infoSets>
<cite:infoSets>
<!--(another 'infoSet' type)-->
</cite:infoSets>
<!--...more "infoSets" elements...-->
<cite:repository>...</cite:repository>
</cite:source>
Example JSON
{
"id" : "...",
"title" : "...",
"link" : "...",
"infoSets" : [ {
"id" : "...",
"inferences" : [ "...", ... ],
"contributor" : {
},
"source" : "...",
"sourceReference" : "..."
}, ... ],
"repository" : {
}
}
Type contributor
A contributor of information from a source.
With some invalid XML in the documentation...
Attributes
| name | type | description |
|---|---|---|
| id | ID | The id of the contributor. |
Child Elements
| name (type) | min/max occurs |
description |
|---|---|---|
| contactName (string) | 0/1 | The contact name for the contributor. |
| emails (EMail) | 0/1 | The email addresses associated with this contributor. |
Type infoSet
A set of information.
Attributes
| name | type | description |
|---|---|---|
| id | ID | The id of the infoset. |
Child Elements
| name (type) | min/max occurs |
description |
|---|---|---|
| inferences (IDREF) | 0/unbounded | The inferences that make up this infoset. |
| contributor () | 0/1 | The submitter of the information. |
| source (IDREF) | 0/1 | The source of the information. |
| sourceReference (string) | 0/1 | A reference within the source of this information. |
Type repository
A repository for sources.
Attributes
| name | type | description |
|---|---|---|
| id | ID | The id of the repository. |
Child Elements
| name (type) | min/max occurs |
description |
|---|---|---|
| location (string) | 0/1 | The location for this repository. |
| email (EMail) | 0/1 | An e-mail address for this repository. |
Type source
A source of genealogical information.
Attributes
| name | type | description |
|---|---|---|
| id | ID | The id of the source. |
Child Elements
| name (type) | min/max occurs |
description |
|---|---|---|
| title (string) | 0/1 | The title of the source. |
| link (string) | 0/1 | A link to this source. |
| infoSets (infoSet) | 0/unbounded | The infosets associated with this source. |
| repository () | 0/1 | The repository for this source. |