-
Notifications
You must be signed in to change notification settings - Fork 1
/
netvis-config.xml
150 lines (150 loc) · 8.58 KB
/
netvis-config.xml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<netvisConfig>
<Nodes>
<Entity type="Tagebucheintrag">
<getId type="xpath">$entity-id</getId>
<getEntity type="xpath">doc($app:editions||'/'||$entity-id)//tei:TEI</getEntity>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">$node//tei:titleStmt/tei:title[@type="main"]/text()</label>
<detail_view type="xpath">app:hrefToDoc($node, 'editions')</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Tagebucheintrag')</as_graph>
<type type="literal">Tagebucheintrag</type>
<text type="xpath">substring(normalize-space(string-join($node//tei:body//text(), ' ')), 1, 75)</text>
</mandatoryProps>
<relations>
<target>
<xpath>$node//tei:back//tei:person</xpath>
<relationType>erwähnt</relationType>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">normalize-space(string-join($node//tei:persName//text(), ' '))</label>
<detail_view type="xpath">concat('../pages/hits.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Person')</as_graph>
<type type="literal">Person</type>
<relationType type="literal">erwähnt Person</relationType>
</mandatoryProps>
</target>
<target>
<xpath>$node//tei:back//tei:place</xpath>
<relationType>erwähnt</relationType>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">normalize-space(string-join($node//tei:placeName//text(), ' '))</label>
<detail_view type="xpath">concat('../pages/hits.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Place')</as_graph>
<type type="literal">Place</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
</mandatoryProps>
</target>
<target>
<xpath>$node//tei:back//tei:bibl</xpath>
<relationType>erwähnt</relationType>
<mandatoryProps>
<id type="xpath">'bibl_'||data($node/@xml:id)</id>
<label type="xpath">normalize-space(string-join($node/tei:title/text(), ' '))</label>
<detail_view type="xpath">concat('../pages/work-search.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url('bibl_'||data($node/@xml:id), 'Werk')</as_graph>
<type type="literal">Werk</type>
<relationType type="literal">erwähnt Werk</relationType>
</mandatoryProps>
</target>
</relations>
</Entity>
<Entity type="Werk">
<getId type="xpath">substring-after($entity-id, 'bibl_')</getId>
<getEntity type="xpath">doc($app:workIndex)//tei:title[@key=$id]/ancestor::tei:item</getEntity>
<mandatoryProps>
<id type="xpath">'bibl_'||data($node//tei:title/@key)</id>
<label type="xpath">$node//tei:title/text()</label>
<detail_view type="xpath">'../pages/work-search.html?searchkey='||data($node//tei:title/@key)</detail_view>
<as_graph type="xpath">netvis:graph-url('bibl_'||data($node//tei:title/@key), 'Werk')</as_graph>
<type type="literal">Werk</type>
</mandatoryProps>
<target>
<xpath>$node//tei:date</xpath>
<relationType>wird erwähnt in Tagebucheintrag</relationType>
<mandatoryProps>
<id type="xpath">'entry__'||data($node/@when)||'.xml'</id>
<label type="xpath">'Eintrag vom'||$node/text()</label>
<detail_view type="xpath">concat('../pages/hits.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url('entry__'||data($node/@when)||'.xml', 'Tagebucheintrag')</as_graph>
<type type="literal">Tagebucheintrag</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
</mandatoryProps>
</target>
</Entity>
<Entity type="Person">
<getId type="xpath">$entity-id</getId>
<getEntity type="xpath">doc($app:personIndex)//id($id)</getEntity>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">normalize-space(string-join($node//tei:persName//text(), ' '))</label>
<detail_view type="xpath">concat('../pages/hits.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Person')</as_graph>
<type type="literal">Person</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
</mandatoryProps>
<target>
<xpath>collection($app:editions)/id($node/@xml:id)/ancestor::tei:TEI</xpath>
<relationType>wird erwähnt in Tagebucheintrag</relationType>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">$node//tei:titleStmt/tei:title[@type="main"]/text()</label>
<detail_view type="xpath">app:hrefToDoc($node, 'editions')</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Tagebucheintrag')</as_graph>
<type type="literal">Tagebucheintrag</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
<text type="xpath">substring(normalize-space(string-join($node//tei:body//text(), ' ')), 1, 75)</text>
</mandatoryProps>
</target>
</Entity>
<Entity type="Place">
<getId type="xpath">$entity-id</getId>
<getEntity type="xpath">doc($app:placeIndex)//id($id)</getEntity>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">normalize-space(string-join($node//tei:placeName//text(), ' '))</label>
<detail_view type="xpath">concat('../pages/hits.html?searchkey=', data($node/@xml:id))</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Place')</as_graph>
<type type="literal">Place</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
</mandatoryProps>
<target>
<xpath>collection($app:editions)/id($node/@xml:id)/ancestor::tei:TEI</xpath>
<relationType>wird erwähnt in Tagebucheintrag</relationType>
<mandatoryProps>
<id type="xpath">data($node/@xml:id)</id>
<label type="xpath">$node//tei:titleStmt/tei:title[@type="main"]/text()</label>
<detail_view type="xpath">app:hrefToDoc($node, 'editions')</detail_view>
<as_graph type="xpath">netvis:graph-url($node/@xml:id, 'Tagebucheintrag')</as_graph>
<type type="literal">Tagebucheintrag</type>
<relationType type="literal">wird erwähnt in Tagebucheintrag</relationType>
<text type="xpath">substring(normalize-space(string-join($node//tei:body//text(), ' ')), 1, 75)</text>
</mandatoryProps>
</target>
</Entity>
</Nodes>
<NodeTypes>
<node>
<id>Tagebucheintrag</id>
<color>#6b5b95</color>
<label>Tagebucheintrag</label>
</node>
<node>
<id>Person</id>
<color>#feb236</color>
<label>Person</label>
</node>
<node>
<id>Place</id>
<color>#d64161</color>
<label>Place</label>
</node>
<node>
<id>Werk</id>
<color>#ff7b25</color>
<label>Werk</label>
</node>
</NodeTypes>
</netvisConfig>