Method: TTL2HTML::App#shapes2labels
- Defined in:
- lib/ttl2html.rb
#shapes2labels(shapes) ⇒ Object
330 331 332 333 334 335 336 337 338 339 |
# File 'lib/ttl2html.rb', line 330 def shapes2labels(shapes) labels = {} shapes_parse(shapes) do |target_class, property| path = @data[property]["http://www.w3.org/ns/shacl#path"].first name = @data[property]["http://www.w3.org/ns/shacl#name"] labels[target_class] ||= {} labels[target_class][path] = name end labels end |