[ { "@graph" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#pubInfo" } ] } ], "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#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/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#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/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#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/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#rate", "@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" : "rate" } ] }, { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#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='awesome step to pixelize an image, with adjustable rate')\n# Give it your own name:\ndef my_awesome_adjustable_pixelization(img, rate): \n newx = int(rate * img.size[0]) \n newy = int(rate * img.size[1])\n imgSmall = img.resize((newx,newy),resample=Image.BILINEAR)\n result = imgSmall.resize(img.size,Image.NEAREST)\n return result\n" } ], "http://purl.org/dc/terms/language" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#img" }, { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#rate" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#out1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "awesome step to pixelize an image, with adjustable rate" } ] } ], "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T14:09:55.584418" } ] } ], "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T14:09:55.584418" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#assertion", "http://www.w3.org/ns/prov#wasDerivedFrom" : [ { "@id" : "http://purl.org/np/RAc7con5Kcz5bONW-wXFbFIJ0wFNGmGnYCotXht6FQVcA" } ] }, { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDaCYguTENfhnBguOss5Ko4Se6PbZFiQobmQR6F72q2pSX6bOu5xbfYBNsFU05bN94tOpHZH6K4LNxHpzULkerkMOijLFsVE2s30zMcCE7+euQdMQ/bao3+H98791NXGPDgwVQ0lCipm5oFHteJyyjjrlzsLWqekLyFcY0hvB+8FwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "V7uYOuOmCwtjGVkM61ZpV+fERMQ8A2aBAmC0p7GzOMoWjDulQ97aqe0ovuURhsKdzHUaGYelK8hDvUifE1YHX2q4dMgVhqSXsduPe+yTcbQjo0g/+KYO4nI7IyaMLj5nG59827N4G+w4d6OGsyv4WvNPa7Of0I1gEKrP4Aru+kA=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g" } ] } ], "@id" : "http://purl.org/np/RA32mcvIT3Em64_XDtiGt5at0HXZipp95TaWeyfTCx74g#pubInfo" } ]