Relations
The relations object is part of the task object in the Ango Annotation Format. It contains all data pertaining to labels created with relations, e.g. not tools, classifications, or brushes.
General Structure
"relations" : [
{
from // string, only in single relations, objectID of the object from where the relation starts
to // string, only in single relations, objectID of the object where the relation stops
objectId // string, ID of the relation
schemaId, // string, ID of the relation class in the project
group // list, only in group relation, the objectIDs of the objects present in the relation
direction, // string, only in single relations, one of straight, reverse, bidirectional.
classifications, // list, nested classifications answered on the relation
title // string, title of the relation class
page // int, optional, if asset is multi-frame (video, TIFF, DICOM) frame where the relation takes place
},
{ ... }
]Single Relation
{
"from": "3d52bc1cd570e28fa9da319",
"to": "4e8dbe33e3223d9da92e638",
"objectId": "572c2545502ba09bd661714",
"schemaId": "8f8e617174718e80bbea268",
"direction": "straight",
"classifications": [
{
"objectId": "78d263ed59db8dd1dcb4666",
"schemaId": "4460fa700ef030c4e575604",
"tool": "radio",
"title": "Connection type",
"answer": "Direct",
"classifications": []
}
],
"page": 0,
"title": "Single Relation"
}from
String
In single relations only, object ID of the object which was clicked first when setting up the relation.
to
String
In single relations only, object ID of the object which was clicked second when setting up the relation.
objectId
String
Object ID of the relation. Unique in the asset.
schemaId
String
ID of the class to which the relation belongs.
classifications
List
Nested classification answers attached to the relation. Each item follows the classification format and can contain further nested classifications.
title
String
Name of the class.
direction
String
In single relations only, direction of the relation. One of:
straight: The relation has an arrow starting from the object indicated by from and pointing towards the object with the objectID indicated by to.
reverse: The relation has an arrow starting from the object indicated by to and pointing towards the object with the objectID indicated by from.
bidirectional: The relation has two arrows, each starting from one of the two objects and pointing towards the other.
Group Relation
objectId
String
Object ID of the relation. Unique in the asset.
schemaId
String
ID of the class to which the relation belongs.
group
List
In group relations only, the objectIDs of the objects in the relation.
classifications
List
Nested classification answers attached to the relation. Each item follows the classification format and can contain further nested classifications.
title
String
Name of the class.
Last updated