-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSemanticExternalQueryLookup.php
More file actions
44 lines (35 loc) · 830 Bytes
/
SemanticExternalQueryLookup.php
File metadata and controls
44 lines (35 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
use SEQL\HookRegistry;
/**
* @see https://github.com/SemanticMediaWiki/SemanticExternalQueryLookup/
*
* @defgroup SEQL Semantic External Query Lookup
*/
/**
* @codeCoverageIgnore
*/
class SemanticExternalQueryLookup {
/**
* @since 1.0
*/
public static function onExtensionFunction() {
define( 'SEQL_VERSION', '1.0.0-alpha' );
class_alias( 'SEQL\ByHttpRequestQueryLookup', 'SMWExternalQueryLookup' ); // deprecated
class_alias( 'SEQL\ByHttpRequestQueryLookup', 'SMWExternalAskQueryLookup' );
$options = [
'externalRepositoryEndpoints' => $GLOBALS['seqlgExternalRepositoryEndpoints']
];
$hookRegistry = new HookRegistry(
$options
);
$hookRegistry->register();
}
/**
* @since 1.0
*
* @return string|null
*/
public static function getVersion() {
return SEQL_VERSION;
}
}