| @@ 230-244 (lines=15) @@ | ||
| 227 | * @return string array class URI or null |
|
| 228 | */ |
|
| 229 | ||
| 230 | public function getAdditionalSearchProperties() |
|
| 231 | { |
|
| 232 | $resources = $this->resource->allResources("skosmos:showPropertyInSearch"); |
|
| 233 | $ret = array(); |
|
| 234 | foreach ($resources as $res) { |
|
| 235 | $prop = $res->getURI(); |
|
| 236 | if (EasyRdf\RdfNamespace::shorten($prop) !== null) // shortening property labels if possible |
|
| 237 | { |
|
| 238 | $prop = EasyRdf\RdfNamespace::shorten($prop); |
|
| 239 | } |
|
| 240 | ||
| 241 | $ret[] = $prop; |
|
| 242 | } |
|
| 243 | return $ret; |
|
| 244 | } |
|
| 245 | ||
| 246 | /** |
|
| 247 | * Queries whether the property should be shown with all the label language variations. |
|
| @@ 393-407 (lines=15) @@ | ||
| 390 | * @return string array class URI or null |
|
| 391 | */ |
|
| 392 | ||
| 393 | public function getHierarchyProperty() |
|
| 394 | { |
|
| 395 | $resources = $this->resource->allResources("skosmos:hierarchyProperty"); |
|
| 396 | $ret = array(); |
|
| 397 | foreach ($resources as $res) { |
|
| 398 | $prop = $res->getURI(); |
|
| 399 | if (EasyRdf\RdfNamespace::shorten($prop) !== null) // prefixing if possible |
|
| 400 | { |
|
| 401 | $prop = EasyRdf\RdfNamespace::shorten($prop); |
|
| 402 | } |
|
| 403 | ||
| 404 | $ret[] = $prop; |
|
| 405 | } |
|
| 406 | return empty($ret) ? array('skos:broader') : $ret; |
|
| 407 | } |
|
| 408 | ||
| 409 | /** |
|
| 410 | * Returns a boolean value set in the vocabularies.ttl config. |
|