Search in sources :

Example 6 with GraphWithPerform

use of org.apache.jena.graph.impl.GraphWithPerform in project jena by apache.

the class GraphUtil method add.

public static void add(Graph graph, Triple[] triples) {
    if (OldStyle && graph instanceof GraphWithPerform) {
        GraphWithPerform g = (GraphWithPerform) graph;
        for (Triple t : triples) g.performAdd(t);
        graph.getEventManager().notifyAddArray(graph, triples);
    } else {
        for (Triple t : triples) graph.add(t);
    }
}
Also used : GraphWithPerform(org.apache.jena.graph.impl.GraphWithPerform)

Aggregations

GraphWithPerform (org.apache.jena.graph.impl.GraphWithPerform)6 ContractTest (org.xenei.junit.contract.ContractTest)2