annosaurus 0.2.7
Added a method to make a bulk association request. This is needed to support the new identity-reference
and old identity-reference
features in vars-annotation. It returns modified associations (aka descriptors) that have the given link_name
and belong to one of the media referenced via their video_reference_uuid
.
Request Assocations
POST /v1/associations/conceptassociations
Content-Type: application/json
{
"link_name": "identity-reference"
"video_reference_uuids": [
"a8307ef9-8e49-40d3-f163-00b37ce4971e",
"ec8de1e1-ea59-49b1-bbdb-3f83260d204f"
]
}
The response will be JSON formatted as follows:
{
"concept_association_request": {
"link_name": "identity-reference"
"video_reference_uuids": [
"a8307ef9-8e49-40d3-f163-00b37ce4971e",
"ec8de1e1-ea59-49b1-bbdb-3f83260d204f"
]
},
"concept_associations": [
{
"uuid": "1eba510d-f334-4a5e-b865-5d88a87e981e",
"video_reference_uuid": "ec8de1e1-ea59-49b1-bbdb-3f83260d204f",
"concept": "Foo",
"link_name": "identity-reference",
"to_concept": "self",
"link_value": "8",
"mime_type": "text/plain"
},
{
"uuid": "1eba510d-f334-4a5e-b865-5d88a87e981e",
"video_reference_uuid": "a8307ef9-8e49-40d3-f163-00b37ce4971e",
"concept": "Bar",
"link_name": "identity-reference",
"to_concept": "self",
"link_value": "4",
"mime_type": "text/plain"
}
]
}