-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanga-catalog.pkl
More file actions
93 lines (88 loc) · 2.25 KB
/
Copy pathmanga-catalog.pkl
File metadata and controls
93 lines (88 loc) · 2.25 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
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
/// Example: Manga catalog — multi-description profile without data mapping.
///
/// Demonstrates linked descriptions: series references creator and volume
/// via IRI statements, each as its own description template.
amends "../Profile.pkl"
base = "http://example.org/manga/"
namespaces {
["schema"] = "http://schema.org/"
["xsd"] = "http://www.w3.org/2001/XMLSchema#"
["dcterms"] = "http://purl.org/dc/terms/"
["foaf"] = "http://xmlns.com/foaf/0.1/"
}
descriptions {
["series"] = new Description {
a = "schema:ComicSeries"
label = "Manga Series"
note = "A manga series or title"
statements {
["title"] = new LiteralStatement {
label = "Title"
property = "schema:name"
min = 1
max = 1
datatype = "xsd:string"
}
["genre"] = new LiteralStatement {
label = "Genre"
property = "schema:genre"
min = 1
datatype = "xsd:string"
}
["author"] = new IriStatement {
label = "Author"
property = "schema:author"
min = 1
description = "creator"
}
["volume"] = new IriStatement {
label = "Volumes"
property = "schema:hasPart"
min = 1
description = "volume"
}
}
}
["volume"] = new Description {
a = "schema:Book"
label = "Volume"
note = "A single volume of a manga series"
statements {
["volumeNumber"] = new LiteralStatement {
label = "Volume Number"
property = "schema:volumeNumber"
min = 1
max = 1
datatype = "xsd:integer"
}
["datePublished"] = new LiteralStatement {
label = "Date Published"
property = "schema:datePublished"
min = 1
max = 1
datatype = "xsd:date"
}
}
}
["creator"] = new Description {
a = "foaf:Person"
label = "Creator"
note = "A manga author or artist"
statements {
["name"] = new LiteralStatement {
label = "Name"
property = "schema:name"
min = 1
max = 1
datatype = "xsd:string"
}
["birthDate"] = new LiteralStatement {
label = "Birth Date"
property = "schema:birthDate"
min = 0
max = 1
datatype = "xsd:date"
}
}
}
}