Example #1
0
 /**
  *
  */
 public function testShownPropertiesCustomAddTriple()
 {
     $var = new Erfurt_Sparql_Query2_Var("sp");
     $triples = array(new Erfurt_Sparql_Query2_Triple($this->_instances->getResourceVar(), new Erfurt_Sparql_Query2_IriRef('http://ex.com/'), $var));
     $r = $this->_instances->addShownPropertyCustom($triples, $var);
     //verify two triple in value query, alltriple (?resourceuri ?p ?o), filter(isuri) and the optional triple
     $triplesQuery = $this->_instances->getValueQuery()->getElements();
     $this->assertCount(1 + $this->_valueQueryDefaultTriples, $triplesQuery);
 }