[ { "@graph" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#pubInfo" } ] } ], "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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.9.final.0" } ] }, { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#image" }, { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#text" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#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/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T16:38:02.925497" } ] } ], "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T16:38:02.925497" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#assertion", "http://www.w3.org/ns/prov#wasDerivedFrom" : [ { "@id" : "http://purl.org/np/RAc0xXxK4pAoROZNwYHNGTaf1VftwmXzfZZEQNuj06ruc" } ] }, { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMaX0e6Wh4s+QVm3Ktqp6oO9YXldQJwAnPWzobW5b8TQvBgEFIwoWzZCHbGQinVFCKLFJ3bLjMtEwl1mCcSDeGTJQv1Hf7aM9LvicLHqOZOS5nOAE/e+ibOzXnSdQV6W7ooOBY368j76WGmMocEt/3mbGkQfhbgRGlYMyHtgTQfQIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "a0iLHyXCWn7oj42NmxvIszK8FhgZgaHrqkf8g2JRKVo+xZsZ2ag9Nugipj3AYLZ4pW2x7zIUCnTXAoo62hRB53DXonNaa2WbPEKDyTnWgene5k6ZpfFYQeCALDyhpRqlZ9lVCzezputhzBEMNu7knLl55Xt0X9egeuDcu7HIdbY=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss" } ] } ], "@id" : "http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss#pubInfo" } ]