[ { "@graph" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#pubInfo" } ] } ], "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#imgStr", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ { "@value" : "str" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "imgStr" } ] }, { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#rotate_image-output1", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ { "@value" : "str" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "rotate_image-output1" } ] }, { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#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='Rotate image')\ndef rotate_image(imgStr:str) -> str: \n \"\"\"Rotate image\"\"\"\n image = Image.open(io.BytesIO(imgStr))\n new_image = image.transpose(Image.ROTATE_90)\n imgOut = io.BytesIO()\n new_image.save(imgOut, format=\"png\")\n return imgOut.getvalue()\n" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#imgStr" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#rotate_image-output1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Rotate image" } ] } ], "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-01-26T12:19:22.209684" } ] } ], "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-01-26T12:19:22.209684" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0001-7769-4272" } ] }, { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCOqbrPT5RmzxsvRXGHZSAXPzeRLt9ogiosL3tcPKC0g5J8B1577lnJ3oVKSfD80lgPJdr9K671RazGL/mkZ/yu/uCNqne07Q9jd6OIAEi3fldiVfGK8ZDh43rGWRuG+BlvbZ1lZRFrWsURTKTpMgh0C6vJFRIMkWH6ImbZC5JbbQIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "S+r5MKvBLZv18fc07pGIGn72CHAZLV+CZKbFb6ZFBmQnsFNA5iDt99S3+mDrtc4rj1yamc5E9uOElJ1e8qcFY9GtolMC5QNl4PpjatKgEEqtNQdjREUijyOVUWzzYmm9WP8yPIl4baNUzF9/rRK7Mgn5l/e5hEY+ClG0OWglP7g=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g" } ] } ], "@id" : "http://purl.org/np/RAoJhysI1KA311aKEpDtkX6UjRxZ-aOJKkKErf9G5MS9g#pubInfo" } ]