@prefix dcterms: .
@prefix p-plan: .
@prefix orcid: .
@prefix this: .
@prefix sub: .
@prefix schema: .
@prefix bpmn: .
@prefix np: .
@prefix owl: .
@prefix npx: .
@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 p-plan:Variable;
rdfs:comment "None";
rdfs:label "image" .
sub:out1 a p-plan:Variable;
rdfs:comment "None";
rdfs:label "out1" .
sub:step dcterms:description """@is_fairstep(label='awesome image converter')
# Give it your own name:
def awesome_image_converter(image):
from PIL import Image, ImageEnhance
im2 = ImageEnhance.Contrast(image)
new_image = Image.blend(image, im2, alpha=0.9)
return new_image
""";
dcterms:language sub:LinguisticSystem;
p-plan:hasInputVar sub:image;
p-plan:hasOutputVar sub:out1;
a bpmn:ScriptTask, p-plan:Step;
rdfs:label "awesome image converter" .
}
sub:provenance {
sub:assertion prov:generatedAtTime "2021-06-02T10:55:47.327065"^^xsd:dateTime .
}
sub:pubInfo {
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfrVasAKy4x+S31NiqSMjUj1YgmxqseIaejBQBNyBcLMTR6Id8xkAcZZ9hxkjdqX8cBr0sVNe7vtqJoif+J5AyRNfI6/bk3RPBd2HxTWQYfJJnJk2z2acY7PTO16khW3oZ/N6/jDnZSgj17Sd/xfqHtSX8kskqoK5l0H0wt9b74QIDAQAB";
npx:hasSignature "LGm1VigvkFDZoxf29ieKJDi8p2CebOTC9Y6Br0SpB/h5qawS84O8DOHk174KyyyPj0KUiwHHpi6OOo0DZ/0En5i4MZ5h1G1X7B/otTJrMJmSmyYolYm5c+SOT5SJm/SNqcbLnPDC6KLs/oHoqz9VfPS4GayYBlh0hBULJlPIGcc=";
npx:hasSignatureTarget this: .
this: npx:introduces sub:step;
prov:generatedAtTime "2021-06-02T10:55:47.327065"^^xsd:dateTime;
prov:wasAttributedTo orcid:0000-0000-0000-0000 .
}