def cleanup_properties(rdf):
for t in (RDF.Property, OWL.DatatypeProperty, OWL.ObjectProperty,<EOL>OWL.SymmetricProperty, OWL.TransitiveProperty,<EOL>OWL.InverseFunctionalProperty, OWL.FunctionalProperty):<EOL><INDENT>for prop in rdf.subjects(RDF.type, t):<EOL><INDENT>if prop.startswith(SKOS):<EOL><INDENT>logging.debug(<EOL>"<STR_LIT>", prop)<EOL>replace_subject(rdf, prop, None)<EOL>continue<EOL><DEDENT>if prop.startswith(DC):<EOL><INDENT>logging.debug("<STR_LIT>", prop)<EOL>replace_subject(rdf, prop, None)<EOL>continue<EOL><DEDENT>if len(list(rdf.subject_objects(prop))) > <NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>logging.debug("<STR_LIT>", prop)<EOL>replace_subject(rdf, prop, None)<EOL><DEDENT><DEDENT>
Remove unnecessary property definitions.

    Reemoves SKOS and DC property definitions and definitions of unused
    properties.