|
@@ 255-263 (lines=9) @@
|
| 252 |
|
$vocabs[] = $this->getVocabulary($vocid); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
if (sizeof($vocids) == 1) { // search within vocabulary |
| 256 |
|
$voc = $vocabs[0]; |
| 257 |
|
$sparql = $voc->getSparql(); |
| 258 |
|
$arrayClass = $voc->getConfig()->getArrayClassURI(); |
| 259 |
|
} else { // multi-vocabulary or global search |
| 260 |
|
$voc = null; |
| 261 |
|
$arrayClass = null; |
| 262 |
|
$sparql = $this->getDefaultSparql(); |
| 263 |
|
} |
| 264 |
|
if ($type === null) { |
| 265 |
|
$type = array('skos:Concept'); |
| 266 |
|
} |
|
@@ 336-343 (lines=8) @@
|
| 333 |
|
$vocabs[] = $hit['voc']; |
| 334 |
|
$uris[] = $hit['uri']; |
| 335 |
|
} |
| 336 |
|
if (sizeof($uniqueVocabs) == 1) { |
| 337 |
|
$voc = $vocabs[0]; |
| 338 |
|
$sparql = $voc->getSparql(); |
| 339 |
|
$arrayClass = $voc->getConfig()->getArrayClassURI(); |
| 340 |
|
} else { |
| 341 |
|
$arrayClass = null; |
| 342 |
|
$sparql = $this->getDefaultSparql(); |
| 343 |
|
} |
| 344 |
|
$ret = $sparql->queryConceptInfo($uris, $arrayClass, $vocabs, null, $search_lang); |
| 345 |
|
|
| 346 |
|
// For marking that the concept has been found through an alternative label, hidden |