LocateAnything-Data / schemas /view-source-map.schema.json
exiawsh's picture
Add files using upload-large-folder tool
b4e82af verified
Raw
History Blame Contribute Delete
2.06 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:nvidia:locate-anything-data:schema:view-source-map:v1",
"title": "LocateAnything public record-to-source mapping row",
"type": "object",
"additionalProperties": false,
"required": [
"schema",
"dataset_id",
"view_id",
"row_id",
"source_sample_id",
"source_annotation",
"source_file_index",
"source_row",
"source_record_sha256",
"occurrence",
"json_pointer",
"aux_source",
"pool_id",
"source_id",
"member_name",
"media_kind"
],
"properties": {
"schema": {
"const": "locate-anything.public-view-source-map/v1"
},
"dataset_id": {
"type": "string",
"minLength": 1
},
"view_id": {
"type": "string",
"minLength": 1
},
"row_id": {
"type": "integer",
"minimum": 0
},
"source_sample_id": {
"type": "string",
"minLength": 1
},
"source_annotation": {
"type": "string",
"minLength": 1,
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
},
"source_file_index": {
"type": "integer",
"minimum": 0
},
"source_row": {
"type": "integer",
"minimum": 0
},
"source_record_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"occurrence": {
"type": "integer",
"minimum": 0
},
"json_pointer": {
"type": "string",
"pattern": "^/"
},
"aux_source": {
"type": "string",
"minLength": 1
},
"pool_id": {
"type": "string",
"minLength": 1
},
"source_id": {
"type": "integer",
"minimum": 0,
"description": "Foreign key to the media relation within pool_id."
},
"member_name": {
"type": "string",
"pattern": "^m/[0-9]{12}\\.[A-Za-z0-9]+$"
},
"media_kind": {
"type": "string",
"enum": [
"image",
"video",
"audio",
"depth",
"tensor",
"document"
]
}
}
}