private function _addTestData() { $model = $this->_store->getNewModel($this->_modelUri, '', Erfurt_Store::MODEL_TYPE_OWL, false); $this->authenticateDbUser(); $turtleString = '<http://purl.org/dc/terms/title> <http://www.w3.org/2000/01/rdf-schema#label> "testABC_en"@en .' . '<http://example.org/resourceXYZ> <http://www.w3.org/2004/02/skos/core#prefLabel> "testABC_noLang" ;' . ' <http://www.w3.org/2000/01/rdf-schema#label> "testABC_de"@de .' . '<http://example.org/graph123/resourceABC> <http://www.w3.org/2000/01/rdf-schema#label> "testABC" ;' . ' <http://ns.ontowiki.net/SysOnt/Site/menuLabel> "testMenuLabel" .'; $this->_store->importRdf($this->_modelUri, $turtleString, 'turtle', Erfurt_Syntax_RdfParser::LOCATOR_DATASTRING, false); }
public function setUp() { $this->markTestNeedsDatabase(); $this->_store = $this->getStore(); $this->authenticateDbUser(); //create model $model = $this->_store->getNewModel($this->_modelUri, '', Erfurt_Store::MODEL_TYPE_OWL, false); $this->_instances = new OntoWiki_Model_Instances($this->_store, new Erfurt_Rdf_Model($this->_modelUri, null, $this->_store)); $this->addTestData(); parent::setUp(); }