-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguages.php
138 lines (131 loc) · 6.78 KB
/
languages.php
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
<?php
$configuration = parse_ini_file('config.cfg');
include_once('newviz/common.functions.php');
include_once('common/common-functions.php');
$fields = [
'proxy_dc_title' => 'Proxy / dc:title',
'proxy_dcterms_alternative' => 'Proxy / dcterms:alternative',
'proxy_dc_description' => 'Proxy / dc:description',
'proxy_dc_creator' => 'Proxy / dc:creator',
'proxy_dc_publisher' => 'Proxy / dc:publisher',
'proxy_dc_contributor' => 'Proxy / dc:contributor',
'proxy_dc_type' => 'Proxy / dc:type',
'proxy_dc_identifier' => 'Proxy / dc:identifier',
'proxy_dc_language' => 'Proxy / dc:language',
'proxy_dc_coverage' => 'Proxy / dc:coverage',
'proxy_dcterms_temporal' => 'Proxy / dcterms:temporal',
'proxy_dcterms_spatial' => 'Proxy / dcterms:spatial',
'proxy_dc_subject' => 'Proxy / dc:subject',
'proxy_dc_date' => 'Proxy / dc:date',
'proxy_dcterms_created' => 'Proxy / dcterms:created',
'proxy_dcterms_issued' => 'Proxy / dcterms:issued',
'proxy_dcterms_extent' => 'Proxy / dcterms:extent',
'proxy_dcterms_medium' => 'Proxy / dcterms:medium',
'proxy_dcterms_provenance' => 'Proxy / dcterms:provenance',
'proxy_dcterms_hasPart' => 'Proxy / dcterms:hasPart',
'proxy_dcterms_isPartOf' => 'Proxy / dcterms:isPartOf',
'proxy_dc_format' => 'Proxy / dc:format',
'proxy_dc_source' => 'Proxy / dc:source',
'proxy_dc_rights' => 'Proxy / dc:rights',
'proxy_dc_relation' => 'Proxy / dc:relation',
'proxy_edm_europeanaProxy' => 'Proxy / edm:europeanaProxy',
'proxy_edm_year' => 'Proxy / edm:year',
'proxy_edm_userTag' => 'Proxy / edm:userTag',
'proxy_ore_ProxyIn' => 'Proxy / ore:ProxyIn',
'proxy_ore_ProxyFor' => 'Proxy / ore:ProxyFor',
'proxy_dc_conformsTo' => 'Proxy / dc:conformsTo',
'proxy_dcterms_hasFormat' => 'Proxy / dcterms:hasFormat',
'proxy_dcterms_hasVersion' => 'Proxy / dcterms:hasVersion',
'proxy_dcterms_isFormatOf' => 'Proxy / dcterms:isFormatOf',
'proxy_dcterms_isReferencedBy' => 'Proxy / dcterms:isReferencedBy',
'proxy_dcterms_isReplacedBy' => 'Proxy / dcterms:isReplacedBy',
'proxy_dcterms_isRequiredBy' => 'Proxy / dcterms:isRequiredBy',
'proxy_dcterms_isVersionOf' => 'Proxy / dcterms:isVersionOf',
'proxy_dcterms_references' => 'Proxy / dcterms:references',
'proxy_dcterms_replaces' => 'Proxy / dcterms:replaces',
'proxy_dcterms_requires' => 'Proxy / dcterms:requires',
'proxy_dcterms_tableOfContents' => 'Proxy / dcterms:tableOfContents',
'proxy_edm_currentLocation' => 'Proxy / edm:currentLocation',
'proxy_edm_hasMet' => 'Proxy / edm:hasMet',
'proxy_edm_hasType' => 'Proxy / edm:hasType',
'proxy_edm_incorporates' => 'Proxy / edm:incorporates',
'proxy_edm_isDerivativeOf' => 'Proxy / edm:isDerivativeOf',
'proxy_edm_isRelatedTo' => 'Proxy / edm:isRelatedTo',
'proxy_edm_isRepresentationOf' => 'Proxy / edm:isRepresentationOf',
'proxy_edm_isSimilarTo' => 'Proxy / edm:isSimilarTo',
'proxy_edm_isSuccessorOf' => 'Proxy / edm:isSuccessorOf',
'proxy_edm_realizes' => 'Proxy / edm:realizes',
'proxy_edm_wasPresentAt' => 'Proxy / edm:wasPresentAt',
'aggregation_edm_rights' => 'Aggregation / edm:rights',
'aggregation_edm_provider' => 'Aggregation / edm:provider',
'aggregation_edm_dataProvider' => 'Aggregation / edm:dataProvider',
'aggregation_dc_rights' => 'Aggregation / dc:rights',
'aggregation_edm_ugc' => 'Aggregation / edm:ugc',
'aggregation_edm_aggregatedCHO' => 'Aggregation / edm:aggregatedCHO',
'aggregation_edm_intermediateProvider' => 'Aggregation / edm:intermediateProvider',
'place_dcterms_isPartOf' => 'Place / dcterms:isPartOf',
'place_dcterms_hasPart' => 'Place / dcterms:hasPart',
'place_skos_prefLabel' => 'Place / skos:prefLabel',
'place_skos_altLabel' => 'Place / skos:altLabel',
'place_skos_note' => 'Place / skos:note',
'agent_edm_begin' => 'Agent / edm:begin',
'agent_edm_end' => 'Agent / edm:end',
'agent_edm_hasMet' => 'Agent / edm:hasMet',
'agent_edm_isRelatedTo' => 'Agent / edm:isRelatedTo',
'agent_owl_sameAs' => 'Agent / owl:sameAs',
'agent_foaf_name' => 'Agent / foaf:name',
'agent_dc_date' => 'Agent / dc:date',
'agent_dc_identifier' => 'Agent / dc:identifier',
'agent_rdaGr2_dateOfBirth' => 'Agent / rdaGr2:dateOfBirth',
'agent_rdaGr2_placeOfBirth' => 'Agent / rdaGr2:placeOfBirth',
'agent_rdaGr2_dateOfDeath' => 'Agent / rdaGr2:dateOfDeath',
'agent_rdaGr2_placeOfDeath' => 'Agent / rdaGr2:placeOfDeath',
'agent_rdaGr2_dateOfEstablishment' => 'Agent / rdaGr2:dateOfEstablishment',
'agent_rdaGr2_dateOfTermination' => 'Agent / rdaGr2:dateOfTermination',
'agent_rdaGr2_gender' => 'Agent / rdaGr2:gender',
'agent_rdaGr2_professionOrOccupation' => 'Agent / rdaGr2:professionOrOccupation',
'agent_rdaGr2_biographicalInformation' => 'Agent / rdaGr2:biographicalInformation',
'agent_skos_prefLabel' => 'Agent / skos:prefLabel',
'agent_skos_altLabel' => 'Agent / skos:altLabel',
'agent_skos_note' => 'Agent / skos:note',
'timespan_edm_begin' => 'Timespan / edm:begin',
'timespan_edm_end' => 'Timespan / edm:end',
'timespan_dcterms_isPartOf' => 'Timespan / dcterms:isPartOf',
'timespan_dcterms_hasPart' => 'Timespan / dcterms:hasPart',
'timespan_edm_isNextInSequence' => 'Timespan / edm:isNextInSequence',
'timespan_owl_sameAs' => 'Timespan / owl:sameAs',
'timespan_skos_prefLabel' => 'Timespan / skos:prefLabel',
'timespan_skos_altLabel' => 'Timespan / skos:altLabel',
'timespan_skos_note' => 'Timespan / skos:note',
'concept_skos_broader' => 'Concept / skos:broader',
'concept_skos_narrower' => 'Concept / skos:narrower',
'concept_skos_related' => 'Concept / skos:related',
'concept_skos_broadMatch' => 'Concept / skos:broadMatch',
'concept_skos_narrowMatch' => 'Concept / skos:narrowMatch',
'concept_skos_relatedMatch' => 'Concept / skos:relatedMatch',
'concept_skos_exactMatch' => 'Concept / skos:exactMatch',
'concept_skos_closeMatch' => 'Concept / skos:closeMatch',
'concept_skos_notation' => 'Concept / skos:notation',
'concept_skos_inScheme' => 'Concept / skos:inScheme',
'concept_skos_prefLabel' => 'Concept / skos:prefLabel',
'concept_skos_altLabel' => 'Concept / skos:altLabel',
'concept_skos_note' => 'Concept / skos:note',
'aggregated' => 'All fields aggregated'
];
$collectionId = $_GET['collectionId'];
if (!isset($collectionId))
$collectionId = 'all';
$field = $_GET['field'];
if (!isset($field))
$field = 'all';
$excludeZeros = in_array(0, $_GET['exclusions']);
$showNoOccurences = in_array(1, $_GET['exclusions']);
$treeMapUrl = 'plainjson2tree.php?field=' . $field
. '&excludeZeros=' . (int)$excludeZeros
. '&showNoOccurences=' . (int)$showNoOccurences
. '&collectionId=' . $collectionId
. '&version=' . $version;
$fileName = getDataDir() . '/json/' . $collectionId
. '/' . $collectionId . '.languages.json';
$languages = json_decode(file_get_contents($fileName));
include("templates/languages/languages.tpl.php");