step

Full identifier: http://purl.org/np/RArWETwZLOap_HslX7aZOrOeUGNGQUU4kxFhzHbn74rB4#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/RArWETwZLO...#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/RArWETwZLO...#LinguisticSystem LinguisticSystem http://www.w3.org/2002/07/owl#versionInfo versionInfo (this is a literal) "3.8.6.final.0" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#img img http://www.w3.org/2000/01/rdf-schema#comment comment (this is a literal) "None" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#img img http://www.w3.org/2000/01/rdf-schema#label label (this is a literal) "img" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#out1 out1 http://www.w3.org/2000/01/rdf-schema#comment comment (this is a literal) "None" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#out1 out1 http://www.w3.org/2000/01/rdf-schema#label label (this is a literal) "out1" .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#step step http://purl.org/dc/terms/language language This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#LinguisticSystem LinguisticSystem .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#step step http://purl.org/net/p-plan#hasInputVar hasInputVar This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#img img .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#step step http://purl.org/net/p-plan#hasOutputVar hasOutputVar This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#out1 out1 .
This is a local identifier minted within the nanopublication. http://purl.org/np/RArWETwZLO...#step step http://www.w3.org/2000/01/rdf-schema#label label (this is a literal) "Make white background of image transparent" .
This is the identifier for this whole nanopublication. http://purl.org/np/RArWETwZLO... 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/RArWETwZLO...#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
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Make white background of image transparent
Tobias Kuhn
2021-04-30T15:31:02.214Z
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
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its assertion http://www.nanopub.org/nschema#hasAssertion assertion
step
Tobias Kuhn
2021-04-30T15:31:02.214Z
links a nanopublication to its pubinfo http://www.nanopub.org/nschema#hasPublicationInfo pubinfo
step
Tobias Kuhn
2021-04-30T15:31:02.214Z

Raw

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