/
Working with DPLA::MAP Resources

Working with DPLA::MAP Resources

Heidrun treats each "mapped record" as an LDP RDFSource.  They are managed through DPLA::MAP::Aggregation objects which are models defined in the ActiveTriples framework.  These resources are saved in Marmotta 

Getting & Saving DPLA::MAP::Aggregations
agg = DPLA::MAP::Aggregation.new('http://ldp.dp.la/ldp/items/f2a61ed13d1b8a7e172e9aa54e932dbb')
agg.get

pp agg.to_jsonld
# {"@context"=>
#   {"aat"=>"http://vocab.getty.edu/aat/",
# ...
 
agg.class.properties.keys # => ["sourceResource", "dataProvider", "originalRecord", "hasView", "intermediateProvider", "isShownAt", "object", "preview", "provider", "rightsStatement"]
agg.sourceResource.first.class.properties.keys # => ["alternative", "collection", "contributor", "creator", "date", "description", "extent", "dcformat", "genre", "identifier", "language", "spatial", "publisher", "relation", "isReplacedBy", "replaces", "rights", "rightsHolder", "subject", "temporal", "title", "dctype"]
 
agg.sourceResource.first.title # => ["Exposition department store token."]
agg.sourceResource.first.title = 'Moomin'
agg.save 

Querying Saved Resources

 

 

Related content

LDP Interactions Overview
LDP Interactions Overview
More like this
Metadata Mapping DSL
Metadata Mapping DSL
More like this
Metadata Provenance
Metadata Provenance
More like this
Architecture
Architecture
More like this
Marmotta
Marmotta
More like this
Database export files
Database export files
More like this