@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param string $query |
67 | 67 | * @return string |
68 | - */ |
|
68 | + */ |
|
69 | 69 | protected function generateQueryPrefixes($query) |
70 | 70 | { |
71 | 71 | // Check for undefined prefixes |
@@ -233,9 +233,9 @@ discard block |
||
233 | 233 | $gcl = $this->graphClause; |
234 | 234 | $classes = ($classes) ? $classes : array('http://www.w3.org/2004/02/skos/core#Concept'); |
235 | 235 | |
236 | - $quote_string = function($val) { return "'$val'"; }; |
|
237 | - $quoted_values = array_map($quote_string, $langs); |
|
238 | - $langFilter = "FILTER(?lang IN (" . implode(',', $quoted_values) . "))"; |
|
236 | + $quote_string = function($val) { return "'$val'"; }; |
|
237 | + $quoted_values = array_map($quote_string, $langs); |
|
238 | + $langFilter = "FILTER(?lang IN (" . implode(',', $quoted_values) . "))"; |
|
239 | 239 | |
240 | 240 | $values = $this->formatValues('?type', $classes, 'uri'); |
241 | 241 | $valuesProp = $this->formatValues('?prop', $props, null); |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | return $query; |
963 | 963 | } |
964 | 964 | /** |
965 | - * This function can be overwritten in other SPARQL dialects for the possibility of handling the different language clauses |
|
965 | + * This function can be overwritten in other SPARQL dialects for the possibility of handling the different language clauses |
|
966 | 966 | * @param string $lang |
967 | 967 | * @return string formatted language clause |
968 | 968 | */ |
@@ -1911,7 +1911,7 @@ discard block |
||
1911 | 1911 | |
1912 | 1912 | /** |
1913 | 1913 | * Generates a sparql query for finding the hierarchy for a concept. |
1914 | - * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal. |
|
1914 | + * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal. |
|
1915 | 1915 | * @param string $uri concept uri. |
1916 | 1916 | * @param string $lang |
1917 | 1917 | * @param string $fallback language to use if label is not available in the preferred language |
@@ -1988,10 +1988,10 @@ discard block |
||
1988 | 1988 | $ret[$uri]['exact'] = $row->exact->getUri(); |
1989 | 1989 | } |
1990 | 1990 | if (isset($row->tops)) { |
1991 | - $topConceptsList=explode(" ", $row->tops->getValue()); |
|
1992 | - // sort to guarantee an alphabetical ordering of the URI |
|
1993 | - sort($topConceptsList); |
|
1994 | - $ret[$uri]['tops'] = $topConceptsList; |
|
1991 | + $topConceptsList=explode(" ", $row->tops->getValue()); |
|
1992 | + // sort to guarantee an alphabetical ordering of the URI |
|
1993 | + sort($topConceptsList); |
|
1994 | + $ret[$uri]['tops'] = $topConceptsList; |
|
1995 | 1995 | } |
1996 | 1996 | if (isset($row->children)) { |
1997 | 1997 | if (!isset($ret[$uri]['narrower'])) { |
@@ -7,12 +7,12 @@ |
||
7 | 7 | abstract class BaseConfig extends DataObject |
8 | 8 | { |
9 | 9 | |
10 | - /** |
|
11 | - * Returns a boolean value based on a literal value from the config.ttl configuration. |
|
12 | - * @param string $property the property to query |
|
13 | - * @param boolean $default the default value if the value is not set in configuration |
|
14 | - * @return boolean the boolean value for the given property, or the default value if not found |
|
15 | - */ |
|
10 | + /** |
|
11 | + * Returns a boolean value based on a literal value from the config.ttl configuration. |
|
12 | + * @param string $property the property to query |
|
13 | + * @param boolean $default the default value if the value is not set in configuration |
|
14 | + * @return boolean the boolean value for the given property, or the default value if not found |
|
15 | + */ |
|
16 | 16 | protected function getBoolean($property, $default = false) |
17 | 17 | { |
18 | 18 | $val = $this->getResource()->getLiteral($property); |