File size: 2,058 Bytes
b4e82af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
  "$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"
      ]
    }
  }
}