19declare(strict_types=1);
48 $slot = SlotIdentifier::tryFrom($vocab_id);
50 return $this->controlled_repo->getVocabulary($vocab_id);
53 $from_copyright = $this->copyright_bridge->vocabulary($slot);
54 if ($from_copyright !==
null) {
55 return $from_copyright;
58 return $this->standard_repo->getVocabulary($slot);
65 SlotIdentifier ...$slots
67 foreach ($slots as $slot) {
68 $from_copyright = $this->copyright_bridge->vocabulary($slot);
69 if (!is_null($from_copyright)) {
70 yield $from_copyright;
73 yield
from $this->controlled_repo->getVocabulariesForSlots(...$slots);
74 yield
from $this->standard_repo->getVocabularies(...$slots);
81 SlotIdentifier ...$slots
83 foreach ($slots as $slot) {
84 $from_copyright = $this->copyright_bridge->vocabulary($slot);
85 if (!is_null($from_copyright) && $from_copyright->isActive()) {
86 yield $from_copyright;
89 yield
from $this->controlled_repo->getActiveVocabulariesForSlots(...$slots);
90 yield
from $this->standard_repo->getActiveVocabularies(...$slots);