You are here

public function EasyRdf_Serialiser_JsonLd::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/JsonLd_real.php \EasyRdf_Serialiser_JsonLd::__construct()

Overrides EasyRdf_Serialiser::__construct

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/JsonLd_real.php, line 47

Class

EasyRdf_Serialiser_JsonLd
Class to serialise an EasyRdf_Graph to JSON-LD

Code

public function __construct() {
  if (!class_exists('\\ML\\JsonLD\\JsonLD')) {
    throw new LogicException('Please install "ml/json-ld" dependency to use JSON-LD serialisation');
  }
  parent::__construct();
}