Class: LD4L::OreRDF::ResumeAggregation
- Inherits:
-
Object
- Object
- LD4L::OreRDF::ResumeAggregation
- Defined in:
- lib/ld4l/ore_rdf/services/aggregation/resume.rb
Class Method Summary collapse
-
.call(id) ⇒ Object
Resume the aggregation and all associated proxies.
Class Method Details
.call(id) ⇒ Object
Resume the aggregation and all associated proxies.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ld4l/ore_rdf/services/aggregation/resume.rb', line 11 def self.call( id ) raise ArgumentError, 'id must be a local name string, uri string, or RDF::URI' unless id && ( id.kind_of?(String) || id.kind_of?(RDF::URI) ) aggregation_resource = LD4L::OreRDF::AggregationResource.new(id) return nil unless ActiveTriples::Resource.uri_persisted?(aggregation_resource.rdf_subject) proxy_resources = LD4L::OreRDF::FindProxies.call( :aggregation => aggregation_resource, :repository => LD4L::OreRDF::ProxyResource.repository, :resume => true ) LD4L::OreRDF::Aggregation.new( :aggregation_resource => aggregation_resource, :proxy_resources => proxy_resources.values) end |