Example #1
0
 public function testBaseN3()
 {
     $this->_object->initializeWithFormat('ttl');
     $base1 = "http://base1.com";
     $dataString = '<http://3ba.se/conferences/> a <Ontology> ;
                                  <label> "Conference Model" ;
                                  <comment> "Demo Model about Conferences and Semantic Web People" .';
     $this->_object->parse($dataString, Erfurt_Syntax_RdfParser::LOCATOR_DATASTRING, $base1);
     $this->assertEquals($this->_object->getBaseUri(), $base1);
     $dataString = '@base <' . $base1 . '> .
         <http://3ba.se/conferences/> a <Ontology> ;
                                  <label> "Conference Model" ;
                                  <comment> "Demo Model about Conferences and Semantic Web People" .';
     $this->_object->parse($dataString, Erfurt_Syntax_RdfParser::LOCATOR_DATASTRING);
     $this->assertEquals($base1, $this->_object->getBaseUri());
 }