Package org.jrdf.graph

Examples of org.jrdf.graph.TripleFactory.addTriple()


    public void addPerformance(int numberOfNodes, Graph graph, GraphPerformance performance) throws GraphException {
        long startTime = System.currentTimeMillis();
        for (int i = 0; i < numberOfNodes; i++) {
            for (int j = 0; j < numberOfPredicates; j++) {
                TripleFactory tripleFactory = graph.getTripleFactory();
                tripleFactory.addTriple(URI.create(subjectPrefix + i), URI.create(predicatePrefix + j),
                    URI.create(objectPrefix + j));
            }
        }
        performance.outputResult(graph, startTime, "Testing Add Performance:");
    }
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.