code: def transform_literals(rdf, literalmap):
      
  
      affected_types = (SKOS.Concept, SKOS.Collection,
                        SKOSEXT.DeprecatedConcept)
  
      props = set()
      for t in affected_types:
          for conc in rdf.subjects(RDF.type, t):
              for p, o in rdf.predicate_objects(conc):
                  if isinstance(o, Literal) \
                     and (p in literalmap or not in_general_ns(p)):
                      props.add(p)
  
      for p in props:
          if mapping_match(p, literalmap):
              newval = mapping_get(p, literalmap)
              newuris = [v[0] for v in newval]
              logging.debug("transform literal %s -> %s", p, str(newuris))
              replace_predicate(
                  rdf, p, newuris, subjecttypes=affected_types)
          else:
              logging.info("Don't know what to do with literal %s", p)
docs: Transform literal properties of Concepts, as defined by config file.