@prefix dct: .
@prefix orcid: .
@prefix this: .
@prefix sub: .
@prefix schema: .
@prefix bpmn: .
@prefix np: .
@prefix owl: .
@prefix npx: .
@prefix pplan: .
@prefix xsd: .
@prefix rdfs: .
@prefix prov: .
sub:Head {
this: np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubInfo;
a np:Nanopublication .
}
sub:assertion {
sub:LinguisticSystem a schema:ComputerLanguage;
rdfs:label "python";
rdfs:seeAlso ;
owl:versionInfo "3.7.9.final.0" .
sub:image a pplan:Variable;
rdfs:comment "float";
rdfs:label "image" .
sub:out1 a pplan:Variable;
rdfs:comment "float";
rdfs:label "out1" .
sub:step dct:description """@is_fairstep(label='Put here a name of your awesome step (include the word awesome so others will find it)')
# Give it your own name:
def xiao_func1(image:float) -> float:
from PIL import Image, ImageDraw, ImageFont
chars = \"wow, what a beautiful image!\"
width, height = image.size
chars_x, chars_y = int(width/8), int(height/3)
ttf = ImageFont.load_default()
img_draw = ImageDraw.Draw(image)
img_draw.text((chars_x, chars_y), chars, font=ttf, fill=(255,0,0))
image.show()
return img_draw
""";
dct:language sub:LinguisticSystem;
pplan:hasInputVar sub:image;
pplan:hasOutputVar sub:out1;
a bpmn:ScriptTask, pplan:Step;
rdfs:label "Put here a name of your awesome step (include the word awesome so others will find it)" .
}
sub:provenance {
sub:assertion prov:generatedAtTime "2021-06-14T15:43:25.273828"^^xsd:dateTime .
}
sub:pubInfo {
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCv0G5BIY0o0/ONHMQIggW+QXHEUcQJpY0KT8sDouETxw576phhzXtm1MjbuWmBP7kgBlbyhhObr6+/wXbtcuaUlFPupbRtArO/N3C7rhadtd5ZKqyj8Je+ku8vt7DcfR3qBWyNxSGyUrVZaWfM+r1cr6X/CaT6KQqv+D9BWpyKZwIDAQAB";
npx:hasSignature "KAf8cC8WOEXFD7ams+hlO0+dS1pZMAFQiwDW20s6iNBIX6HVPXKz2eD+rzv6gUV5kqjJuGkMt+fZs4CRe8+IBrsVvJojUIsRGoCBEkp3uVh6lJbGBPDD4MPVJ1zYMnu4p7wDJWI8YwEQW953fXGXhm5On6bkIeJb8onAEMLTmHU=";
npx:hasSignatureTarget this: .
this: npx:introduces sub:step;
prov:generatedAtTime "2021-06-14T15:43:25.273828"^^xsd:dateTime;
prov:wasAttributedTo orcid:0000-0000-0000-0000 .
}