Package org.jrdf.graph.local

Examples of org.jrdf.graph.local.LocalizedBlankNodeComparatorImpl


*/
public class MemCollectionFactory implements IteratorTrackingCollectionFactory {
    private Map<Class<?>, Comparator<?>> defaultComparators = new HashMap<Class<?>, Comparator<?>>();

    public MemCollectionFactory() {
        BlankNodeComparator comparator = new LocalizedBlankNodeComparatorImpl(new LocalizedNodeComparatorImpl());
        NodeComparator nodeComparator = new ComparatorFactoryImpl().createNodeComparator();
        TripleComparator tripleComparator = new TripleComparatorImpl(nodeComparator);
        TripleComparator reverseTripleComparator = new ReverseGroundedTripleComparatorImpl(tripleComparator);
        defaultComparators.put(Triple.class, reverseTripleComparator);
        defaultComparators.put(PredicateNode.class, nodeComparator);
View Full Code Here


        return new TupleComparatorImpl(createNodeComparator(), createAttributeComparator());
    }

    public NodeComparator createNodeComparator() {
        NodeTypeComparator typeComparator = new NodeTypeComparatorImpl();
        BlankNodeComparator blankNodeComparator = new LocalizedBlankNodeComparatorImpl(
            new LocalizedNodeComparatorImpl());
        SemanticLiteralComparator literalComparator = new SemanticLiteralComparatorImpl(new LexicalComparatorImpl());
        return new NodeComparatorImpl(typeComparator, literalComparator, blankNodeComparator);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.graph.local.LocalizedBlankNodeComparatorImpl

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.