Class: RDF::Literal
- Inherits:
-
Object
- Object
- RDF::Literal
- Defined in:
- lib/rdf/bert/extensions/rdf.rb
Overview
Extensions for RDF literals.
Defined Under Namespace
Classes: Boolean, Double, Integer
Instance Method Summary (collapse)
Instance Method Details
- (Object) to_bert
66 67 68 69 70 71 72 |
# File 'lib/rdf/bert/extensions/rdf.rb', line 66 def to_bert case when plain? then BERT::Tuple[:"', to_s] when language? then BERT::Tuple[:@', to_s, language.to_sym] when datatype? then BERT::Tuple[:^', to_s, datatype.to_s] end end |