@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return $this->returnJson($ret); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param Request $request |
|
102 | + */ |
|
100 | 103 | private function constructSearchParameters($request) |
101 | 104 | { |
102 | 105 | $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true); |
@@ -112,6 +115,10 @@ discard block |
||
112 | 115 | return $parameters; |
113 | 116 | } |
114 | 117 | |
118 | + /** |
|
119 | + * @param Request $request |
|
120 | + * @param ConceptSearchParameters $parameters |
|
121 | + */ |
|
115 | 122 | private function transformSearchResults($request, $results, $parameters) |
116 | 123 | { |
117 | 124 | // before serializing to JSON, get rid of the Vocabulary object that came with each resource |
@@ -407,6 +414,10 @@ discard block |
||
407 | 414 | return $this->returnJson($ret); |
408 | 415 | } |
409 | 416 | |
417 | + /** |
|
418 | + * @param string $label |
|
419 | + * @param string $lang |
|
420 | + */ |
|
410 | 421 | private function findLookupHits($results, $label, $lang) |
411 | 422 | { |
412 | 423 | $hits = array(); |
@@ -468,6 +479,9 @@ discard block |
||
468 | 479 | return $hits; |
469 | 480 | } |
470 | 481 | |
482 | + /** |
|
483 | + * @param string $lang |
|
484 | + */ |
|
471 | 485 | private function transformLookupResults($lang, $hits) |
472 | 486 | { |
473 | 487 | if (sizeof($hits) == 0) { |
@@ -539,6 +553,9 @@ discard block |
||
539 | 553 | return $this->returnJson($ret); |
540 | 554 | } |
541 | 555 | |
556 | + /** |
|
557 | + * @param Request $request |
|
558 | + */ |
|
542 | 559 | private function redirectToVocabData($request) { |
543 | 560 | $urls = $request->getVocab()->getConfig()->getDataURLs($request->getLang()); |
544 | 561 | if (sizeof($urls) == 0) { |
@@ -554,6 +571,10 @@ discard block |
||
554 | 571 | header("Location: " . $urls[$format]); |
555 | 572 | } |
556 | 573 | |
574 | + /** |
|
575 | + * @param string $results |
|
576 | + * @param string $format |
|
577 | + */ |
|
557 | 578 | private function returnDataResults($results, $format) { |
558 | 579 | if ($format == 'application/ld+json' || $format == 'application/json') { |
559 | 580 | // further compact JSON-LD document using a context |
@@ -683,6 +704,12 @@ discard block |
||
683 | 704 | return $this->returnJson($ret); |
684 | 705 | } |
685 | 706 | |
707 | + /** |
|
708 | + * @param string $uri |
|
709 | + * @param string $lang |
|
710 | + * @param string $propname |
|
711 | + * @param string $propuri |
|
712 | + */ |
|
686 | 713 | private function transformPropertyResults($uri, $lang, $objects, $propname, $propuri) |
687 | 714 | { |
688 | 715 | $results = array(); |
@@ -698,6 +725,14 @@ discard block |
||
698 | 725 | return $ret; |
699 | 726 | } |
700 | 727 | |
728 | + /** |
|
729 | + * @param string $uri |
|
730 | + * @param string $lang |
|
731 | + * @param string $tpropname |
|
732 | + * @param string $tpropuri |
|
733 | + * @param string $dpropname |
|
734 | + * @param string $dpropuri |
|
735 | + */ |
|
701 | 736 | private function transformTransitivePropertyResults($uri, $lang, $objects, $tpropname, $tpropuri, $dpropname, $dpropuri) |
702 | 737 | { |
703 | 738 | $results = array(); |