@prefix dct: <http://purl.org/dc/terms/> .
@prefix orcid: <https://orcid.org/> .
@prefix this: <http://purl.org/np/RAc0xXxK4pAoROZNwYHNGTaf1VftwmXzfZZEQNuj06ruc> .
@prefix sub: <http://purl.org/np/RAc0xXxK4pAoROZNwYHNGTaf1VftwmXzfZZEQNuj06ruc#> .
@prefix schema: <https://schema.org/> .
@prefix bpmn: <http://dkm.fbk.eu/index.php/BPMN2_Ontology#> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix pplan: <http://purl.org/net/p-plan#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
sub:Head {
  this: np:hasAssertion sub:assertion ;
    np:hasProvenance sub:provenance ;
    np:hasPublicationInfo sub:pubInfo ;
    a np:Nanopublication .
}
sub:assertion {
  sub:LinguisticSystem a schema:ComputerLanguage ;
    rdfs:label "python" ;
    rdfs:seeAlso <https://www.wikidata.org/wiki/Q28865> ;
    owl:versionInfo "3.7.3.final.0" .
  sub:image a pplan:Variable ;
    rdfs:comment "None" ;
    rdfs:label "image" .
  sub:out1 a pplan:Variable ;
    rdfs:comment "None" ;
    rdfs:label "out1" .
  sub:step dct:description """@is_fairstep(label='Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )')
# Give it your own name:
def my_watermark_step(image, text): 
   
    from PIL import ImageFont
    from PIL import ImageDraw
    from PIL import Image
    watermark_image = image.copy()

    draw = ImageDraw.Draw(watermark_image)
   

    # add watermark
    draw.text((0, 0), text,
              (0, 0, 0))
   

    # add watermark
    draw.text((0, 0), text,
              (255, 255, 255))
 
   
    # new_image = ....
    return watermark_image
""" ;
    dct:language sub:LinguisticSystem ;
    pplan:hasInputVar sub:image , sub:text ;
    pplan:hasOutputVar sub:out1 ;
    a bpmn:ScriptTask , pplan:Step ;
    rdfs:label "Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )" .
  sub:text a pplan:Variable ;
    rdfs:comment "None" ;
    rdfs:label "text" .
}
sub:provenance {
  sub:assertion prov:generatedAtTime "2021-06-05T11:45:47.721578"^^xsd:dateTime .
}
sub:pubInfo {
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGXQ89NmeEvrLcV6uZBkaijkMNhGRh26GteKhoZnccayDXXk+N30C00tw/+sOFaG96L+PcpALxLRfVT4Mq8Av5IN7xhCTTutH0MHw0dz7jDwm290cqmmJ4eRxq7AOlOVlX24hMSsxszSpVBnnmdyZNVfB2kEh5KxWXIMK1VYdD8wIDAQAB" ;
    npx:hasSignature "L3OlDbpJTsfzHerTJl/pTMBzpVNSlLdeERJBeBK8FG6tA/Ku2Jy6rop4WY9OnqMrFlV3sGDeCYGhGHpOhbkm0LMsS/AtdjRVcug/b5OMDd2NzCr5zaxDDcv7spE8p7DPjMwGeWBiMnhxjM3pTS+pJ43gt63JsMQxb15xe7BdFhA=" ;
    npx:hasSignatureTarget this: .
  this: npx:introduces sub:step ;
    prov:generatedAtTime "2021-06-05T11:45:47.721578"^^xsd:dateTime ;
    prov:wasAttributedTo orcid:0000-0000-0000-0000 .
}