package org.studiorailgun.ai.knowledge.cleaning;

import org.studiorailgun.ai.knowledge.Node;
import org.studiorailgun.ai.linguistics.NameCollapse;

/**
 * Scans for complex relations and collapses them into richer ones that represent the same information
 * ie,
 * person(inst) <--possessionOf-- name(inst) --equals--> "John"
 * collapses to
 * person(inst) <-- nameOf -- "John"
 */
public class CollapseRelations {
    
    /**
     * Scans a node for relations to collapse
     * @param node The node to scan
     */
    public static void collapse(Node node){
        NameCollapse.collapse(node);
    }

}
