protected function encodeValue($value, $propertyUri = '')
    {
        $value = $this->applyEncoder($value, $propertyUri);
        
        return is_string($value)
            ? $value
            : ((is_object($value) && $value instanceof \core_kernel_classes_Resource)
                ? $value->getUri()
                : (string) $value
        ); 
    }
protected function encodeValue($value, $propertyUri = '')
    {
        $value = $this->applyEncoder($value, $propertyUri);
        
        return is_string($value)
            ? $value
            : ((is_object($value) && $value instanceof \core_kernel_classes_Resource)
                ? $value->getUri()
                : (string) $value
        ); 
    }
protected function encodeValue ( $ value , $ propertyUri = '' ) { $ value = $ this -> applyEncoder ( $ value , $ propertyUri ) ; return is_string ( $ value ) ? $ value : ( ( is_object ( $ value ) && $ value instanceof \ core_kernel_classes_Resource ) ? $ value -> getUri ( ) : ( string ) $ value ) ; }
Encode the value in a json-ld compatible way

@param mixed $value
@param string $propertyUri (optional) The URI of the property the $value is related to.
@return string
Encode the value in a json - ld compatible way