def strip_variable_text(rdf_text):
replace_nid = re.compile('<STR_LIT>').sub<EOL>rdf_text = replace_nid('<STR_LIT>', rdf_text)<EOL>replace_creation = re.compile('<STR_LIT>', re.DOTALL).sub<EOL>rdf_text = replace_creation('<STR_LIT>', rdf_text)<EOL>replace_pcc = re.compile('<STR_LIT>', re.DOTALL).sub<EOL>rdf_text = replace_pcc('<STR_LIT>', rdf_text)<EOL>return rdf_text<EOL>
Return rdf_text stripped from variable parts such as rdf nodeids