src/snac/server/ServerExecutor.php
/**
     * Reconcile Constellation
     *
     * Given a Constellation on the input, this runs a staged Reconciliation Engine against the
     * database and returns the list of possible matches.
     *
     * @param string[] $input Input array from the Server object
     * @throws \snac\exceptions\SNACPermissionException
     * @return string[] The response to send to the client
     */
Reconcile Constellation
Given a Constellation on the input, this runs a staged Reconciliation Engine against the
database and returns the list of possible matches.

@param string[] $input Input array from the Server object
@throws \snac\exceptions\SNACPermissionException
@return string[] The response to send to the client
Reconcile Constellation Given a Constellation on the input this runs a staged Reconciliation Engine against the database and returns the list of possible matches . @param string [] $input Input array from the Server object @throws \ snac \ exceptions \ SNACPermissionException @return string [] The response to send to the client
public function reconcileConstellation(&$input) {
        $engine = new \snac\server\identityReconciliation\ReconciliationEngine();
        $engine->addStage("SameAs");
        $engine->addStage("ElasticOriginalNameEntry");
        $engine->addStage("ElasticNameOnly");
        $engine->addStage("ElasticSeventyFive");
        $engine->addStage("MultiStage", "ElasticNameOnly", "SNACDegree");
        $engine->addPostProcessingStage("OriginalLength");
        $engine->addPostProcessingStage("EntityTypeFilter");
        $constellation = new \snac\data\Constellation($input["constellation"]);
        $engine->reconcile($constellation);
        $results = array();
        foreach ($engine->getResults() as $k => $v) {
            $results[$k] = $v->toArray();
        }
        return array("reconciliation" => $results, "result" => 'success');
    }
public function reconcileConstellation ( & $ input ) { $ engine = new \ snac \ server \ identityReconciliation \ ReconciliationEngine ( ) ; $ engine -> addStage ( " SameAs " ) ; $ engine -> addStage ( " ElasticOriginalNameEntry " ) ; $ engine -> addStage ( " ElasticNameOnly " ) ; $ engine -> addStage ( " ElasticSeventyFive " ) ; $ engine -> addStage ( " MultiStage " , " ElasticNameOnly " , " SNACDegree " ) ; $ engine -> addPostProcessingStage ( " OriginalLength " ) ; $ engine -> addPostProcessingStage ( " EntityTypeFilter " ) ; $ constellation = new \ snac \ data \ Constellation ( $ input [ " constellation " ] ) ; $ engine -> reconcile ( $ constellation ) ; $ results = array ( ) ; foreach ( $ engine -> getResults ( ) as $ k => $ v ) { $ results [ $ k ] = $ v -> toArray ( ) ; } return array ( " reconciliation " => $ results , " result " => 'success' ) ; }
Reconcile Constellation
 Given a Constellation on the input, this runs a staged Reconciliation Engine against the
 database and returns the list of possible matches.
Reconcile Constellation Given a Constellation on the input this runs a staged Reconciliation Engine against the database and returns the list of possible matches .
// Add stages to run // Add post-processing stages // The original-length-difference stage skewed the results beyond recognition.  It should // be re-considered before being included in the reconciliation process.  A lighter weighting // could make it beneficial. // $engine->addPostProcessingStage("OriginalLengthDifference"); // Run the reconciliation engine against this identity // Strip the Constellations out of the results and return them