def transform_deprecated_concepts(rdf, cs):
deprecated_concepts = []<EOL>for conc in rdf.subjects(RDF.type, SKOSEXT.DeprecatedConcept):<EOL><INDENT>rdf.add((conc, RDF.type, SKOS.Concept))<EOL>rdf.add((conc, OWL.deprecated, Literal("<STR_LIT:true>", datatype=XSD.boolean)))<EOL>deprecated_concepts.append(conc)<EOL><DEDENT>if len(deprecated_concepts) > <NUM_LIT:0>:<EOL><INDENT>ns = cs.replace(localname(cs), '<STR_LIT>')<EOL>dcs = create_concept_scheme(<EOL>rdf, ns, '<STR_LIT>')<EOL>logging.debug("<STR_LIT>", dcs)<EOL>for conc in deprecated_concepts:<EOL><INDENT>rdf.add((conc, SKOS.inScheme, dcs))<EOL><DEDENT><DEDENT>
Transform deprecated concepts so they are in their own concept
    scheme.