Пример #1
0
 public function testGetResqueServer()
 {
     \Tripod\Mongo\Config::setValidationLevel(\Tripod\Mongo\Config::VALIDATE_MAX);
     if (!getenv(MONGO_TRIPOD_RESQUE_SERVER)) {
         putenv(MONGO_TRIPOD_RESQUE_SERVER . "=localhost:6379");
     }
     $this->assertEquals(getenv(MONGO_TRIPOD_RESQUE_SERVER), \Tripod\Mongo\Config::getResqueServer());
 }
Пример #2
0
require_once TRIPOD_DIR . 'mongo/delegates/Views.class.php';
require_once TRIPOD_DIR . 'mongo/delegates/Tables.class.php';
require_once TRIPOD_DIR . 'mongo/delegates/SearchIndexer.class.php';
require_once TRIPOD_DIR . 'IEventHook.php';
require_once TRIPOD_DIR . 'IDriver.php';
require_once TRIPOD_DIR . 'classes/ChangeSet.class.php';
require_once TRIPOD_DIR . 'classes/Labeller.class.php';
require_once TRIPOD_DIR . '/mongo/Driver.class.php';
require_once TRIPOD_DIR . '/mongo/base/JobBase.class.php';
require_once TRIPOD_DIR . '/mongo/jobs/DiscoverImpactedSubjects.class.php';
require_once TRIPOD_DIR . '/mongo/jobs/ApplyOperation.class.php';
require_once TRIPOD_DIR . '/mongo/util/IndexUtils.class.php';
require_once TRIPOD_DIR . '/mongo/util/TriplesUtil.class.php';
require_once TRIPOD_DIR . '/mongo/util/DateUtil.class.php';
require_once TRIPOD_DIR . '/mongo/serializers/NQuadSerializer.class.php';
\Resque::setBackend(\Tripod\Mongo\Config::getResqueServer());
define('RDF_TYPE', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type');
define('RDF_SUBJECT', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject');
define('RDF_PREDICATE', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate');
define('RDF_OBJECT', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object');
define('RDF_STATEMENT', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement');
define('RDF_FIRST', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#first');
define('RDF_REST', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest');
define('RDF_NIL', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil');
define('RDF_LIST', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#List');
define('RDF_VALUE', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value');
define('RDF_', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#_');
define('RDF_PROPERTY', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property');
define('RDF_XMLLITERAL', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral');
define('RDFS_LABEL', 'http://www.w3.org/2000/01/rdf-schema#label');
define('RDFS_COMMENT', 'http://www.w3.org/2000/01/rdf-schema#comment');