| @@ 206-214 (lines=9) @@ | ||
| 203 | { |
|
| 204 | $resources = $this->resource->allResources("skosmos:showPropertyInSearch"); |
|
| 205 | $ret = array(); |
|
| 206 | foreach ($resources as $res) { |
|
| 207 | $prop = $res->getURI(); |
|
| 208 | if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible |
|
| 209 | { |
|
| 210 | $prop = EasyRdf_Namespace::shorten($prop); |
|
| 211 | } |
|
| 212 | ||
| 213 | $ret[] = $prop; |
|
| 214 | } |
|
| 215 | return $ret; |
|
| 216 | } |
|
| 217 | ||
| @@ 226-237 (lines=12) @@ | ||
| 223 | public function hasMultiLingualProperty($property) |
|
| 224 | { |
|
| 225 | $resources = $this->resource->allResources("skosmos:hasMultiLingualProperty"); |
|
| 226 | foreach ($resources as $res) { |
|
| 227 | $prop = $res->getURI(); |
|
| 228 | if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible |
|
| 229 | { |
|
| 230 | $prop = EasyRdf_Namespace::shorten($prop); |
|
| 231 | } |
|
| 232 | ||
| 233 | if ($prop === $property) { |
|
| 234 | return true; |
|
| 235 | } |
|
| 236 | ||
| 237 | } |
|
| 238 | return false; |
|
| 239 | } |
|
| 240 | ||