Skip to content

Commit 29d5bf0

Browse files
committed
adds example lod output from specs with different contexts
This is related to distributed-text-services/specifications#280
1 parent b776ade commit 29d5bf0

2 files changed

Lines changed: 224 additions & 0 deletions

File tree

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"@context": "https://distributed-text-services.github.io/specifications/context/1.0rc1.json",
3+
"dtsVersion": "1.0rc1",
4+
"@type": "Navigation",
5+
"@id": "https://example.org/api/dts/navigation/?resource=https://en.wikisource.org/wiki/Dracula&ref=C1&down=-1",
6+
"resource": {
7+
"@id": "https://en.wikisource.org/wiki/Dracula",
8+
"@type": "Resource",
9+
"document": "https://example.org/api/dts/document/?resource=https://en.wikisource.org/wiki/Dracula{&ref,start,end,tree,mediaType}",
10+
"collection": "https://example.org/api/dts/collection/?resource=https://en.wikisource.org/wiki/Dracula{&page,nav}",
11+
"navigation": "https://example.org/api/dts/navigation/?resource=https://en.wikisource.org/wiki/Dracula{&ref,down,start,end,tree,page}",
12+
"citationTrees": [
13+
{
14+
"@type": "CitationTree",
15+
"citeStructure": [
16+
{
17+
"@type": "CiteStructure",
18+
"citeType": "Chapter",
19+
"citeStructure": [
20+
{
21+
"@type": "CiteStructure",
22+
"citeType": "Journal Entry",
23+
"citeStructure": [
24+
{
25+
"@type": "CiteStructure",
26+
"citeType": "Paragraph"
27+
}
28+
]
29+
}
30+
]
31+
}
32+
]
33+
}
34+
]
35+
},
36+
"ref": {
37+
"identifier": "C1",
38+
"@type": "CitableUnit",
39+
"level": 1,
40+
"parent": null,
41+
"citeType": "Chapter",
42+
"dublinCore": {
43+
"title": [{
44+
"lang": "en",
45+
"value": "Chapter 1: Jonathan Harker's Journal"
46+
}]
47+
}
48+
},
49+
"member": [
50+
{
51+
"identifier": "C1",
52+
"@type": "CitableUnit",
53+
"level": 1,
54+
"parent": null,
55+
"citeType": "Chapter",
56+
"dublinCore": {
57+
"title": [{
58+
"lang": "en",
59+
"value": "Chapter 1: Jonathan Harker's Journal"
60+
}]
61+
}
62+
},
63+
{
64+
"identifier": "C1.E1",
65+
"@type": "CitableUnit",
66+
"level": 2,
67+
"parent": "C1",
68+
"citeType": "Journal Entry",
69+
"dublinCore": {
70+
"title": [{ "lang": "en", "value": "3 May. Bistritz" }]
71+
}
72+
},
73+
{
74+
"identifier": "C1.E1,P1",
75+
"@type": "CitableUnit",
76+
"level": 3,
77+
"parent": "C1.E1",
78+
"citeType": "Paragraph"
79+
},
80+
{
81+
"identifier": "C1.E1,P2",
82+
"@type": "CitableUnit",
83+
"level": 3,
84+
"parent": "C1.E1",
85+
"citeType": "Paragraph"
86+
},
87+
{
88+
"identifier": "C1.E2",
89+
"@type": "CitableUnit",
90+
"level": 2,
91+
"parent": "C1",
92+
"citeType": "Journal Entry",
93+
"dublinCore": {
94+
"title": [{ "lang": "en", "value": "4 May" }]
95+
}
96+
},
97+
{
98+
"identifier": "C1.E2,P1",
99+
"@type": "CitableUnit",
100+
"level": 3,
101+
"parent": "C1.E2",
102+
"citeType": "Paragraph"
103+
},
104+
{
105+
"identifier": "C1.E2,P2",
106+
"@type": "CitableUnit",
107+
"level": 3,
108+
"parent": "C1.E2",
109+
"citeType": "Paragraph"
110+
}
111+
]
112+
}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/xsl/context/1.0rc1-dcterms-set.json",
3+
"dtsVersion": "1.0rc1",
4+
"@type": "Navigation",
5+
"@id": "https://example.org/api/dts/navigation/?resource=https://en.wikisource.org/wiki/Dracula&ref=C1&down=-1",
6+
"resource": {
7+
"@id": "https://en.wikisource.org/wiki/Dracula",
8+
"@type": "Resource",
9+
"document": "https://example.org/api/dts/document/?resource=https://en.wikisource.org/wiki/Dracula{&ref,start,end,tree,mediaType}",
10+
"collection": "https://example.org/api/dts/collection/?resource=https://en.wikisource.org/wiki/Dracula{&page,nav}",
11+
"navigation": "https://example.org/api/dts/navigation/?resource=https://en.wikisource.org/wiki/Dracula{&ref,down,start,end,tree,page}",
12+
"citationTrees": [
13+
{
14+
"@type": "CitationTree",
15+
"citeStructure": [
16+
{
17+
"@type": "CiteStructure",
18+
"citeType": "Chapter",
19+
"citeStructure": [
20+
{
21+
"@type": "CiteStructure",
22+
"citeType": "Journal Entry",
23+
"citeStructure": [
24+
{
25+
"@type": "CiteStructure",
26+
"citeType": "Paragraph"
27+
}
28+
]
29+
}
30+
]
31+
}
32+
]
33+
}
34+
]
35+
},
36+
"ref": {
37+
"identifier": "C1",
38+
"@type": "CitableUnit",
39+
"level": 1,
40+
"parent": null,
41+
"citeType": "Chapter",
42+
"dublinCore": {
43+
"title": [{
44+
"lang": "en",
45+
"value": "Chapter 1: Jonathan Harker's Journal"
46+
}]
47+
}
48+
},
49+
"member": [
50+
{
51+
"identifier": "C1",
52+
"@type": "CitableUnit",
53+
"level": 1,
54+
"parent": null,
55+
"citeType": "Chapter",
56+
"dublinCore": {
57+
"title": [{
58+
"lang": "en",
59+
"value": "Chapter 1: Jonathan Harker's Journal"
60+
}]
61+
}
62+
},
63+
{
64+
"identifier": "C1.E1",
65+
"@type": "CitableUnit",
66+
"level": 2,
67+
"parent": "C1",
68+
"citeType": "Journal Entry",
69+
"dublinCore": {
70+
"title": [{ "lang": "en", "value": "3 May. Bistritz" }]
71+
}
72+
},
73+
{
74+
"identifier": "C1.E1,P1",
75+
"@type": "CitableUnit",
76+
"level": 3,
77+
"parent": "C1.E1",
78+
"citeType": "Paragraph"
79+
},
80+
{
81+
"identifier": "C1.E1,P2",
82+
"@type": "CitableUnit",
83+
"level": 3,
84+
"parent": "C1.E1",
85+
"citeType": "Paragraph"
86+
},
87+
{
88+
"identifier": "C1.E2",
89+
"@type": "CitableUnit",
90+
"level": 2,
91+
"parent": "C1",
92+
"citeType": "Journal Entry",
93+
"dublinCore": {
94+
"title": [{ "lang": "en", "value": "4 May" }]
95+
}
96+
},
97+
{
98+
"identifier": "C1.E2,P1",
99+
"@type": "CitableUnit",
100+
"level": 3,
101+
"parent": "C1.E2",
102+
"citeType": "Paragraph"
103+
},
104+
{
105+
"identifier": "C1.E2,P2",
106+
"@type": "CitableUnit",
107+
"level": 3,
108+
"parent": "C1.E2",
109+
"citeType": "Paragraph"
110+
}
111+
]
112+
}

0 commit comments

Comments
 (0)