
eedm.constituent-personal-relationships.v16.0.0.constituent-personal-relationships.json Maven / Gradle / Ivy
{
"title" : "Constituent Personal Relationships",
"description" : "A kind of relationship between two people who are recorded as constituents.",
"version" : "16.0.0",
"type" : "object",
"properties" : {
"metadata" : {
"$ref" : "resource:/eedm/metadata.json"
},
"id" : {
"title" : "ID",
"description" : "The global identifier of the relationship.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
},
"subjectPerson" : {
"title" : "Subject Person",
"description" : "A person, with regards to whom the relationship is considered.",
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Subject Person.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/constituent-persons/{id}",
"targetSchema" : {
"$ref" : "constituent-persons.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
},
"relatedPerson" : {
"title" : "Related Person",
"description" : "A person related to the subject.",
"oneOf" : [ {
"title" : "Name",
"description" : "The name of the related person.",
"type" : "object",
"properties" : {
"name" : {
"title" : "Name",
"description" : "The name of the related person.",
"type" : "string",
"minLength" : 1
}
},
"additionalProperties" : false,
"required" : [ "name" ]
}, {
"title" : "Person",
"description" : "The link to the person record.",
"type" : "object",
"properties" : {
"person" : {
"title" : "Person",
"description" : "The link to the person record.",
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Person.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/constituent-persons/{id}",
"targetSchema" : {
"$ref" : "constituent-persons.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
}
},
"additionalProperties" : false,
"required" : [ "person" ]
} ]
},
"directRelationship" : {
"title" : "Direct Relationship",
"description" : "The relationship between the subject and related person, going from the latter to the former.",
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Direct Relationship.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/constituent-personal-relationship-types/{id}",
"targetSchema" : {
"$ref" : "constituent-personal-relationship-types.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
},
"reciprocalRelationship" : {
"title" : "Reciprocal Relationship",
"description" : "The reverse relationship between the persons.",
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Reciprocal Relationship.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/constituent-personal-relationship-types/{id}",
"targetSchema" : {
"$ref" : "constituent-personal-relationship-types.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
},
"relationshipOriginLocation" : {
"title" : "Relationship Origin Location",
"description" : "The place where the relationship started (e.g., the place of marriage)",
"type" : "string"
},
"startOn" : {
"title" : "Start Date",
"description" : "The date when the relationship started",
"type" : "object",
"properties" : {
"year" : {
"title" : "Year",
"description" : "The year when the relationship started",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
},
"month" : {
"title" : "Month",
"description" : "The month when the relationship started",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"maximum" : 12,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
},
"day" : {
"title" : "Day",
"description" : "The day when the relationship started",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"maximum" : 31,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
}
},
"additionalProperties" : false
},
"endOn" : {
"title" : "End Date",
"description" : "The date when the relationship ended",
"type" : "object",
"properties" : {
"year" : {
"title" : "Year",
"description" : "The year when the relationship ended",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
},
"month" : {
"title" : "Month",
"description" : "The month when the relationship ended",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"maximum" : 12,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
},
"day" : {
"title" : "Day",
"description" : "The day when the relationship ended",
"oneOf" : [ {
"type" : "number",
"minimum" : 0,
"maximum" : 31,
"format" : "positiveInteger"
}, {
"type" : "null"
} ]
}
},
"additionalProperties" : false
},
"comment" : {
"title" : "Comment",
"description" : "Comment on the relationship.",
"type" : "string"
},
"source" : {
"title" : "Source",
"description" : "The source of the relationship information",
"oneOf" : [ {
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Source.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/advancement-sources/{id}",
"targetSchema" : {
"$ref" : "advancement-sources.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
}, {
"type" : "object",
"maxProperties" : 0
} ]
}
},
"required" : [ "id", "subjectPerson", "relatedPerson", "directRelationship", "reciprocalRelationship" ],
"additionalProperties" : false,
"links" : [ {
"rel" : "filter",
"encType" : "application/x-www-form-urlencoded",
"method" : "GET",
"href" : "/constituent-personal-relationships?criteria={\"subjectPerson\": {\"id\": $id}}",
"title" : "Subject Person",
"description" : "A person, with regards to whom the relationship is considered.",
"schema" : {
"type" : "object",
"properties" : {
"subjectPerson" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
}
}
}
},
"targetSchema" : {
"$ref" : "constituent-personal-relationships.json#"
}
}, {
"rel" : "filter",
"encType" : "application/x-www-form-urlencoded",
"method" : "GET",
"href" : "/constituent-personal-relationships?criteria={\"relatedPerson\":{\"person\": {\"id\": $id}}}",
"title" : "Related Person",
"description" : "The link to the person record.",
"schema" : {
"type" : "object",
"properties" : {
"relatedPerson" : {
"type" : "object",
"properties" : {
"person" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
}
}
}
}
}
},
"targetSchema" : {
"$ref" : "constituent-personal-relationships.json#"
}
}, {
"rel" : "filter",
"encType" : "application/x-www-form-urlencoded",
"method" : "GET",
"href" : "/constituent-personal-relationships?criteria={\"directRelationship\": {\"id\": $id}}",
"title" : "Direct Relationship",
"description" : "The relationship between the subject and related person, going from the latter to the former.",
"schema" : {
"type" : "object",
"properties" : {
"directRelationship" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
}
}
}
},
"targetSchema" : {
"$ref" : "constituent-personal-relationships.json#"
}
}, {
"rel" : "filter",
"encType" : "application/x-www-form-urlencoded",
"method" : "GET",
"href" : "/constituent-personal-relationships?criteria={\"reciprocalRelationship\": {\"id\": $id}}",
"title" : "Reciprocal Relationship",
"description" : "The reverse relationship between the persons.",
"schema" : {
"type" : "object",
"properties" : {
"reciprocalRelationship" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
}
}
}
},
"targetSchema" : {
"$ref" : "constituent-personal-relationships.json#"
}
} ]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy