@prefix this: <http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38> .
@prefix sub: <http://purl.org/np/RAwE920by4-7ZrpVziYs7auc_-tLDV8frasalysx56_38#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix orcid: <https://orcid.org/> .
@prefix bpmn: <http://dkm.fbk.eu/index.php/BPMN2_Ontology#> .
@prefix p-plan: <http://purl.org/net/p-plan#> .
@prefix edam: <http://edamontology.org/> .
@prefix plex: <http://purl.org/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 .
}