| @@ 298-312 (lines=15) @@ | ||
| 295 | * @return array array class URI or null |
|
| 296 | */ |
|
| 297 | ||
| 298 | public function getAdditionalSearchProperties() |
|
| 299 | { |
|
| 300 | $resources = $this->resource->allResources("skosmos:showPropertyInSearch"); |
|
| 301 | $ret = array(); |
|
| 302 | foreach ($resources as $res) { |
|
| 303 | $prop = $res->getURI(); |
|
| 304 | if (EasyRdf\RdfNamespace::shorten($prop) !== null) // shortening property labels if possible |
|
| 305 | { |
|
| 306 | $prop = EasyRdf\RdfNamespace::shorten($prop); |
|
| 307 | } |
|
| 308 | ||
| 309 | $ret[] = $prop; |
|
| 310 | } |
|
| 311 | return $ret; |
|
| 312 | } |
|
| 313 | ||
| 314 | /** |
|
| 315 | * Queries whether the property should be shown with all the label language variations. |
|
| @@ 491-505 (lines=15) @@ | ||
| 488 | * @return array array class URI or null |
|
| 489 | */ |
|
| 490 | ||
| 491 | public function getHierarchyProperty() |
|
| 492 | { |
|
| 493 | $resources = $this->resource->allResources("skosmos:hierarchyProperty"); |
|
| 494 | $ret = array(); |
|
| 495 | foreach ($resources as $res) { |
|
| 496 | $prop = $res->getURI(); |
|
| 497 | if (EasyRdf\RdfNamespace::shorten($prop) !== null) // prefixing if possible |
|
| 498 | { |
|
| 499 | $prop = EasyRdf\RdfNamespace::shorten($prop); |
|
| 500 | } |
|
| 501 | ||
| 502 | $ret[] = $prop; |
|
| 503 | } |
|
| 504 | return empty($ret) ? array('skos:broader') : $ret; |
|
| 505 | } |
|
| 506 | ||
| 507 | /** |
|
| 508 | * Returns a boolean value set in the config.ttl config. |
|