Class: Qa::LinkedData::Mapper::TermResultsMapperService
- Inherits:
-
Object
- Object
- Qa::LinkedData::Mapper::TermResultsMapperService
- Defined in:
- app/services/qa/linked_data/mapper/term_results_mapper_service.rb
Class Method Summary collapse
-
.map_values(graph:, subject_uri:, prefixes: nil, ldpath_map: nil, predicate_map: nil) ⇒ Hash<Symbol><Array<Object>>
Extract predicates specified in the predicate_map from the graph and return as an array of value maps for each search result subject URI.
Class Method Details
.map_values(graph:, subject_uri:, prefixes: nil, ldpath_map: nil, predicate_map: nil) ⇒ Hash<Symbol><Array<Object>>
Extract predicates specified in the predicate_map from the graph and return as an array of value maps for each search result subject URI. If a sort key is present, a subject will only be included in the results if it has a statement with the sort predicate.
55 56 57 58 59 60 61 |
# File 'app/services/qa/linked_data/mapper/term_results_mapper_service.rb', line 55 def map_values(graph:, subject_uri:, prefixes: nil, ldpath_map: nil, predicate_map: nil) if ldpath_map.present? map_values_with_ldpath_map(graph: graph, ldpath_map: ldpath_map, prefixes: prefixes, subject_uri: subject_uri) else map_values_with_predicate_map(graph: graph, predicate_map: predicate_map, subject_uri: subject_uri) end end |