File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 24
24
)
25
25
26
26
27
+ instance = "https://lux.collections.yale.edu/data/person/68e84c09-5159-4f8b-ae5c-0c9145d3b6fe"
27
28
schemafn = os .path .join (schema_dir , f"person.json" )
29
+
30
+ instance = "https://lux.collections.yale.edu/data/object/047181f4-2fdf-43fd-abbe-f16d7f9edc10"
31
+ schemafn = os .path .join (schema_dir , f"object.json" )
32
+
33
+ instance = "https://lux.collections.yale.edu/data/concept/b2f01ce2-339e-43d1-9dc6-68c728337b96"
34
+ schemafn = os .path .join (schema_dir , f"concept.json" )
35
+
36
+ instance = "https://lux.collections.yale.edu/data/group/ed771376-2583-41ce-a4fd-649320c72a42"
37
+ schemafn = os .path .join (schema_dir , f"group.json" )
38
+
39
+ instance = "https://lux.collections.yale.edu/data/set/82e98f20-01e9-47d9-95a3-5b0f2a31d17e"
40
+ schemafn = os .path .join (schema_dir , f"set.json" )
41
+
42
+ instance = "https://lux.collections.yale.edu/data/activity/291d650f-9052-45ba-a7d1-b7b75aa2a5bd"
43
+ schemafn = os .path .join (schema_dir , f"event.json" )
44
+
45
+
28
46
fh = open (schemafn )
29
47
schema = json .load (fh )
30
48
fh .close ()
31
49
v = Draft202012Validator (schema , registry = registry )
32
50
33
- instance = "https://lux.collections.yale.edu/data/person/68e84c09-5159-4f8b-ae5c-0c9145d3b6fe"
34
-
35
51
resp = requests .get (instance )
36
52
data = resp .json ()
37
-
38
53
allow_underscore_props = True
39
54
40
55
print ("-" * 120 )
You can’t perform that action at this time.
0 commit comments