|
@@ 1708-1710 (lines=3) @@
|
| 1705 |
|
foreach ($result as $row) { |
| 1706 |
|
if (isset($row->top) && isset($row->label)) { |
| 1707 |
|
$label = $row->label->getValue(); |
| 1708 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 1709 |
|
$label .= ' (' . $row->label->getLang() . ')'; |
| 1710 |
|
} |
| 1711 |
|
$top = array('uri' => $row->top->getUri(), 'topConceptOf' => $row->topuri->getUri(), 'label' => $label, 'hasChildren' => filter_var($row->children->getValue(), FILTER_VALIDATE_BOOLEAN)); |
| 1712 |
|
if (isset($row->notation)) { |
| 1713 |
|
$top['notation'] = $row->notation->getValue(); |
|
@@ 1832-1834 (lines=3) @@
|
| 1829 |
|
} |
| 1830 |
|
if (isset($row->label)) { |
| 1831 |
|
$preflabel = $row->label->getValue(); |
| 1832 |
|
if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) { |
| 1833 |
|
$preflabel .= ' (' . $row->label->getLang() . ')'; |
| 1834 |
|
} |
| 1835 |
|
|
| 1836 |
|
$ret[$uri]['prefLabel'] = $preflabel; |
| 1837 |
|
} |