Ontology uniquess criteria changed. Bugfixes in equals()/hashCode().
Utility functions added.