step

Full identifier: http://purl.org/np/RAhghoIHQGX-nL_T1yRZ1kp4dZwAblXLiGSpHlr_I9yoU#step

Assigned to 2 classes:

Minted in Nanopublication

 Make white background of image transparent ScriptTask Step comment approve/disapprove edit as derived nanopublication

This is a local identifier minted within the nanopublication. http://purl.org/np/RAhghoIHQG...#LinguisticSystem LinguisticSystem http://www.w3.org/2000/01/rdf-schema#label label (this is a literal) "python" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RAhghoIHQG...#LinguisticSystem LinguisticSystem http://www.w3.org/2002/07/owl#versionInfo versionInfo (this is a literal) "3.7.9.final.0" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RAhghoIHQG...#img img http://www.w3.org/2000/01/rdf-schema#comment comment (this is a literal) "None" .
This is the identifier for this whole nanopublication. http://purl.org/np/RAhghoIHQG... This nanopublication the nanopublication consists of an introduction of the given resource http://purl.org/nanopub/x/introduces introduces This is a local identifier minted within the nanopublication. http://purl.org/np/RAhghoIHQG...#step step .

References

Nanopublication Part Subject Predicate Object Published By Published On
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:09.605Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:09.605Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Make white background of image transparent
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
@is_fairstep(label='Make white background of image transparent') def white_to_transparency(img): from PIL import Image img = img.convert("RGBA") data = img.getdata() new_data = [] for item in data: if item[0] == 255 and item[1] == 255 and item[2] == 255: new_data.append((255, 255, 255, 0)) else: new_data.append(item) img.putdata(new_data) return img
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
(unknown)
2021-06-14T14:54:06.640Z
links a nanopublication to its pubinfo http://www.nanopub.org/nschema#hasPublicationInfo pubinfo
step
(unknown)
2021-06-14T14:54:06.640Z

Show All

Raw

TriG(txt), JSON-LD(txt), N-Quads(txt), XML(txt)