Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Aug 10, 2024
2 parents 4d1f123 + f54e3a1 commit 06181a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions install/4_data_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,13 @@ INSERT INTO web.hierarchy_openatlas_class (hierarchy_id, openatlas_class_name) V
INSERT INTO model.entity (name, cidoc_class_code, description, openatlas_class_name) VALUES
('GeoNames', 'E32', 'Geographical database covering all countries and many places.', 'reference_system'),
('Wikidata', 'E32', 'A free and open knowledge base and common source of open data providing persistent identifier and links to other sources.', 'reference_system'),
('GND', 'E32', 'A collection of cultural and research authority data in the German-speaking countries.', 'reference_system');
('GND', 'E32', 'GND stands for Gemeinsame Normdatei (Integrated Authority File) and offers a broad range of elements to describe authorities.', 'reference_system');

INSERT INTO web.reference_system (system, name, entity_id, resolver_url, website_url, identifier_example)
VALUES
(true, 'GeoNames', (SELECT id FROM model.entity WHERE name = 'GeoNames' AND cidoc_class_code = 'E32'), 'https://www.geonames.org/', 'https://www.geonames.org/', '1234567'),
(true, 'Wikidata', (SELECT id FROM model.entity WHERE name = 'Wikidata' AND cidoc_class_code = 'E32'), 'https://www.wikidata.org/entity/', 'https://www.wikidata.org', 'Q123'),
(true, 'GND', (SELECT id FROM model.entity WHERE name = 'GND' AND cidoc_class_code = 'E32'), 'https://lobid.org/gnd/', 'https://d-nb.info/gnd/','119338467');
(true, 'GND', (SELECT id FROM model.entity WHERE name = 'GND' AND cidoc_class_code = 'E32'), 'https://lobid.org/gnd/', 'https://d-nb.info/standards/elementset/gnd', '119338467');

INSERT INTO web.reference_system_openatlas_class (reference_system_id, openatlas_class_name) VALUES
((SELECT entity_id FROM web.reference_system WHERE name='GeoNames'), 'place'),
Expand Down
4 changes: 2 additions & 2 deletions install/upgrade/8.6.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ INSERT INTO model.entity (name, cidoc_class_code, description, openatlas_class_n
SELECT
'GND',
'E32',
'A collection of cultural and research authority data in the German-speaking countries.',
'GND stands for Gemeinsame Normdatei (Integrated Authority File) and offers a broad range of elements to describe authorities.',
'reference_system'
WHERE NOT EXISTS (
SELECT 1 FROM model.entity WHERE name='GND'
Expand All @@ -21,7 +21,7 @@ SELECT
'GND',
(SELECT id FROM model.entity WHERE name = 'GND' AND cidoc_class_code = 'E32'),
'https://lobid.org/gnd/',
'https://d-nb.info/gnd/',
'https://d-nb.info/standards/elementset/gnd',
'119338467'
WHERE NOT EXISTS (
SELECT 1 FROM web.reference_system WHERE name='GND'
Expand Down

0 comments on commit 06181a7

Please sign in to comment.