[ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#provenance", "@graph": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#assertion", "http://www.w3.org/ns/prov#generatedAtTime": [ { "@value": "2021-01-26T10:22:13.611703", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ] } ] }, { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#pubInfo", "@graph": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#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": "PFp+Gdk9fnmg2Me3+6m0GwFd7yEzVf/BSuTI2rb4FnGwzDmRPbvJElJAHzCM3d9HhJSV4omcuW54WEvvZ+kvSGKCAE4ijMz5bytZou+02w4mYmQ+DKSo9CTp30vBWu/GmSAdmy+TYJ+2rCH0x637jG3kyLGrtcmnSvORHoes5r0=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk" } ] }, { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk", "http://purl.org/nanopub/x/introduces": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#step" } ], "http://www.w3.org/ns/prov#generatedAtTime": [ { "@value": "2021-01-26T10:22:13.611703", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0001-7769-4272" } ] } ] }, { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#assertion", "@graph": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#step", "http://purl.org/dc/terms/description": [ { "@value": "@is_fairstep(label='Resize image')\ndef resize_image(imgStr:str) -> str: \n \"\"\"Resize the image 300x300 \"\"\"\n from PIL import Image\n image = Image.open(io.BytesIO(imgStr))\n new_image = image.resize((300, 300))\n mgOut = io.BytesIO()\n new_image.save(imgOut, format=\"png\")\n return imgOut.getvalue()" } ], "@type": [ "http://purl.org/net/p-plan#Step" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Cell from a Jupyter Lab notebook" } ] } ] }, { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#Head", "@graph": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#pubInfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]