Class ResultSetCompareUtils

java.lang.Object
org.aksw.jenax.arq.util.binding.ResultSetCompareUtils

public class ResultSetCompareUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.aksw.commons.collections.diff.ListDiff<org.apache.jena.sparql.engine.binding.Binding>
    compareOrdered(org.apache.jena.query.ResultSet a, org.apache.jena.query.ResultSet b)
    Traverse the resultset in order, and write out the missing items on each side: 1 2 --- a a b c d d gives: [c] [b] (1 lacks c, 2 lacks b)
    static org.aksw.commons.collections.diff.ListDiff<org.apache.jena.sparql.engine.binding.Binding>
    compareUnordered(org.apache.jena.query.ResultSet a, org.apache.jena.query.ResultSet b)
     
    static com.google.common.collect.Multiset<org.apache.jena.sparql.engine.binding.Binding>
    toMultiset(org.apache.jena.query.ResultSet rs)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResultSetCompareUtils

      public ResultSetCompareUtils()
  • Method Details

    • toMultiset

      public static com.google.common.collect.Multiset<org.apache.jena.sparql.engine.binding.Binding> toMultiset(org.apache.jena.query.ResultSet rs)
    • compareOrdered

      public static org.aksw.commons.collections.diff.ListDiff<org.apache.jena.sparql.engine.binding.Binding> compareOrdered(org.apache.jena.query.ResultSet a, org.apache.jena.query.ResultSet b)
      Traverse the resultset in order, and write out the missing items on each side: 1 2 --- a a b c d d gives: [c] [b] (1 lacks c, 2 lacks b)
      Parameters:
      a -
      b -
      Returns:
    • compareUnordered

      public static org.aksw.commons.collections.diff.ListDiff<org.apache.jena.sparql.engine.binding.Binding> compareUnordered(org.apache.jena.query.ResultSet a, org.apache.jena.query.ResultSet b)