Skip to content

Commit

Permalink
composer.json: bump arche-lib to ^7
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Oct 2, 2024
1 parent ef2219e commit a8bbea4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 37 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"psr/log": "^3",
"zozlak/argparse": "^1",
"acdh-oeaw/arche-assets": "^3.8.1",
"acdh-oeaw/arche-lib": "^6",
"acdh-oeaw/arche-lib": "^7",
"acdh-oeaw/uri-normalizer": "^3",
"zozlak/logging": "^1.0"
},
Expand Down
15 changes: 0 additions & 15 deletions config-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,27 +174,12 @@ referenceSources:
maxPerLang: 1
path:
- https://d-nb.info/standards/elementset/gnd#preferredNameForTheCorporateBody
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasAlternativeTitle
action: add
type: literal
langProcess: assure
langValue: und
path:
- https://d-nb.info/standards/elementset/gnd#variantNameForTheCorporateBody
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasAddress
action: replace
type: literal
path:
- https://d-nb.info/standards/elementset/gnd#placeOfBusiness
- https://d-nb.info/standards/elementset/gnd#preferredNameForThePlaceOrGeographicName
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasCountry
action: replace
type: literal
langProcess: assure
langValue: und
path:
- https://d-nb.info/standards/elementset/gnd#geographicAreaCode
- http://www.w3.org/2004/02/skos/core#prefLabel
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasUrl
action: add
type: literal
Expand Down
12 changes: 6 additions & 6 deletions tests/CrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testGndPerson(): void {
}

public function testGndOrganisation(): void {
# $this->runTestFromData('gndOrganisation');
$this->runTestFromData('gndOrganisation');
}

public function testViaf(): void {
Expand All @@ -70,7 +70,7 @@ public function testOrcid(): void {
}

public function testGeonames(): void {
# $this->runTestFromData('geonames');
$this->runTestFromData('geonames');
}

public function testGetty(): void {
Expand Down Expand Up @@ -99,11 +99,11 @@ private function runTestFromData(string $testName): void {
}
// echo "@@@\n".\quickRdfIo\Util::serialize($mergedMeta, 'text/turtle')."\n";
// for more meaningfull failure messages let's compare differences with ''
$this->assertEquals('', RdfIoUtil::serialize($expected->copyExcept($mergedMeta), 'text/turtle'));
$this->assertEquals('', RdfIoUtil::serialize($mergedMeta->copyExcept($expected), 'text/turtle'));
$this->assertEquals('', RdfIoUtil::serialize($expected->copyExcept($mergedMeta), 'text/turtle'), 'Missing in merged metadata');
$this->assertEquals('', RdfIoUtil::serialize($mergedMeta->copyExcept($expected), 'text/turtle'), 'Additional in merged metadata');
if (isset($expectedOld)) {
$this->assertEquals('', RdfIoUtil::serialize($expectedOld->copyExcept($oldMeta), 'text/turtle'));
$this->assertEquals('', RdfIoUtil::serialize($oldMeta->copyExcept($expectedOld), 'text/turtle'));
$this->assertEquals('', RdfIoUtil::serialize($expectedOld->copyExcept($oldMeta), 'text/turtle'), 'Missing in old metadata');
$this->assertEquals('', RdfIoUtil::serialize($oldMeta->copyExcept($expectedOld), 'text/turtle'), 'Additional in old metadata');
}
}

Expand Down
4 changes: 4 additions & 0 deletions tests/data/geonames.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ referenceSources:
maxPerLang: 1
langProcess: assure
langValue: und
preferredLangs:
- en-GB
- en-US
- de-DE
path:
- http://www.geonames.org/ontology#alternateName
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasLatitude
Expand Down
15 changes: 0 additions & 15 deletions tests/data/gndOrganisation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,12 @@ referenceSources:
maxPerLang: 1
path:
- https://d-nb.info/standards/elementset/gnd#preferredNameForTheCorporateBody
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasAlternativeTitle
action: add
type: literal
langProcess: assure
langValue: und
path:
- https://d-nb.info/standards/elementset/gnd#variantNameForTheCorporateBody
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasAddress
action: replace
type: literal
path:
- https://d-nb.info/standards/elementset/gnd#placeOfBusiness
- https://d-nb.info/standards/elementset/gnd#preferredNameForThePlaceOrGeographicName
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasCountry
action: replace
type: literal
langProcess: assure
langValue: und
path:
- https://d-nb.info/standards/elementset/gnd#geographicAreaCode
- http://www.w3.org/2004/02/skos/core#prefLabel
- property: https://vocabs.acdh.oeaw.ac.at/schema#hasUrl
action: add
type: literal
Expand Down

0 comments on commit a8bbea4

Please sign in to comment.