source: php/trunk/samples/sample_config.php@ 10

Last change on this file since 10 was 6, checked in by cla, 14 years ago

rdfint

  • added samples
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1<?PHP
2
3/* RDFInt.php - RDF Interfaces for PHP
4 * Copyright 2011 netlabs.org
5 * Author: Christian Langanke, Adrian Gschwend
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20// ------ configure ARC2 - mandantory
21define( 'ARC2', getenv( 'PHP_LIBROOT_ARC2'));
22
23// ----- configure fDebug - optional
24// define locations of required external libraries
25define( 'fDebug', getenv( 'PHP_LIBROOT_FDEBUG'));
26if (fDebug !== '') {
27
28 // define base name of sample in fDebug
29 define( 'SAMPLE_NAME', 'RDFInt Sample');
30
31 // activate debug output of the library classes
32 // if not set, only the sample code itself generates debug messages
33 define( 'RDFA_DEBUGOUTPUT_CLASSES', true);
34
35 // activate debug output for specific RDFaLIB classes in samples and unittests
36 define( 'RDFA_DEBUGOUTPUT_READER', true);
37 define( 'RDFA_DEBUGOUTPUT_PROJECTION', true);
38 define( 'RDFA_DEBUGOUTPUT_SPARQLENDPOINT', true);
39 define( 'RDFA_DEBUGOUTPUT_SPARQLQUERY', true);
40}
41
42// define location of rdfint
43// TODO - replace with autoload code
44define( 'RDFINT', getenv( 'PHP_LIBROOT_RDFINT'));
45require_once( RDFINT.'/rdfa.php');
46
47?>
Note: See TracBrowser for help on using the repository browser.