Enrichment Profiles

List of enrichment profiles 

 

 


Revised Standard Enrichment Profile

Revised Standard Enrichment Profile
# Revised Standard Profile
enrichment_profile = {
  'Krikri::Enrichments::DedupNodes' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::SplitProvidedLabelAtDelimiter' => {
    input_fields: [{ sourceResource: :subject },
                   { sourceResource: :spatial },
                   { sourceResource: :creator }]
  },
  'Krikri::Enrichments::CreatePrefLabelFromProvided' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::SplitAtDelimiter' => {
    input_fields: [:rights,
                   { sourceResource: :identifier },
                   { sourceResource: :rights },
                   { sourceResource: :extent },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre },
                   { sourceResource: :dctype }]
  },
  'Krikri::Enrichments::StripHtml' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::StripLeadingColons' => {
    input_fields: [{ sourceResource: :title }]
  },
  'Krikri::Enrichments::StripLeadingPunctuation' => {
    input_fields: [{ sourceResource: { creator: :prefLabel } },
                   { sourceResource: { contributor: :prefLabel } },
                   { sourceResource: { publisher: :prefLabel } },
                   { sourceResource: { subject: :prefLabel } },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre }]
  },
  'Krikri::Enrichments::StripEndingPunctuation' => {
    input_fields: [{ sourceResource: :title },
                   { sourceResource: { creator: :prefLabel } },
                   { sourceResource: { contributor: :prefLabel } },
                   { sourceResource: { publisher: :prefLabel } },
                   { sourceResource: { subject: :prefLabel } },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre }]
  },
  'Krikri::Enrichments::StripWhitespace' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::ParseDate' => {
    input_fields: [{ sourceResource: { date: :begin } },
                   { sourceResource: { date: :end } }]
  },
  'Krikri::Enrichments::TimespanSplit' => {
    input_fields: [{ sourceResource: :date }]
  },
  'Krikri::Enrichments::DcmiTypeMap' => {
    input_fields: [{ sourceResource: :dctype }]
  },
  'Krikri::Enrichments::GenreFilter' => {
    input_fields: [{ sourceResource: :genre }]
  },
  'Krikri::Enrichments::LanguageToLexvo' => {
    input_fields: [{ sourceResource: :language }]
  },
  'Krikri::Enrichments::DcmiEnforcer' => {
    input_fields: [{ sourceResource: :dctype }]
  },
  'Krikri::Enrichments::TimespanLabel' => {
    input_fields: [{ sourceResource: :date }]
  },
  'Krikri::Enrichments::RemoveEmptyFields' => {
    input_fields: [:all]
  }
}

 


Standard Profile
enrichment_profile = {
  'Krikri::Enrichments::SplitAtDelimiter' => {
     input_fields: [:rights,
                    { dataProvider: :providedLabel },
                    { sourceResource: :identifier },
                    { sourceResource: :title },
                    { sourceResource: :rights },
                    { sourceResource: :extent },
                    { sourceResource: :dcformat },
                    { sourceResource: :genre },
                    { sourceResource: :dctype },
                    { sourceResource: :subject }]
  },
  'Krikri::Enrichments::StripHtml' => {
     input_fields: [:all]
  },
 'Krikri::Enrichments::StripLeadingColons' => {
    input_fields: [{sourceResource: :title}]
  },
  'Krikri::Enrichments::StripLeadingPunctuation' => {
     input_fields: [{ sourceResource: { creator: :providedLabel } },
                    { sourceResource: { contributor: :providedLabel } },
                    { sourceResource: { publisher: :providedLabel } }]
  },
  'Krikri::Enrichments::StripEndingPunctuation' => {
     input_fields: [{ sourceResource: :title },
                    { sourceResource: { creator: :providedLabel } },
                    { sourceResource: { contributor: :providedLabel } },
                    { sourceResource: { publisher: :providedLabel } }]
  },
 'Krikri::Enrichments::StripWhitespace' => {
    input_fields: [{sourceResource: :title}]
  },
 'Krikri::Enrichments::ParseDate' => {
    input_fields: [{ sourceResource: {date: :begin } },
                   { sourceResource: {date: :end } }]
  },   
 'Krikri::Enrichments::TimespanSplit' => {
    input_fields: [{ sourceResource: :date }]
  },
 'Krikri::Enrichments::DcmiTypeMap' => {
    input_fields: [{ sourceResource: :dctype }]
  },
 'Krikri::Enrichments::DcmiEnforcer' => {                                                          
    input_fields: [{ sourceResource: :dctype }]                                                   
  },
  'Krikri::Enrichments::GenreFilter' => {
    input_fields: [{ sourceResource: :genre }] 
  },
  'Krikri::Enrichments::LanguageToLexvo' => {                                                      
    input_fields: [{ sourceResource: :language }]                                                 
  },
  'Krikri::Enrichments::TimespanLabel' => {
     input_fields: [{ sourceResource: :date }]
  },
  'Krikri::Enrichments::RemoveEmptyFields' => {
     input_fields: [:all]
  }
}

Geo Enrichment Profile
# Profile for Geo Enrichments
enrichment_profile = {'Audumbla::Enrichments::CoarseGeocode' => {:input_fields=>[{:sourceResource=>:spatial}]}}                                                                     

PA Enrichment Profile
# Profile for PA
enrichment_profile = {                                                                            
  'Krikri::Enrichments::RemoveEmptyFields' => {                                                   
     input_fields: [:all]                                                                         
  },                                                                                              
  'Krikri::Enrichments::DedupNodes' => {                                                          
     input_fields: [:all]                                                                         
  },                                                                                              
  'Krikri::Enrichments::SplitProvidedLabelAtDelimiter' => {                                       
    input_fields: [{ dataProvider: :prefLabel },                                                  
                   { sourceResource: {subject: :providedLabel } },                                
                   { sourceResource: {spatial: :providedLabel } },                                
                   { sourceResource: {creator: :providedLabel } }]                                
  },                                                                                              
  'Krikri::Enrichments::CreatePrefLabelFromProvided' => {                                         
    input_fields: [:all]                                                                          
  },                                                                                              
  'Krikri::Enrichments::SplitAtDelimiter' => {                                                    
     input_fields: [:rights,                                                                      
                    { sourceResource: :identifier },                                              
                    { sourceResource: :rights },                                                  
                    { sourceResource: :extent },                                                  
                    { sourceResource: :dcformat },                                                
                    { sourceResource: :genre },                                                   
                    { sourceResource: :dctype }]                                                  
  },                                                                                              
  'Krikri::Enrichments::StripHtml' => {                                                           
     input_fields: [:all]                                                                         
  },                                                                                              
 'Krikri::Enrichments::StripLeadingColons' => {                                                   
    input_fields: [{sourceResource: :title}]                                                      
  },                                                                                   
'Krikri::Enrichments::StripLeadingPunctuation' => {                                             
     input_fields: [{ sourceResource: { creator: :prefLabel } },                                  
                    { sourceResource: { contributor: :prefLabel } },                              
                    { sourceResource: { publisher: :prefLabel } },                                
                    { sourceResource: { subject: :prefLabel } },                                  
                    { sourceResource: :dcformat },                                                
                  { sourceResource: :genre }]                                                   
  },                                                                                              
  'Krikri::Enrichments::StripEndingPunctuation' => {                                              
     input_fields: [{ sourceResource: :title },                                                   
                    { sourceResource: { creator: :prefLabel } },                                  
                    { sourceResource: { contributor: :prefLabel } },                              
                    { sourceResource: { publisher: :prefLabel } },                                
                    { sourceResource: { subject: :prefLabel } },                                  
                    { sourceResource: :dcformat },                                                
                    { sourceResource: :genre }]                                                   
  },                                                                                              
 'Krikri::Enrichments::StripWhitespace' => {                                                      
    input_fields: [:all]                                                                          
  },                                                                                              
 'Krikri::Enrichments::ParseDate' => {                                                            
    input_fields: [{ sourceResource: {date: :begin } },                                           
                   { sourceResource: {date: :end } }]                                             
  },                                                                                              
 'Krikri::Enrichments::TimespanSplit' => {                                                        
    input_fields: [{ sourceResource: :date }]                                                     
  },                                                                                              
 'Krikri::Enrichments::DcmiTypeMap' => {                                                          
    input_fields: [{ sourceResource: :dctype }]                                                   
  },
  'Krikri::Enrichments::GenreFilter' => {
    input_fields: [{ sourceResource: :genre }] 
  },
 'Krikri::Enrichments::LanguageToLexvo' => {                                                      
    input_fields: [{ sourceResource: :language }]                                                 
  },
  'Krikri::Enrichments::RemoveEmptyFields' => {                                                   
     input_fields: [:all]                                                                         
  }
}

 

Tennessee Digital Library
enrichment_profile = {
  'Krikri::Enrichments::DedupNodes' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::SplitProvidedLabelAtDelimiter' => {
    input_fields: [{ dataProvider: :prefLabel },
                   { sourceResource: { subject: :providedLabel } },
                   { sourceResource: { spatial: :providedLabel } },
                   { sourceResource: { creator: :providedLabel } }]
  },
  'Krikri::Enrichments::SplitAtDelimiter' => {
    input_fields: [:rights,
                   { sourceResource: :identifier },
                   { sourceResource: :rights },
                   { sourceResource: :extent },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre },
                   { sourceResource: :dctype },
                   { sourceResource: :subject }]
  },
  'Krikri::Enrichments::StripHtml' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::StripLeadingColons' => {
    input_fields: [{ sourceResource: :title }]
  },
  'Krikri::Enrichments::StripLeadingPunctuation' => {
    input_fields: [{ sourceResource: { creator: :prefLabel } },
                   { sourceResource: { contributor: :prefLabel } },
                   { sourceResource: { publisher: :prefLabel } },
                   { sourceResource: { subject: :prefLabel } },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre }]
  },
  'Krikri::Enrichments::StripEndingPunctuation' => {
    input_fields: [{ sourceResource: :title },
                   { sourceResource: { creator: :prefLabel } },
                   { sourceResource: { contributor: :prefLabel } },
                   { sourceResource: { publisher: :prefLabel } },
                   { sourceResource: { subject: :prefLabel } },
                   { sourceResource: :dcformat },
                   { sourceResource: :genre }]
  },
  'Krikri::Enrichments::StripWhitespace' => {
    input_fields: [:all]
  },

  'Krikri::Enrichments::ParseDate' => {
    input_fields: [{ sourceResource: { date: :begin } },
                   { sourceResource: { date: :end } },
                   { sourceResource: { temporal: :begin } },
                   { sourceResource: { temporal: :end } }]
  },
  'Krikri::Enrichments::TimespanSplit' => {
    input_fields: [{ sourceResource: :date },
                   { sourceResource: :temporal }]
  },
  'Krikri::Enrichments::TimespanLabel' => {
    input_fields: [{ sourceResource: :date }]
  },
  'Krikri::Enrichments::SplitCoordinates' => {
    input_fields: [{ sourceResource: :spatial }]
  },
  'Krikri::Enrichments::DcmiTypeMap' => {
    input_fields: [{ sourceResource: :dctype }]
  },
  'Krikri::Enrichments::GenreFilter' => {
    input_fields: [{ sourceResource: :genre }]
  },
  'Krikri::Enrichments::LanguageToLexvo' => {
    input_fields: [{ sourceResource: :language }]
  },
  'Krikri::Enrichments::WebResourceURI' => {
    input_fields: [:hasView, :isShownAt, :object, :preview]
  },
  'Krikri::Enrichments::CreatePrefLabelFromProvided' => {
    input_fields: [:all]
  },
  'Krikri::Enrichments::RemoveEmptyFields' => {
    input_fields: [:all]
  }
}

 

 

University of Washington
# UW 
enrichment_profile = {
  'RemovePlaceholder' => {
     input_fields: [{ sourceResource: :subject }]
  },
  'Krikri::Enrichments::RemoveEmptyFields' => {                                                   
     input_fields: [:all]                                                                         
  },                                                                                              
  'Krikri::Enrichments::DedupNodes' => {                                                          
     input_fields: [:all]                                                                         
  },                                                                                              
  'Krikri::Enrichments::SplitProvidedLabelAtDelimiter' => {                                       
    input_fields: [{ dataProvider: :prefLabel },                                                  
                   { sourceResource: {subject: :providedLabel } },                                
                   { sourceResource: {spatial: :providedLabel } },                                
                   { sourceResource: {creator: :providedLabel } }]                                
  },                                                                                              
  'Krikri::Enrichments::CreatePrefLabelFromProvided' => {                                         
    input_fields: [:all]                                                                          
  },                                                                                              
  'Krikri::Enrichments::SplitAtDelimiter' => {                                                    
     input_fields: [:rights,                                                                      
                    { sourceResource: :identifier },                                              
                    { sourceResource: :rights },                                                  
                    { sourceResource: :extent },                                                  
                    { sourceResource: :dcformat },                                                
                    { sourceResource: :genre },                                                   
                    { sourceResource: :dctype }]                                                  
  },                                                                                              
  'Krikri::Enrichments::StripHtml' => {                                                           
     input_fields: [:all]                                                                         
  },
  'Krikri::Enrichments::LimitCharacters' => {
    input_fields: [{sourceResource: :description}]   
  },                                                                                   
 'Krikri::Enrichments::StripLeadingColons' => {                                                   
    input_fields: [{sourceResource: :title}]                                                      
  },                                                                                   
'Krikri::Enrichments::StripLeadingPunctuation' => {                                             
     input_fields: [{ sourceResource: { creator: :prefLabel } },                                  
                    { sourceResource: { contributor: :prefLabel } },                              
                    { sourceResource: { publisher: :prefLabel } },                                
                    { sourceResource: { subject: :prefLabel } },                                  
                    { sourceResource: :dcformat },                                                
                  { sourceResource: :genre }]                                                   
  },                                                                                              
  'Krikri::Enrichments::StripEndingPunctuation' => {                                              
     input_fields: [{ sourceResource: :title },                                                   
                    { sourceResource: { creator: :prefLabel } },                                  
                    { sourceResource: { contributor: :prefLabel } },                              
                    { sourceResource: { publisher: :prefLabel } },                                
                    { sourceResource: { subject: :prefLabel } },                                  
                    { sourceResource: :dcformat },                                                
                    { sourceResource: :genre }]                                                   
  },                                                                                              
 'Krikri::Enrichments::StripWhitespace' => {                                                      
    input_fields: [:all]                                                                          
  },                                                                                              
 'Krikri::Enrichments::ParseDate' => {                                                            
    input_fields: [{ sourceResource: {date: :begin } },                                           
                   { sourceResource: {date: :end } }]                                             
  },                                                                                              
 'Krikri::Enrichments::TimespanSplit' => {                                                        
    input_fields: [{ sourceResource: :date }]                                                     
  },                                                                                              
 'Krikri::Enrichments::DcmiTypeMap' => {                                                          
    input_fields: [{ sourceResource: :dctype }]                                                   
  }, 
 'Krikri::Enrichments::DcmiEnforcer' => {                                                          
    input_fields: [{ sourceResource: :dctype }]                                                   
  }, 
 'Krikri::Enrichments::LanguageToLexvo' => {                                                      
    input_fields: [{ sourceResource: :language }]                                                 
  }                                                                                               
}