[ { "@graph" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#pubInfo" } ] } ], "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#Head" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#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/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#image", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "@value" : "float" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "image" } ] }, { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#out1", "@type" : [ "http://purl.org/net/p-plan#Variable" ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "@value" : "float" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "out1" } ] }, { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#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='Put here a name of your awesome step (include the word awesome so others will find it)')\n# Give it your own name:\ndef xiao_func1(image:float) -> float: \n from PIL import Image, ImageDraw, ImageFont\n chars = \"wow, what a beautiful image!\"\n width, height = image.size\n chars_x, chars_y = int(width/8), int(height/3)\n ttf = ImageFont.load_default()\n img_draw = ImageDraw.Draw(image)\n img_draw.text((chars_x, chars_y), chars, font=ttf, fill=(255,0,0))\n image.show()\n return img_draw\n" } ], "http://purl.org/dc/terms/language" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#LinguisticSystem" } ], "http://purl.org/net/p-plan#hasInputVar" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#image" } ], "http://purl.org/net/p-plan#hasOutputVar" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#out1" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Put here a name of your awesome step (include the word awesome so others will find it)" } ] } ], "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#assertion" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#assertion", "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T15:43:25.273828" } ] } ], "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#provenance" }, { "@graph" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E", "http://purl.org/nanopub/x/introduces" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#step" } ], "http://www.w3.org/ns/prov#generatedAtTime" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2021-06-14T15:43:25.273828" } ], "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0000-0000-0000" } ] }, { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCv0G5BIY0o0/ONHMQIggW+QXHEUcQJpY0KT8sDouETxw576phhzXtm1MjbuWmBP7kgBlbyhhObr6+/wXbtcuaUlFPupbRtArO/N3C7rhadtd5ZKqyj8Je+ku8vt7DcfR3qBWyNxSGyUrVZaWfM+r1cr6X/CaT6KQqv+D9BWpyKZwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "KAf8cC8WOEXFD7ams+hlO0+dS1pZMAFQiwDW20s6iNBIX6HVPXKz2eD+rzv6gUV5kqjJuGkMt+fZs4CRe8+IBrsVvJojUIsRGoCBEkp3uVh6lJbGBPDD4MPVJ1zYMnu4p7wDJWI8YwEQW953fXGXhm5On6bkIeJb8onAEMLTmHU=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E" } ] } ], "@id" : "http://purl.org/np/RA7lgwUbNk5EvtfE9Tbtg1oyahG8RKdOZ00NtQmEeWM7E#pubInfo" } ]