Package com.google.refine.freebase.protograph

Examples of com.google.refine.freebase.protograph.NodeWithLinks


            context.transposedNodes.clear();
            context.transposedNodes.addAll(tnodes);
        }
       
        if (node instanceof NodeWithLinks) {
            NodeWithLinks node2 = (NodeWithLinks) node;
            int linkCount = node2.getLinkCount();
           
            for (int i = 0; i < linkCount; i++) {
                Link link2 = node2.getLink(i);
                if (link2.condition == null || link2.condition.test(project, rowIndex, row)) {
                    descend(
                        project,
                        protograph,
                        nodeFactory,
View Full Code Here


            this.parent = parent;
            this.link = link;
            this.limit = limit;
           
            if (node instanceof NodeWithLinks) {
                NodeWithLinks node2 = (NodeWithLinks) node;
               
                int subContextCount = node2.getLinkCount();
               
                subContexts = new LinkedList<Context>();
                for (int i = 0; i < subContextCount; i++) {
                    Link link2 = node2.getLink(i);
                    subContexts.add(
                        new Context(link2.getTarget(), this, link2, -1));
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.google.refine.freebase.protograph.NodeWithLinks

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.