Package org.jrdf.util

Examples of org.jrdf.util.NodeTypeComparator


    public TupleComparator createTupleComparator() {
        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


import org.jrdf.util.NodeTypeComparator;
import org.jrdf.util.NodeTypeComparatorImpl;

public class ReverseGroundedTripleComparatorFactoryImpl implements GroundedTripleComparatorFactory {
    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

import org.jrdf.util.NodeTypeComparator;
import org.jrdf.util.NodeTypeComparatorImpl;

public class GroundedTripleComparatorFactoryImpl implements GroundedTripleComparatorFactory {
    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.util.NodeTypeComparator

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.