...
Code Block | ||||
---|---|---|---|---|
| ||||
# first assign a profile as above activity_uri = Krikri::Activity.find(id).rdf_subject enricher = Krikri::Enricher.new(generator_uri: activity_uri, chain: enrichment_profile) # this could be improved :( # choose a small `n` as these will run sequentially enrichedagg = enricher.generator_activity.entities.take(n).each { |rec|first enricher.chain_enrichments!(rec) }agg) agg.dump :ttl # to see turtle serialized output |