Class: RDF::Literal::HexBinary

Inherits:
RDF::Literal show all
Defined in:
lib/rdf/xsd/binary.rb

Overview

hexBinary represents arbitrary hex-encoded binary data. The value space of hexBinary is the set of finite-length sequences of binary octets.

Constant Summary collapse

DATATYPE =
XSD.hexBinary
GRAMMAR =
%r(\A[0-9a-fA-F]+\Z)

Instance Method Summary collapse

Instance Method Details

#canonicalize!RDF::Literal

Converts this literal into its canonical lexical representation.


23
24
25
26
# File 'lib/rdf/xsd/binary.rb', line 23

def canonicalize!
  @string = @object.downcase
  self
end