Removed dependency to TopologyOntology (which breaks if no Postgres support compiled in).