예제 #1
0
 def _map_omeka_item_element_dc_creator(self, object_builder, text):
     object_builder.agents.append(
         Agent.builder()
             .setName(AgentName.builder().setText(text).setType(AgentNameType.OTHER).build())
             .setRole(
                 AgentRole.builder()
                     .setText('creator')
                     .setVocabRef(
                             VocabRef.builder().setVocab(Vocab.DC).build()
                     )
                     .build()
                 )
             .build()
     )
 def _map_omeka_item_element_itm_wearer(self, object_builder, text):
     object_builder.agents.append(
         Agent.builder()
             .setName(
                 AgentName.builder()
                     .setText(text)
                     .setType(AgentNameType.PERSONAL)
                     .build()
                 )
             .setRole(
                 AgentRole.builder()
                     .setText('wearer')
                     .build()
                 )
             .build()
     )
 def _map_omeka_item_element_itm_donor(self, object_builder, text):
     object_builder.agents.append(
         Agent.builder()
             .setName(
                 AgentName.builder()
                     .setText(text)
                     .setType(AgentNameType.OTHER)
                     .build()
                 )
             .setRole(
                 AgentRole.builder()
                     .setText('donor')
                     .build()
                 )
             .build()
     )