private function elementToRdf(JsonObject $element)
    {
        if (property_exists($element, '@value')) {
            return Value::fromJsonLd($element);
        }

        $iri = new IRI($element->{'@id'});

        return $iri->isAbsolute() ? $iri : null;
    }
private function elementToRdf(JsonObject $element)
    {
        if (property_exists($element, '@value')) {
            return Value::fromJsonLd($element);
        }

        $iri = new IRI($element->{'@id'});

        return $iri->isAbsolute() ? $iri : null;
    }
private function elementToRdf ( JsonObject $ element ) { if ( property_exists ( $ element , '@value' ) ) { return Value :: fromJsonLd ( $ element ) ; } $ iri = new IRI ( $ element -> { '@id' } ) ; return $ iri -> isAbsolute ( ) ? $ iri : null ; }
Converts a JSON-LD element to a RDF Quad object

@param JsonObject $element The element to be converted.

@return IRI|TypedValue|LanguageTagged|null The converted element to be used as Quad object.
Converts a JSON - LD element to a RDF Quad object