@prefix this: . @prefix sub: . @prefix xsd: . @prefix rdfs: . @prefix dct: . @prefix prov: . @prefix np: . @prefix npx: . @prefix orcid: . @prefix bpmn: . @prefix p-plan: . @prefix edam: . @prefix plex: . sub:Head { this: np:hasAssertion sub:assertion ; np:hasProvenance sub:provenance ; np:hasPublicationInfo sub:pubinfo ; a np:Nanopublication . } sub:assertion { sub:cleanText dct:description """ import string import re from cleantext import clean def cleanText(text): s= clean(text, fix_unicode=True, to_ascii=True, lower=False, no_line_breaks=True, lang=\"en\" ) s= re.sub(r'\\|+', '|', s) s= s.replace('|', '\\r\\n') return s """ ; dct:language plex:ComputerLanguage_Python_3.7 ; p-plan:hasInputVar sub:input_text ; p-plan:hasOutputVar sub:output ; a bpmn:ScriptTask , edam:operation_2409 , p-plan:Step ; rdfs:label "cleanText" . sub:input_text rdfs:label "text" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0001-7769-4272 , orcid:0000-0002-1267-0234 . } sub:pubinfo { this: dct:created "2020-03-11T09:06:10.873+01:00"^^xsd:dateTime ; dct:creator orcid:0000-0002-1267-0234 ; a npx:ExampleNanopub . }