Package org.jrdf.graph

Examples of org.jrdf.graph.TripleComparator


    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);
        defaultComparators.put(BlankNode.class, comparator);
    }
View Full Code Here


import org.jrdf.query.relation.mem.ComparatorFactoryImpl;

public class TripleComparatorFactoryImpl implements TripleComparatorFactory {
    public TripleComparator newComparator() {
        NodeComparator nodeComparator = new ComparatorFactoryImpl().createNodeComparator();
        TripleComparator tripleComparator = new TripleComparatorImpl(nodeComparator);
        return new GroundedTripleComparatorImpl(tripleComparator);
    }
View Full Code Here

    public TripleComparator newComparator() {
        NodeTypeComparator typeComparator = new NodeTypeComparatorImpl();
        BlankNodeComparator blankNodeComparator = new GlobalizedBlankNodeComparatorImpl();
        SemanticLiteralComparator literalComparator = new SemanticLiteralComparatorImpl(new LexicalComparatorImpl());
        NodeComparator nodeComparator = new NodeComparatorImpl(typeComparator, literalComparator, blankNodeComparator);
        TripleComparator tripleComparator = new TripleComparatorImpl(nodeComparator);
        return new ReverseGroundedTripleComparatorImpl(tripleComparator);
    }
View Full Code Here

    public TripleComparator newComparator() {
        NodeTypeComparator typeComparator = new NodeTypeComparatorImpl();
        BlankNodeComparator blankNodeComparator = new GlobalizedBlankNodeComparatorImpl();
        SemanticLiteralComparator literalComparator = new SemanticLiteralComparatorImpl(new LexicalComparatorImpl());
        NodeComparator nodeComparator = new NodeComparatorImpl(typeComparator, literalComparator, blankNodeComparator);
        TripleComparator tripleComparator = new TripleComparatorImpl(nodeComparator);
        return new GroundedTripleComparatorImpl(tripleComparator);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.graph.TripleComparator

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.