private function loadDocument($input)
    {
        if (false === is_string($input)) {
            // Return as is - it has already been parsed
            return $input;
        }

        $document = $this->documentLoader->loadDocument($input);

        return $document->document;
    }
private function loadDocument($input)
    {
        if (false === is_string($input)) {
            // Return as is - it has already been parsed
            return $input;
        }

        $document = $this->documentLoader->loadDocument($input);

        return $document->document;
    }
private function loadDocument ( $ input ) { if ( false === is_string ( $ input ) ) { // Return as is - it has already been parsed return $ input ; } $ document = $ this -> documentLoader -> loadDocument ( $ input ) ; return $ document -> document ; }
Load a JSON-LD document

The document can be supplied directly as string, by passing a file
path, or by passing a URL.

@param null|string|array|JsonObject $input The JSON-LD document or a path
or URL pointing to one.

@return mixed The loaded JSON-LD document

@throws JsonLdException
Load a JSON - LD document