Ignore:
Timestamp:
Jul 13, 2011, 1:46:00 AM (14 years ago)
Author:
cla
Message:

rdfint

  • reworked library setup for samples and unittests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/samples/sample_config.php

    r6 r27  
    55 * Author: Christian Langanke, Adrian Gschwend
    66 *
    7  * Licensed under the Apache License, Version 2.0 (the "License");
     7 * Licensed under the Apache License, Ve on 2.0 (the "License");
    88 * you may not use this file except in compliance with the License.
    99 * You may obtain a copy of the License at
     
    1818 */
    1919
    20 // ------ configure ARC2 - mandantory
    21 define( 'ARC2', getenv( 'PHP_LIBROOT_ARC2'));
    2220
    23 // ----- configure fDebug - optional
    24 // define locations of required external libraries
    25 define( 'fDebug', getenv( 'PHP_LIBROOT_FDEBUG'));
    26 if (fDebug !== '') {
     21// define base name of sample in fDebug
     22define( 'SAMPLE_NAME', 'RDFInt Sample');
    2723
    28   // define base name of sample in fDebug
    29   define( 'SAMPLE_NAME', 'RDFInt Sample');
     24// activate debug output of the library classes
     25// if not set, only the sample code itself generates debug messages
     26define( 'RDFA_DEBUGOUTPUT_CLASSES', true);
    3027
    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
    44 define( 'RDFINT', getenv( 'PHP_LIBROOT_RDFINT'));
    45 require_once( RDFINT.'/rdfa.php');
     28// activate debug output for specific RDFaLIB classes in samples and unittests
     29define( 'RDFA_DEBUGOUTPUT_READER', true);
     30define( 'RDFA_DEBUGOUTPUT_PROJECTION', true);
     31define( 'RDFA_DEBUGOUTPUT_SPARQLENDPOINT', true);
     32define( 'RDFA_DEBUGOUTPUT_SPARQLQUERY', true);
    4633
    4734?>
Note: See TracChangeset for help on using the changeset viewer.