Ejemplo n.º 1
0
 private function getRelationshipCofidence($rel_id)
 {
     $relDAO = new RelationshipDAO();
     return $relDAO->getRelationshipAverageConfidenceByRelId($rel_id);
 }
Ejemplo n.º 2
0
 /**
  * Add neo4j relationship and nodes if needed by colfusion relationship id.
  * @param [type] $rel_id colfusion relationships id.
  */
 public function addRelationshipByRelId($rel_id)
 {
     $relationshipDao = new RelationshipDAO();
     $relationship = $relationshipDao->getRelationship($rel_id);
     //var_dump($relationship);
     $confidence = $relationshipDao->getRelationshipAverageConfidenceByRelId($rel_id);
     $this->addRelationship($relationship->fromDataset->sid, $relationship->toDataset->sid, $rel_id, 1 - $confidence);
 }