[ { "@graph" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#pubInfo" } ] } ], "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#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/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#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/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#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='Rotating an image represented as a string by 180 degrees')\ndef rotate_image(imgstr:str) -> str:\n imgIn = Image.open(io.BytesIO(imgstr))\n imgOut = imgIn.transpose(Image.ROTATE_180)\n imgOutStr = io.BytesIO()\n imgOut.save(imgOutStr, format=\"png\")\n return imgOutStr.getvalue()\n" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#imgstr" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#rotate_image-output1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Rotating an image represented as a string by 180 degrees" } ] } ], "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-01-26T10:20:33.267939" } ] } ], "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-01-26T10:20:33.267939" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] }, { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#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" : "DmYmfaOwgEGQnEJlw+XStaZIKlnv7u0uMMz9BALe+OS5gpBoSDnx9PioeOzFy4vW7cPY+fyju8SvQeQu8L602JOYcmzNcTIt6j+dJKDlIVpwOVnyBS+/z40mgqTQ0d+O5o4Bd1sLcD4B2O60GujLEx8ZQ8isPDAyJDK/hpDnAF0=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo" } ] } ], "@id" : "http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#pubInfo" } ]