@prefix dcterms: <
http://purl.org/dc/terms/
> .
@prefix p-plan: <
http://purl.org/net/p-plan#
> .
@prefix orcid: <
https://orcid.org/
> .
@prefix this: <
http://purl.org/np/RA_z-xB2SDnQiN0H2lKDFu8bYtMIElilaGiFWeBm7p3nA
> .
@prefix sub: <
http://purl.org/np/RA_z-xB2SDnQiN0H2lKDFu8bYtMIElilaGiFWeBm7p3nA#
> .
@prefix schema: <
https://schema.org/
> .
@prefix bpmn: <
http://dkm.fbk.eu/index.php/BPMN2_Ontology#
> .
@prefix np: <
http://www.nanopub.org/nschema#
> .
@prefix owl: <
http://www.w3.org/2002/07/owl#
> .
@prefix npx: <
http://purl.org/nanopub/x/
> .
@prefix xsd: <
http://www.w3.org/2001/XMLSchema#
> .
@prefix rdfs: <
http://www.w3.org/2000/01/rdf-schema#
> .
@prefix prov: <
http://www.w3.org/ns/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
<
https://www.wikidata.org/wiki/Q28865
> ;
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
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:54:13.470821"^^
xsd:dateTime
.
}
sub:pubInfo
{
sub:sig
npx:hasAlgorithm
"RSA" ;
npx:hasPublicKey
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfrVasAKy4x+S31NiqSMjUj1YgmxqseIaejBQBNyBcLMTR6Id8xkAcZZ9hxkjdqX8cBr0sVNe7vtqJoif+J5AyRNfI6/bk3RPBd2HxTWQYfJJnJk2z2acY7PTO16khW3oZ/N6/jDnZSgj17Sd/xfqHtSX8kskqoK5l0H0wt9b74QIDAQAB" ;
npx:hasSignature
"ZHrJOrqB63ceEJVEHO+lP+L+SeNmdgReKhjbJ/0qCsBFEXWdIrhVZzEzkDY5Jsjy/n8EiNYgGWR4aTHj5wk/GzTBvtasFnFGc/NvWdTW+G2k73GvoN+CmOA5yI8q34rLpv+3SjORPCxBMiOIJ4SeaLM2A4rcZtcVvLZmY+5cPwM=" ;
npx:hasSignatureTarget
this:
.
this:
npx:introduces
sub:step
;
prov:generatedAtTime
"2021-06-02T10:54:13.470821"^^
xsd:dateTime
;
prov:wasAttributedTo
orcid:0000-0000-0000-0000
.
}