org.openrdf.model.util
Class ModelUtil

java.lang.Object
  extended by org.openrdf.model.util.ModelUtil

public class ModelUtil
extends Object

Author:
Arjohn Kampman

Constructor Summary
ModelUtil()
           
 
Method Summary
static boolean equals(Iterable<? extends Statement> model1, Iterable<? extends Statement> model2)
          Compares two models, defined by two statement collections, and returns true if they are equal.
static boolean equals(Set<? extends Statement> model1, Set<? extends Statement> model2)
          Compares two models, defined by two statement collections, and returns true if they are equal.
static boolean isSubset(Iterable<? extends Statement> model1, Iterable<? extends Statement> model2)
          Compares two models, defined by two statement collections, and returns true if the first model is a subset of the second model.
static boolean isSubset(Set<? extends Statement> model1, Set<? extends Statement> model2)
          Compares two models, defined by two statement collections, and returns true if the first model is a subset of the second model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelUtil

public ModelUtil()
Method Detail

equals

public static boolean equals(Iterable<? extends Statement> model1,
                             Iterable<? extends Statement> model2)
Compares two models, defined by two statement collections, and returns true if they are equal. Models are equal if they contain the same set of statements. Blank node IDs are not relevant for model equality, they are mapped from one model to the other by using the attached properties.


equals

public static boolean equals(Set<? extends Statement> model1,
                             Set<? extends Statement> model2)
Compares two models, defined by two statement collections, and returns true if they are equal. Models are equal if they contain the same set of statements. Blank node IDs are not relevant for model equality, they are mapped from one model to the other by using the attached properties.


isSubset

public static boolean isSubset(Iterable<? extends Statement> model1,
                               Iterable<? extends Statement> model2)
Compares two models, defined by two statement collections, and returns true if the first model is a subset of the second model.


isSubset

public static boolean isSubset(Set<? extends Statement> model1,
                               Set<? extends Statement> model2)
Compares two models, defined by two statement collections, and returns true if the first model is a subset of the second model.



Copyright © 2001-2007 Aduna. All Rights Reserved.