@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Get the localname of a concept in the vocabulary. If the URI is not |
| 132 | 132 | * in the URI space of this vocabulary, return the full URI. |
| 133 | 133 | * |
| 134 | - * @param $uri string full URI of concept |
|
| 134 | + * @param string $uri string full URI of concept |
|
| 135 | 135 | * @return string local name of concept, or original full URI if the local name cannot be determined |
| 136 | 136 | */ |
| 137 | 137 | public function getLocalName($uri) |
@@ -303,6 +303,8 @@ discard block |
||
| 303 | 303 | |
| 304 | 304 | /** |
| 305 | 305 | * Counts the statistics of the vocabulary. |
| 306 | + * @param string $array |
|
| 307 | + * @param string $group |
|
| 306 | 308 | * @return array of the concept/group counts |
| 307 | 309 | */ |
| 308 | 310 | public function getStatistics($lang = '', $array=null, $group=null) |
@@ -342,6 +344,7 @@ discard block |
||
| 342 | 344 | /** |
| 343 | 345 | * Gets the child relations of a concept and whether these children have more children. |
| 344 | 346 | * @param string $uri |
| 347 | + * @param string $lang |
|
| 345 | 348 | */ |
| 346 | 349 | public function getConceptChildren($uri, $lang) |
| 347 | 350 | { |
@@ -450,6 +453,8 @@ discard block |
||
| 450 | 453 | /** |
| 451 | 454 | * Lists the concepts available in the concept group. |
| 452 | 455 | * @param $clname |
| 456 | + * @param string $glname |
|
| 457 | + * @param string $clang |
|
| 453 | 458 | * @return array |
| 454 | 459 | */ |
| 455 | 460 | public function listConceptGroupContents($glname, $clang) |
@@ -476,7 +481,7 @@ discard block |
||
| 476 | 481 | /** |
| 477 | 482 | * Returns the letters of the alphabet which have been used in this vocabulary. |
| 478 | 483 | * The returned letters may also include specials such as '0-9' (digits) and '!*' (special characters). |
| 479 | - * @param $clang content language |
|
| 484 | + * @param string $clang content language |
|
| 480 | 485 | * @return array array of letters |
| 481 | 486 | */ |
| 482 | 487 | public function getAlphabet($clang) |
@@ -511,6 +516,7 @@ discard block |
||
| 511 | 516 | * Also the special tokens '0-9' (digits), '!*' (special characters) and '*' |
| 512 | 517 | * (everything) are supported. |
| 513 | 518 | * @param $letter letter (or special token) to search for |
| 519 | + * @param string $clang |
|
| 514 | 520 | */ |
| 515 | 521 | public function searchConceptsAlphabetical($letter, $limit = null, $offset = null, $clang = null) |
| 516 | 522 | { |
@@ -626,6 +632,9 @@ discard block |
||
| 626 | 632 | return $this->getSparql()->queryChangeList($prop, $clang, $offset, $limit); |
| 627 | 633 | } |
| 628 | 634 | |
| 635 | + /** |
|
| 636 | + * @param string $lang |
|
| 637 | + */ |
|
| 629 | 638 | public function getTitle($lang=null) { |
| 630 | 639 | return $this->config->getTitle($lang); |
| 631 | 640 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * Returns the graph instance |
| 154 | - * @return object EasyRDF graph instance. |
|
| 154 | + * @return string|null EasyRDF graph instance. |
|
| 155 | 155 | */ |
| 156 | 156 | public function getGraph() { |
| 157 | 157 | return $this->graph; |
@@ -286,6 +286,7 @@ discard block |
||
| 286 | 286 | /** |
| 287 | 287 | * Counts the number of concepts in a easyRDF graph with a specific language. |
| 288 | 288 | * @param array $langs Languages to query for |
| 289 | + * @param string[] $classes |
|
| 289 | 290 | * @return Array containing count of concepts for each language and property. |
| 290 | 291 | */ |
| 291 | 292 | public function countLangConcepts($langs, $classes = null) { |
@@ -476,7 +477,7 @@ discard block |
||
| 476 | 477 | * Returns information (as a graph) for one or more concept URIs |
| 477 | 478 | * @param mixed $uris concept URI (string) or array of URIs |
| 478 | 479 | * @param string|null $arrayClass the URI for thesaurus array class, or null if not used |
| 479 | - * @param \Vocabulary[]|null $vocabs vocabularies to target |
|
| 480 | + * @param Vocabulary[] $vocabs vocabularies to target |
|
| 480 | 481 | * @return \EasyRdf\Graph |
| 481 | 482 | */ |
| 482 | 483 | public function queryConceptInfoGraph($uris, $arrayClass = null, $vocabs = array()) { |
@@ -492,7 +493,7 @@ discard block |
||
| 492 | 493 | |
| 493 | 494 | /** |
| 494 | 495 | * Returns information (as an array of Concept objects) for one or more concept URIs |
| 495 | - * @param mixed $uris concept URI (string) or array of URIs |
|
| 496 | + * @param string $uris concept URI (string) or array of URIs |
|
| 496 | 497 | * @param string|null $arrayClass the URI for thesaurus array class, or null if not used |
| 497 | 498 | * @param \Vocabulary[] $vocabs vocabularies to target |
| 498 | 499 | * @param string|null $clang content language |
@@ -710,7 +711,7 @@ discard block |
||
| 710 | 711 | |
| 711 | 712 | /** |
| 712 | 713 | * Generate a VALUES clause for limiting the targeted graphs. |
| 713 | - * @param Vocabulary[]|null $vocabs array of Vocabulary objects to target |
|
| 714 | + * @param Vocabulary[] $vocabs array of Vocabulary objects to target |
|
| 714 | 715 | * @return string VALUES clause, or "" if not necessary to limit |
| 715 | 716 | */ |
| 716 | 717 | protected function formatValuesGraph($vocabs) { |
@@ -892,6 +893,7 @@ discard block |
||
| 892 | 893 | * @param string $searchLang language code used for matching labels (null means any language) |
| 893 | 894 | * @param string[] $props properties to target e.g. array('skos:prefLabel','skos:altLabel') |
| 894 | 895 | * @param boolean $unique restrict results to unique concepts (default: false) |
| 896 | + * @param string $filterGraph |
|
| 895 | 897 | * @return string sparql query |
| 896 | 898 | */ |
| 897 | 899 | protected function generateConceptSearchQueryInner($term, $lang, $searchLang, $props, $unique, $filterGraph) |
@@ -1187,6 +1189,7 @@ discard block |
||
| 1187 | 1189 | /** |
| 1188 | 1190 | * Generates sparql query clauses used for creating the alphabetical index. |
| 1189 | 1191 | * @param string $letter the letter (or special class) to search for |
| 1192 | + * @param string $lang |
|
| 1190 | 1193 | * @return array of sparql query clause strings |
| 1191 | 1194 | */ |
| 1192 | 1195 | private function formatFilterConditions($letter, $lang) { |
@@ -1367,6 +1370,7 @@ discard block |
||
| 1367 | 1370 | /** |
| 1368 | 1371 | * Query for the first characters (letter or otherwise) of the labels in the particular language. |
| 1369 | 1372 | * @param string $lang language |
| 1373 | + * @param string[] $classes |
|
| 1370 | 1374 | * @return array array of characters |
| 1371 | 1375 | */ |
| 1372 | 1376 | public function queryFirstCharacters($lang, $classes = null) { |
@@ -1743,7 +1747,7 @@ discard block |
||
| 1743 | 1747 | /** |
| 1744 | 1748 | * Query a single transitive property of a concept. |
| 1745 | 1749 | * @param string $uri |
| 1746 | - * @param array $props the property/properties. |
|
| 1750 | + * @param string[] $props the property/properties. |
|
| 1747 | 1751 | * @param string $lang |
| 1748 | 1752 | * @param integer $limit |
| 1749 | 1753 | * @param boolean $anylang if you want a label even when it isn't available in the language you requested. |