Skip to content

Commit

Permalink
Add support for the acdh:exampleValue annotation property
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Feb 5, 2024
1 parent f9b601d commit cd59cc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/acdhOeaw/arche/lib/schema/Ontology.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ private function loadRest(): void {
$nmsp . 'ordering' => 'ordering',
$nmsp . 'recommendedClass' => 'recommendedClass',
$nmsp . 'vocabs' => 'vocabs',
$nmsp . 'exampleValue' => 'exampleValue',
];
$term = new SearchTerm(
RDF::RDF_TYPE,
Expand Down
9 changes: 8 additions & 1 deletion src/acdhOeaw/arche/lib/schema/PropertyDesc.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ class PropertyDesc extends BaseDesc {
*/
public string $vocabs = '';

/**
*
* acdh:exampleValue annotation property values
* @var array<string, string>
*/
public array $exampleValue = [];

/**
* Array of vocabulary values fetched from vocabulary pointed by acdh:vocabs
* annotation property
Expand All @@ -130,7 +137,7 @@ public function __sleep(): array {
return [
'id', 'uri', 'label', 'comment', // BaseDesc
'property', 'type', 'domain', 'properties', 'range', 'min', 'max', 'recommendedClass', // self
'automatedFill', 'defaultValue', 'langTag', 'ordering', 'vocabs' // self
'automatedFill', 'defaultValue', 'langTag', 'ordering', 'vocabs', 'exampleValue' // self
];
}

Expand Down

0 comments on commit cd59cc9

Please sign in to comment.