@prefix dct: <http://purl.org/dc/terms/> .
@prefix orcid: <https://orcid.org/> .
@prefix this: <http://purl.org/np/RAAls4X6cmCsNVGEKwA8xkGkSsi4F3Co93wbyF_as5rCM> .
@prefix sub: <http://purl.org/np/RAAls4X6cmCsNVGEKwA8xkGkSsi4F3Co93wbyF_as5rCM#> .
@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/RA3OQKavqJfdKDNZ5peTmeG8fPo48rbT9Yv9XblvJMgr0#out1> pplan:bindsTo <http://purl.org/np/RAMZnblXQzvZnxZfVj3CN_H_FqopqL5vuaQWU4-x3ZkBk#img> , <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#im1> .
  <http://purl.org/np/RA3OQKavqJfdKDNZ5peTmeG8fPo48rbT9Yv9XblvJMgr0#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAMZnblXQzvZnxZfVj3CN_H_FqopqL5vuaQWU4-x3ZkBk#step> , <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#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/RAHS3cJxMOX14ns75CrR8Jtie7on3MGGzsCljT6VkbOjg#out1> pplan:bindsTo sub:result .
  <http://purl.org/np/RAHS3cJxMOX14ns75CrR8Jtie7on3MGGzsCljT6VkbOjg#step> pplan:isStepOfPlan sub:plan .
  <http://purl.org/np/RAMZnblXQzvZnxZfVj3CN_H_FqopqL5vuaQWU4-x3ZkBk#out1> pplan:bindsTo <http://purl.org/np/RAQkpaq-GNJtGi_cuGQupx5dVM630l1zjVIZ0XjjAo5IU#img> .
  <http://purl.org/np/RAMZnblXQzvZnxZfVj3CN_H_FqopqL5vuaQWU4-x3ZkBk#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAQkpaq-GNJtGi_cuGQupx5dVM630l1zjVIZ0XjjAo5IU#step> .
  <http://purl.org/np/RAQkpaq-GNJtGi_cuGQupx5dVM630l1zjVIZ0XjjAo5IU#out1> pplan:bindsTo <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#im2> .
  <http://purl.org/np/RAQkpaq-GNJtGi_cuGQupx5dVM630l1zjVIZ0XjjAo5IU#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#step> .
  <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#out1> pplan:bindsTo <http://purl.org/np/RAHS3cJxMOX14ns75CrR8Jtie7on3MGGzsCljT6VkbOjg#image> .
  <http://purl.org/np/RAsBkB4mnocopHbWoVopPi4U_9jnXS133sq8cPcdpmpQg#step> pplan:isStepOfPlan sub:plan ;
    dul:precedes <http://purl.org/np/RAHS3cJxMOX14ns75CrR8Jtie7on3MGGzsCljT6VkbOjg#step> .
}
sub:provenance {
  sub:assertion prov:generatedAtTime "2021-06-14T14:43:27.547691"^^xsd:dateTime .
}
sub:pubInfo {
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5qs1vOATpmVyz3yKjvM8E5TfLUFPQzPgg1JKJxsNSaZAa28Jst9c+rzIOfICxuNfn/c3iG2qLur2zaKxPkAURsI9Dn2ZumFijhoFf3VpsZB3mKNhZ1kLqz/ytIQh/PUAW9c1+lTx/zQZPkHJbUgb7subzMMoJJTMWaZ+VtPrA3QIDAQAB" ;
    npx:hasSignature "PuN0Nb3nPaP4waPYef6i5E73m9vAMBLTRHhwFrUfs6GG59Nu6yi+Ziy7/LuvuyyedNIl2AWkvoWUEU7ymJlLifOTf12nQHJxZy/qC4jSfDSbmDWg0hjvyC7JVNVE2B9a2lGYT7eZQMX8DWZMTZPIQYFwjfzS/KszRJ8qp2K9YH4=" ;
    npx:hasSignatureTarget this: .
  this: npx:introduces sub:plan ;
    prov:generatedAtTime "2021-06-14T14:43:27.547691"^^xsd:dateTime ;
    prov:wasAttributedTo orcid:0000-0000-0000-0000 .
}