Data model and vocabulary

To manipulate rdf data in Python, I recommend rdflib.readthedocs.io/

Do you have an example in python or in pseudo-code of what you would want to write ?