@prefix dct: .
@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.3.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
chars = \"wow, what a beautiful image!\"
width, height = image.size
chars_x, chars_y = int(width/2), int(heigh/2)
ttf = ImageFont.load_default()
img_draw = ImageDraw.Draw(image)
img_draw.text((chars_x, chars_y), chars, font=ttf, fill=(255,0,0))
return new_image
""";
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-03T08:01:04.416606"^^xsd:dateTime .
}
sub:pubInfo {
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgZzfLhR/M2FA/3TLp/geR/5wvkllui9hj+cDabQlWrgAbIoYOcVnPiMZEkQ/vtCdg+6mfLKOVL9uLSCAGMTrpV+QL5he+oUAebSdyssW7STEO3HNV9ipmY7wCwE0nemC8R4zCNzVzdPUjmtuC19LFDtfx4iiYl5yBKyqo2c3DowIDAQAB";
npx:hasSignature "DWwBDfejoE037RJJls1C/wiRRnwJGu6A4qAOfcrrdjLwwl+cfbgNr9HqLxAozGqLDVgOJW3ZU9GZ+aw4qSEGFPfN33y+Bikz1ZeEoOnwITbrzFwb4a3GDeJAxLsdsX/wgQCCLUigdkYUM3GfLOMJie5JPJb6gGlJUVL7+2YD5qM=";
npx:hasSignatureTarget this: .
this: npx:introduces sub:step;
prov:generatedAtTime "2021-06-03T08:01:04.416606"^^xsd:dateTime;
prov:wasAttributedTo .
}