Class: JSON::LD::BlankNodeMapper
- Inherits:
-
Hash
- Object
- Hash
- JSON::LD::BlankNodeMapper
- Defined in:
- lib/json/ld/utils.rb
Overview
Utility class for mapping old blank node identifiers, or unnamed blank nodes to new identifiers
Direct Known Subclasses
Instance Method Summary collapse
-
#get_name(old = "") ⇒ String
Get a new mapped name for
old
. -
#get_sym(old = "") ⇒ String
Just return a Blank Node based on
old
.
Instance Method Details
#get_name(old = "") ⇒ String
Get a new mapped name for old
261 262 263 |
# File 'lib/json/ld/utils.rb', line 261 def get_name(old = "") "_:" + get_sym(old) end |