Skip to content

Commit

Permalink
tests/OntologyTest.php: adjust to changes in the ACDH ontology
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Sep 26, 2024
1 parent 58234a4 commit f212064
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/OntologyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ public function testPropertyVocabularyValues(): void {
$c = $o->getClass('https://vocabs.acdh.oeaw.ac.at/schema#Collection');
$p = $c->properties['https://vocabs.acdh.oeaw.ac.at/schema#hasLicense'];
$this->assertArrayHasKey('https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0', $p->vocabularyValues, $k);
$this->assertEquals('Attribution 4.0 International (CC BY 4.0)', $p->vocabularyValues['https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0']->getLabel('en'), $k);
$this->assertEquals('Attribution 4.0 International (CC BY 4.0)', $p->vocabularyValues['https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0']->getLabel('pl', 'en'), $k);
$this->assertEquals('Namensnennung 4.0 International (CC BY 4.0)', $p->vocabularyValues['https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0']->getLabel('pl', 'de'), $k);
$this->assertEquals('CC BY 4.0', $p->vocabularyValues['https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0']->getLabel('en'), $k);
$this->assertEquals('CC BY 4.0', $p->vocabularyValues['https://vocabs.acdh.oeaw.ac.at/archelicenses/cc-by-4-0']->getLabel('pl', 'en'), $k);

$c = $o->getClass('https://vocabs.acdh.oeaw.ac.at/schema#Resource');
$p = $c->properties['https://vocabs.acdh.oeaw.ac.at/schema#hasCategory'];
Expand Down

0 comments on commit f212064

Please sign in to comment.