Fixed JSON-LD contexts and improved the query expansion with permissions.