-
Notifications
You must be signed in to change notification settings - Fork 15
/
common.inc.php
90 lines (66 loc) · 3.37 KB
/
common.inc.php
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
$conf['version'] = '20130612';
$conf['output']['select'] = 'json';
$conf['output']['ask'] = 'json';
$conf['output']['describe'] = 'rdf';
$conf['endpointParams']['config']['show_inline'] = 0;
$conf['endpointParams']['config']['named_graph'] = '';
//ALternative endpoints
$conf['endpoint']['dbpedia'] = 'http://dbpedia.org/sparql';
$conf['endpoint']['data_gov'] = 'http://services.data.gov/sparql';
$conf['endpoint']['statistics_uk'] = 'http://services.data.gov.uk/statistics/sparql';
$conf['endpoint']['education_uk'] = 'http://education.data.gov.uk/sparql/education/query';
$conf['endpoint']['reference_uk'] = 'http://services.data.gov.uk/reference/sparql';
$conf['endpoint']['transport_uk'] = 'http://transport.data.gov.uk/sparql/transport/query';
$conf['endpoint']['world_bank'] = 'http://worldbank.270a.info/sparql';
$conf['metadata']['db']['location'] = 'meta/db.sqlite';
$conf['httpStatus']['directory'] = 'components/status';
include_once('namespaces.php');
$conf['model']['directory'] = 'components'; #include trailing slash!
$conf['model']['extension'] = '.model';
$conf['model']['default'] = 'rdfs:Resource';
$conf['view']['directory'] = 'components'; #include trailing slash!
$conf['view']['extension'] = '.view';
$conf['view']['default'] = 'rdfs:Resource';
$conf['static']['directory'] = 'components/static/'; #include trailing slash!
$conf['static']['haanga'] = true; //Should static files be processed by Haanga?
$conf['resource']['url_delimiter'] = "%u";
$conf['http_accept']['html'] = array('text/html');
$conf['http_accept']['rdf'] = array('application/rdf+xml');
$conf['http_accept']['ttl'] = array(
'text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle', 'application/rdf+turtle');
$conf['http_accept']['json'] = array('application/json', 'application/x-javascript', 'text/javascript', 'text/x-javascript', 'text/x-json');
$conf['http_accept']['nt'] = array('text/plain');
$conf['service']['prefix'] = 'services';
$conf['type']['prefix'] = 'types';
$conf['uri']['prefix'] = 'uris';
$conf['redirect']['prefix'] = 'redirect';
$conf['sparqlFilter']['prefix'] = 'sparqlFilter';
$conf['sparqlFilter']['filterFileName'] = 'filter.query';
//Frontpage when user goes to http://example.org/
$conf['root'] = 'index.html';
$conf['extension_connector'] = '.';
//Priority for rdfs:Resource (default). Priorities should be >=0
$conf['type']['priority']['rdfs:Resource'] = -1;
//Debug
$conf['debug'] = false;
//Session module
//First version: really simple user/pass
//$conf['session']['user'] = 'admin';
//$conf['session']['password'] = 'admin';
//Modules: LODSPeaKr will try to match the requested URI
//using the modules in the following order
$conf['modules'] = array();
$conf['modules']['directory'] = 'classes/modules/';
//$conf['modules']['available'] = array('admin', 'static','uri', 'type', 'service');
$conf['modules']['available'] = array('static','service', 'type');
//To add sparqlFilter module, copy the following line in your settings.inc.php
//$conf['modules']['available'] = array('static','uri', 'sparqlFilter', 'type', 'service');
//Uncomment next line to enable sessions
//$conf['modules']['available'] = array('session', 'static','uri', 'type', 'service');
$conf['admin']['pass'] = 'admin';
global $lodspk;
$lodspk['maxResults'] = 1000;
include_once('settings.inc.php');
$conf['view']['standard']['baseUrl'] = $conf['basedir'];
?>