[ { "@graph" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#pubInfo" } ] } ], "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#LinguisticSystem", "@type" : [ "https://schema.org/ComputerLanguage" ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "python" } ], "http://www.w3.org/2000/01/rdf-schema#seeAlso" : [ { "@id" : "https://www.wikidata.org/wiki/Q28865" } ], "http://www.w3.org/2002/07/owl#versionInfo" : [ { "@value" : "3.7.3.final.0" } ] }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#image", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "@value" : "None" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "image" } ] }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#out1", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "@value" : "None" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "out1" } ] }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#step", "@type" : [ "http://dkm.fbk.eu/index.php/BPMN2_Ontology#ScriptTask", "http://purl.org/net/p-plan#Step" ], "http://purl.org/dc/terms/description" : [ { "@value" : "@is_fairstep(label='Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )')\n# Give it your own name:\ndef my_watermark_step(image, text): \n \n from PIL import ImageFont\n from PIL import ImageDraw\n from PIL import Image\n watermark_image = image.copy()\n\n draw = ImageDraw.Draw(watermark_image)\n \n\n # add watermark\n draw.text((0, 0), text, \n (0, 0, 0))\n \n\n # add watermark\n draw.text((0, 0), text, \n (255, 255, 255))\n \n \n # new_image = ....\n return watermark_image\n" } ], "http://purl.org/dc/terms/language" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#image" }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#text" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#out1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )" } ] }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#text", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "@value" : "None" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "text" } ] } ], "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-05T12:02:16.356954" } ] } ], "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-05T12:02:16.356954" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGXQ89NmeEvrLcV6uZBkaijkMNhGRh26GteKhoZnccayDXXk+N30C00tw/+sOFaG96L+PcpALxLRfVT4Mq8Av5IN7xhCTTutH0MHw0dz7jDwm290cqmmJ4eRxq7AOlOVlX24hMSsxszSpVBnnmdyZNVfB2kEh5KxWXIMK1VYdD8wIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "FQJglqYAZXtlUo7Pev0i6K4nTkaOeNrxZIl519HoxP3pCXJp3lrlvmLbnTV/D1Jjdfd6pGyEtJH86CqVXK4KHOv7em0CctNCYC29LzL+JDQHiibg/3cbbYl1O1fUDoF+c6xsBkqKV6a/GAIRfp1r4n8Xl+Npi4UvHN+vVqqYonE=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg" } ] } ], "@id" : "http://purl.org/np/RAB6cEwgdhnYQcQTe1zInRGx35zgXbjhpD5mZS-pWIsGg#pubInfo" } ]