XML

SourceCitation (JSON)

Represents a source citation.

Namespace:http://gedcomx.org/v1/
URI:http://gedcomx.org/v1/SourceCitation
Extends:HypermediaEnabledData

Properties

Name Type Description
lang string The language of the citation. See http://www.w3.org/International/articles/language-tags/
citationTemplate ResourceReference A reference to the citation template for this citation. FTU
fields array of CitationField The list of citation fields. FTU
value string A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
Properties inherited from HypermediaEnabledData
links array of Link The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
Properties inherited from ExtensibleData
id string A local, context-specific id for the data.

Example

{
  "lang" : "...",
  "citationTemplate" : {
    "resourceId" : "...",
    "resource" : ...
  },
  "fields" : {
    "type1" : [ {
      "name" : "...",
      "value" : "..."
    }, ... ],
    "type2" : [ {
      "name" : "...",
      "value" : "..."
    }, ... ],
    "..." : ...
  },
  "value" : "...",
  "links" : {
    "type1" : [ {
      "template" : "...",
      "allow" : "...",
      "count" : ...,
      "accept" : "...",
      "type" : "...",
      "hreflang" : "...",
      "title" : "...",
      "results" : ...,
      "rel" : "...",
      "offset" : ...,
      "href" : ...
    }, ... ],
    "type2" : [ {
      "template" : "...",
      "allow" : "...",
      "count" : ...,
      "accept" : "...",
      "type" : "...",
      "hreflang" : "...",
      "title" : "...",
      "results" : ...,
      "rel" : "...",
      "offset" : ...,
      "href" : ...
    }, ... ],
    "..." : ...
  },
  "id" : "..."
}