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 addTestData() { $this->authenticateDbUser(); $turtleString = '<http://model.org/model#i1> a <' . $this->_class . '> ; <http://www.w3.org/2000/01/rdf-schema#label> "instance1"; <http://model.org/prop> "val1", "val2" . <http://model.org/model#i2> a <' . $this->_class . '> ; <http://www.w3.org/2000/01/rdf-schema#label> "instance2" ; <http://model.org/prop> "val3" .'; $this->_store->importRdf($this->_modelUri, $turtleString, 'turtle', Erfurt_Syntax_RdfParser::LOCATOR_DATASTRING, false); }