Class StatementComparator


  • public class StatementComparator
    extends java.lang.Object
    Used to serialize trig in a both pretty (all triples in a graph grouped together) and deterministic way. This makes it easier to both determine what changed in RDF and to update only the triples that changed in expected RDF, making tests easier to maintain and PRs easier to review.
    • Field Detail

      • COMPARATOR

        public static final java.util.Comparator<Statement> COMPARATOR
    • Constructor Detail

      • StatementComparator

        public StatementComparator()
    • Method Detail

      • comparator

        public static java.util.Comparator<Statement> comparator()