src/snac/client/openrefine/ORConstellationMapper.php
/**
     * Look up Vocabulary Term
     *
     * Looks up the vocabulary term by the string value and the type
     *
     * @param string $type The type of the term
     * @param string $term The term value to find
     * @return \snac\data\Term The first result when searching for this term
     */
Look up Vocabulary Term
Looks up the vocabulary term by the string value and the type

@param string $type The type of the term
@param string $term The term value to find
@return \snac\data\Term The first result when searching for this term
Look up Vocabulary Term Looks up the vocabulary term by the string value and the type @param string $type The type of the term @param string $term The term value to find @return \ snac \ data \ Term The first result when searching for this term
public function vocabStringLookup($type, $term) {
        if (isset($this->vocabCache[$type."|".$term]))
            return $this->vocabCache[$type."|".$term];
        $ask = [
            "command" => "vocabulary",
            "query_string" => $term,
            "type" => $type
        ];
        $response = $this->connect->query($ask);
        if (isset($response["results"]) && isset($response["results"][0])) {
            $returnTerm = new \snac\data\Term($response["results"][0]);
            $this->vocabCache[$type."|".$term] = $returnTerm;
            return $returnTerm;
        }
        return null;
    }
public function vocabStringLookup ( $ type , $ term ) { if ( isset ( $ this -> vocabCache [ $ type . " | " . $ term ] ) ) return $ this -> vocabCache [ $ type . " | " . $ term ] ; $ ask = [ " command " => " vocabulary " , " query_string " => $ term , " type " => $ type ] ; $ response = $ this -> connect -> query ( $ ask ) ; if ( isset ( $ response [ " results " ] ) && isset ( $ response [ " results " ] [ 0 ] ) ) { $ returnTerm = new \ snac \ data \ Term ( $ response [ " results " ] [ 0 ] ) ; $ this -> vocabCache [ $ type . " | " . $ term ] = $ returnTerm ; return $ returnTerm ; } return null ; }
Look up Vocabulary Term
 Looks up the vocabulary term by the string value and the type
Look up Vocabulary Term Looks up the vocabulary term by the string value and the type