-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
54 lines (54 loc) · 1.67 KB
/
Copy pathschema.json
File metadata and controls
54 lines (54 loc) · 1.67 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/turenlabs/secpapers/main/data/schema.json",
"title": "SecPapers dataset",
"type": "object",
"required": ["schema_version", "papers"],
"properties": {
"schema_version": {"const": 1},
"papers": {
"type": "array",
"items": {"$ref": "#/$defs/paper"}
}
},
"additionalProperties": false,
"$defs": {
"paper": {
"type": "object",
"required": [
"id",
"version",
"title",
"authors",
"abstract",
"categories",
"primary_category",
"published",
"updated",
"url",
"pdf_url",
"topics",
"relevance_score"
],
"properties": {
"id": {"type": "string"},
"version": {"type": "integer", "minimum": 1},
"title": {"type": "string"},
"authors": {"type": "array", "items": {"type": "string"}},
"abstract": {"type": "string"},
"categories": {"type": "array", "items": {"type": "string"}},
"primary_category": {"type": "string"},
"published": {"type": "string", "format": "date-time"},
"updated": {"type": "string", "format": "date-time"},
"url": {"type": "string", "format": "uri"},
"pdf_url": {"type": "string", "format": "uri"},
"doi": {"type": ["string", "null"]},
"journal_ref": {"type": ["string", "null"]},
"comment": {"type": ["string", "null"]},
"topics": {"type": "array", "items": {"type": "string"}, "minItems": 1},
"relevance_score": {"type": "integer", "minimum": 0}
},
"additionalProperties": false
}
}
}