Added optional support for JSON-LD and RDF/JSON.