Class: Qa::LinkedData::Mapper::GraphMapperService
- Inherits:
-
Object
- Object
- Qa::LinkedData::Mapper::GraphMapperService
- Defined in:
- app/services/qa/linked_data/mapper/graph_mapper_service.rb
Class Method Summary collapse
-
.map_values(graph:, predicate_map:, subject_uri:, &block) ⇒ <Hash<Symbol><Array<Object>>] mapped result values with hash of map key = array of object values for predicates identified in predicate_map.
Extract predicates specified in the predicate_map from the graph and return as a value map for a single subject URI.
Class Method Details
.map_values(graph:, predicate_map:, subject_uri:, &block) ⇒ <Hash<Symbol><Array<Object>>] mapped result values with hash of map key = array of object values for predicates identified in predicate_map.
Extract predicates specified in the predicate_map from the graph and return as a value map for a single subject URI.
25 26 27 28 |
# File 'app/services/qa/linked_data/mapper/graph_mapper_service.rb', line 25 def self.map_values(graph:, predicate_map:, subject_uri:, &block) Qa.deprecation_warning(msg: "`Qa::LinkedData::Mapper::GraphMapperService` is deprecated; update to `Qa::LinkedData::Mapper::GraphPredicateMapperService`.") Qa::LinkedData::Mapper::GraphPredicateMapperService.map_values(graph: graph, predicate_map: predicate_map, subject_uri: subject_uri, &block) end |