[ { "@graph" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#pubinfo" } ] } ], "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#cleanText", "@type" : [ "http://dkm.fbk.eu/index.php/BPMN2_Ontology#ScriptTask", "http://edamontology.org/operation_2409", "http://purl.org/net/p-plan#Step" ], "http://purl.org/dc/terms/description" : [ { "@value" : "\nimport string\nimport re\nfrom cleantext import clean\n\ndef cleanText(text): \n s= clean(text, fix_unicode=True, to_ascii=True, lower=False, no_line_breaks=True, lang=\"en\" ) \n s= re.sub(r'\\|+', '|', s)\n s= s.replace('|', '\\r\\n')\n return s\n" } ], "http://purl.org/dc/terms/language" : [ { "@id" : "http://purl.org/plex#ComputerLanguage_Python_3.7" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#input_text" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#output" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "cleanText" } ] }, { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#input_text", "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "text" } ] } ], "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#assertion", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0001-7769-4272" }, { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38", "@type" : [ "http://purl.org/nanopub/x/ExampleNanopub" ], "http://purl.org/dc/terms/created" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2020-03-11T09:06:10.873+01:00" } ], "http://purl.org/dc/terms/creator" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#pubinfo" } ]