@prefix dct: <http://purl.org/dc/terms/> .
@prefix orcid: <https://orcid.org/> .
@prefix this: <http://purl.org/np/RAGNc_mZf9b4GoxCi-npu2sVo85kgnB1PZy5fmdfz4kF8> .
@prefix sub: <http://purl.org/np/RAGNc_mZf9b4GoxCi-npu2sVo85kgnB1PZy5fmdfz4kF8#> .
@prefix schema: <https://schema.org/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix pplan: <http://purl.org/net/p-plan#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#> .
@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 {
  <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#out1> pplan:bindsTo <http://purl.org/np/RAkD1fG8iy_rXrCpf3U2q30ISiEM9nwiEB475bcbvWsO4#image> .
  <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAkD1fG8iy_rXrCpf3U2q30ISiEM9nwiEB475bcbvWsO4#step> .
  sub:LinguisticSystem a schema:ComputerLanguage ;
    rdfs:label "python" ;
    rdfs:seeAlso <https://www.wikidata.org/wiki/Q28865> ;
    owl:versionInfo "3.7.9.final.0" .
  sub:plan dct:description """@is_fairworkflow(label='A workflow converts an image to a pencil sketch')
def image_to_pencil_sketch_workflow(origianl_image, ratio):
    gray_image = rgb2gray_image(origianl_image)
    inverted_image = invert_colors(gray_image)
    blurred_image = blur(inverted_image)
    blended_image = blend_image(gray_image, blurred_image)
    pencil_sketch_image = contrast_image(blended_image, ratio)
    return pencil_sketch_image
""" ;
    dct:language sub:LinguisticSystem ;
    a pplan:Plan ;
    rdfs:label "A workflow converts an image to a pencil sketch" .
  <http://purl.org/np/RAUyUVnP4TUYjzmf8qHuNyeIT_VQUQwUAV1pRE5tDsYmY#out1> pplan:bindsTo <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#im2> .
  <http://purl.org/np/RAUyUVnP4TUYjzmf8qHuNyeIT_VQUQwUAV1pRE5tDsYmY#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#step> .
  <http://purl.org/np/RAV-NiAE2evf8uzKlAlN5YrRSW1iWr5oJak--093ywjmw#out1> pplan:bindsTo <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#im1> , <http://purl.org/np/RAoesDMmg9kgbw3P2exYZH6TV32MTR480frYhG2HxZqnk#img> .
  <http://purl.org/np/RAV-NiAE2evf8uzKlAlN5YrRSW1iWr5oJak--093ywjmw#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RA5L296oN4rcdtVEEatpbVo_WUO2JDRGzNlnGmpoDqTDQ#step> , <http://purl.org/np/RAoesDMmg9kgbw3P2exYZH6TV32MTR480frYhG2HxZqnk#step> .
  <http://purl.org/np/RAkD1fG8iy_rXrCpf3U2q30ISiEM9nwiEB475bcbvWsO4#out1> pplan:bindsTo sub:result .
  <http://purl.org/np/RAkD1fG8iy_rXrCpf3U2q30ISiEM9nwiEB475bcbvWsO4#step> pplan:isStepOfPlan sub:plan .
  <http://purl.org/np/RAoesDMmg9kgbw3P2exYZH6TV32MTR480frYhG2HxZqnk#out1> pplan:bindsTo <http://purl.org/np/RAUyUVnP4TUYjzmf8qHuNyeIT_VQUQwUAV1pRE5tDsYmY#img> .
  <http://purl.org/np/RAoesDMmg9kgbw3P2exYZH6TV32MTR480frYhG2HxZqnk#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAUyUVnP4TUYjzmf8qHuNyeIT_VQUQwUAV1pRE5tDsYmY#step> .
}
sub:provenance {
  sub:assertion prov:generatedAtTime "2021-06-14T14:47:31.986570"^^xsd:dateTime .
}
sub:pubInfo {
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5qs1vOATpmVyz3yKjvM8E5TfLUFPQzPgg1JKJxsNSaZAa28Jst9c+rzIOfICxuNfn/c3iG2qLur2zaKxPkAURsI9Dn2ZumFijhoFf3VpsZB3mKNhZ1kLqz/ytIQh/PUAW9c1+lTx/zQZPkHJbUgb7subzMMoJJTMWaZ+VtPrA3QIDAQAB" ;
    npx:hasSignature "cO2qJ0CDeeR+uBGGZ5V40nCfDyWyoyrG2Hyy41bnnVF+qwbkTLs91d/EOP8pjMTNvKSrmfxXDrSP4CVJXX80/HdzhUXS3ATV1MyjXiUc/bQS7JcZCX/kCc101aVCpeJCpXJgzYFoHrjUWdILzVf4PAQAFsEXkm15cNYp3nm508A=" ;
    npx:hasSignatureTarget this: .
  this: npx:introduces sub:plan ;
    prov:generatedAtTime "2021-06-14T14:47:31.986570"^^xsd:dateTime ;
    prov:wasAttributedTo orcid:0000-0000-0000-0000 .
}