[ { "@graph" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#pubInfo" } ] } ], "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#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.8.6.final.0" } ] }, { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#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/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#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/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#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='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/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#img" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#out1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Make white background of image transparent" } ] } ], "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-04-30T15:31:02.214322" } ] } ], "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-04-30T15:31:02.214322" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] }, { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "mnFtV5+mGlpJN7snljFpkF3wg9vurUZICdmTxX6ZDuCFLQGheBfItatEtzGXDAj9A0kMaHU6m+EnB2W7UZ6P7J0av0IZ1Dl5hPH1vPMslcjIdQXpO5d4le63cRGTJO5if0y/DJ+6v6GWfTGfDz0b02IlzyYSPqlXBEfxxbBaFEY=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4" } ] } ], "@id" : "http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#pubInfo" } ]