Skip to content

Commit

Permalink
Remove lang-tag annotation recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Mar 18, 2024
1 parent bf0344d commit aa6a45c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/acdhOeaw/arche/lib/schema/Ontology.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,6 @@ private function loadRest(): void {
RDF::RDF_TYPE => 'type',
$nmsp . 'automatedFill' => 'automatedFill',
$nmsp . 'defaultValue' => 'defaultValue',
$nmsp . 'langTag' => 'langTag',
$nmsp . 'ordering' => 'ordering',
$nmsp . 'recommendedClass' => 'recommendedClass',
$nmsp . 'vocabs' => 'vocabs',
Expand All @@ -717,7 +716,7 @@ private function loadRest(): void {
if (!isset($objects[$sbj])) {
$objects[$sbj] = (object) ['id' => (int) substr($sbj, $baseUrlL)];
}
if (in_array($pred, ['type', 'automatedFill', 'defaultValue', 'langTag',
if (in_array($pred, ['type', 'automatedFill', 'defaultValue',
'ordering', 'vocabs', 'min', 'max'])) {
$objects[$sbj]->$pred = $obj->getValue();
} elseif ($pred === 'cardinality') {
Expand Down Expand Up @@ -830,9 +829,6 @@ private function loadPropertyCommon(PropertyDesc $prop): void {
if (!empty($prop->vocabs)) {
$prop->setOntology($this);
}
if ($prop->langTag) {
$prop->range = [RDF::RDF_LANG_STRING];
}
foreach ($prop->property as $i) {
$this->properties[(string) $i] = $prop;
}
Expand Down

0 comments on commit aa6a45c

Please sign in to comment.