Allow querying for the existence of a property

This was needed to allow a query in RDF for documents with or without properties and to translate that to a query in MongoDB