Examples of addEdges()


Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

        final TableProtoEdge edge1 = new TableProtoEdge(1, "HAS_COMPONENT", 2);
        tbl.addEdges(0, edge1);

        // for statement 1, add the same edge
        final TableProtoEdge edge2 = new TableProtoEdge(1, "HAS_COMPONENT", 2);
        tbl.addEdges(1, edge2);

        // we should have two statements (0 and 1)
        assertThat(tbl.getStatementEdges().size(), is(2));

        // we should have two edges (0 and 1)
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

        // add object as term and proto node
        final Term object = stmt.getObject().getTerm();
        final Integer objectIndex = createNode(object, supporting, pn, pnb);

        final ProtoEdgeTable pet = pn.getProtoEdgeTable();
        pet.addEdges(supporting, new ProtoEdgeTable.TableProtoEdge(sourceIndex,
                stmt.getRelationshipType().getDisplayValue(), objectIndex));
    }
}
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

            remappedEdges[i++] = new TableProtoEdge(newSource, edge.getRel(),
                    newTarget);
        }
        ProtoEdgeTable edgeTable = protoNetwork1.getProtoEdgeTable();
        edgeTable.addEdges(newStatementIndex, remappedEdges);
    }

    /**
     * Merge the term into the first {@link ProtoNetwork}
     * <tt>protoNetwork1</tt>.
 
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    //("XML->String");
   
    BoostFunction root = FunctionFactory.identity();
    BoostFunction xmlToSource = new XMLFunctions(XMLFunctions.Operation.toSource)
   
    graph.addEdges(root, xmlToSource);

    BoostFunction outputStream = new FunctionByTransformer( new TransformerWithInstanceCreation<Object, ByteArrayOutputStream>(ByteArrayOutputStream.class));
    graph.addEdges(root, outputStream);
   
    BoostFunction encoding = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("encoding",xmlResultEncoding));
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    BoostFunction xmlToSource = new XMLFunctions(XMLFunctions.Operation.toSource)
   
    graph.addEdges(root, xmlToSource);

    BoostFunction outputStream = new FunctionByTransformer( new TransformerWithInstanceCreation<Object, ByteArrayOutputStream>(ByteArrayOutputStream.class));
    graph.addEdges(root, outputStream);
   
    BoostFunction encoding = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("encoding",xmlResultEncoding));
    graph.addEdges(root, encoding);

    BoostFunction omitProcessingInstruction = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("omit processing instruction", ! displayXMLDeclaration));
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    BoostFunction outputStream = new FunctionByTransformer( new TransformerWithInstanceCreation<Object, ByteArrayOutputStream>(ByteArrayOutputStream.class));
    graph.addEdges(root, outputStream);
   
    BoostFunction encoding = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("encoding",xmlResultEncoding));
    graph.addEdges(root, encoding);

    BoostFunction omitProcessingInstruction = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("omit processing instruction", ! displayXMLDeclaration));
    graph.addEdges(root, omitProcessingInstruction);
   
    BoostFunction writer = new FunctionByTransformer( new SourceToOutputStreamWriter());
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

   
    BoostFunction encoding = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("encoding",xmlResultEncoding));
    graph.addEdges(root, encoding);

    BoostFunction omitProcessingInstruction = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("omit processing instruction", ! displayXMLDeclaration));
    graph.addEdges(root, omitProcessingInstruction);
   
    BoostFunction writer = new FunctionByTransformer( new SourceToOutputStreamWriter());
    graph.addEdges( xmlToSource, writer);
    graph.addEdges( outputStream, writer);
    graph.addEdges( encoding, writer);
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    BoostFunction omitProcessingInstruction = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("omit processing instruction", ! displayXMLDeclaration));
    graph.addEdges(root, omitProcessingInstruction);
   
    BoostFunction writer = new FunctionByTransformer( new SourceToOutputStreamWriter());
    graph.addEdges( xmlToSource, writer);
    graph.addEdges( outputStream, writer);
    graph.addEdges( encoding, writer);
    graph.addEdges( omitProcessingInstruction, writer);

    BoostFunction toByteArray = new CollectionFunctions(CollectionFunctions.Operation.toByteArray);
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    BoostFunction omitProcessingInstruction = new FunctionByTransformer( TransformerBoostUtils.createConstantTransformer("omit processing instruction", ! displayXMLDeclaration));
    graph.addEdges(root, omitProcessingInstruction);
   
    BoostFunction writer = new FunctionByTransformer( new SourceToOutputStreamWriter());
    graph.addEdges( xmlToSource, writer);
    graph.addEdges( outputStream, writer);
    graph.addEdges( encoding, writer);
    graph.addEdges( omitProcessingInstruction, writer);

    BoostFunction toByteArray = new CollectionFunctions(CollectionFunctions.Operation.toByteArray);
    graph.addEdges( writer, toByteArray);
View Full Code Here

Examples of project.gluebooster.math.functions.DefaultGraphForFunctionByEventsourceGraph.addEdges()

    graph.addEdges(root, omitProcessingInstruction);
   
    BoostFunction writer = new FunctionByTransformer( new SourceToOutputStreamWriter());
    graph.addEdges( xmlToSource, writer);
    graph.addEdges( outputStream, writer);
    graph.addEdges( encoding, writer);
    graph.addEdges( omitProcessingInstruction, writer);

    BoostFunction toByteArray = new CollectionFunctions(CollectionFunctions.Operation.toByteArray);
    graph.addEdges( writer, toByteArray);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.