Completed
Pull Request — master (#1025)
by
unknown
02:02
created
model/sparql/GenericSparql.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.