Modified the RDFModel class such that a model can be queried