Package org.jrdf.graph.global

Examples of org.jrdf.graph.global.GroundedTripleComparatorFactoryImpl


        for (int i = 0; i < NUMBER_OF_MOLECULES; i++) {
            addChain("urn:foo");
        }
        System.out.println("Graph size = " + graph.getNumberOfTriples());
        MoleculeHeadTripleComparatorImpl tripleComparator = new MoleculeHeadTripleComparatorImpl(
            new GroundedTripleComparatorFactoryImpl().newComparator());
        Set<Molecule> results = new TreeSet<Molecule>(tripleComparator);
        long startTime = System.currentTimeMillis();
        Set<Molecule> moleculeSet = decomposer.decompose(graph);
        Molecule[] molecules = moleculeSet.toArray(new Molecule[moleculeSet.size()]);
        results.add(molecules[0]);
View Full Code Here

TOP

Related Classes of org.jrdf.graph.global.GroundedTripleComparatorFactoryImpl

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.