| @@ 187-197 (lines=11) @@ | ||
| 184 | * not then defaulting to http://localhost:3030/ds/sparql |
|
| 185 | * @return string |
|
| 186 | */ |
|
| 187 | public function getDefaultEndpoint() |
|
| 188 | { |
|
| 189 | $endpoint = $this->resource->get('skosmos:sparqlEndpoint'); |
|
| 190 | if ($endpoint) { |
|
| 191 | return $endpoint->getUri(); |
|
| 192 | } elseif (getenv('SKOSMOS_SPARQL_ENDPOINT')) { |
|
| 193 | return getenv('SKOSMOS_SPARQL_ENDPOINT'); |
|
| 194 | } else { |
|
| 195 | return 'http://localhost:3030/ds/sparql'; |
|
| 196 | } |
|
| 197 | } |
|
| 198 | ||
| 199 | /** |
|
| 200 | * Returns the maximum number of items to return in transitive queries if defined |
|
| @@ 76-86 (lines=11) @@ | ||
| 73 | * |
|
| 74 | * @return string endpoint URL |
|
| 75 | */ |
|
| 76 | public function getSparqlEndpoint() |
|
| 77 | { |
|
| 78 | $endpoint = $this->resource->get('void:sparqlEndpoint'); |
|
| 79 | if ($endpoint) { |
|
| 80 | return $endpoint->getUri(); |
|
| 81 | } elseif (getenv('SKOSMOS_SPARQL_ENDPOINT')) { |
|
| 82 | return getenv('SKOSMOS_SPARQL_ENDPOINT'); |
|
| 83 | } else { |
|
| 84 | return 'http://localhost:3030/ds/sparql'; |
|
| 85 | } |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * Get the SPARQL graph URI for this vocabulary |
|