move default NAMESPACE_MAPPINGS to base_constants from example_logic_tier
improve error handling if application returns bad RDF-JSON document