[ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#pubInfo", "@graph": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#assertion", "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4" } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5qs1vOATpmVyz3yKjvM8E5TfLUFPQzPgg1JKJxsNSaZAa28Jst9c+rzIOfICxuNfn/c3iG2qLur2zaKxPkAURsI9Dn2ZumFijhoFf3VpsZB3mKNhZ1kLqz/ytIQh/PUAW9c1+lTx/zQZPkHJbUgb7subzMMoJJTMWaZ+VtPrA3QIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "ZNj6qtA6x449w9hGfGfPOYHk9k2DiFcPvuUzMvQj0i4/53dT+/j4fZWnJOHTrb+QrA6Py29HRqTxtU0lNOqAle4Znd26GZYkySwow0B43VNuGRw6XWwznR7lgUphrgqG+zPrTmLyPB/+bUd/k/1TmARZXUq38eTC4CQ6gDajutY=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU" } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU", "http://purl.org/nanopub/x/introduces": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#step" } ], "http://www.w3.org/ns/prov#generatedAtTime": [ { "@value": "2021-06-14T14:54:06.640868", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0000-0000-0000" } ] } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#provenance", "@graph": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#assertion", "http://www.w3.org/ns/prov#generatedAtTime": [ { "@value": "2021-06-14T14:54:06.640868", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ] } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#Head", "@graph": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#pubInfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#assertion", "@graph": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#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/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#img", "@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": "img" } ] }, { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#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/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#step", "http://purl.org/dc/terms/description": [ { "@value": "@is_fairstep(label='Make white background of image transparent')\ndef white_to_transparency(img):\n from PIL import Image\n img = img.convert(\"RGBA\")\n data = img.getdata()\n new_data = []\n for item in data:\n if item[0] == 255 and item[1] == 255 and item[2] == 255:\n new_data.append((255, 255, 255, 0))\n else:\n new_data.append(item)\n img.putdata(new_data)\n return img\n" } ], "http://purl.org/dc/terms/language": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#img" } ], "http://purl.org/net/p-plan#hasOutputVar": [ { "@id": "http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#out1" } ], "@type": [ "http://dkm.fbk.eu/index.php/BPMN2_Ontology#ScriptTask", "http://purl.org/net/p-plan#Step" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Make white background of image transparent" } ] } ] } ]