anchor.diff:  
   === Example 04: Writing to RDF/XML 
   
  -https://github.com/eclipse/rdf4j-doc/examples/src/main/java/org/eclipse/rdf4j/examples/model/Example04WriteRdfXml.java[Example 04] shows how we can write our Model as RDF/XML, using the RDF4J {javadoc}rio/Rio.html[Rio] parser/writer tools:
  +https://github.com/eclipse/rdf4j-doc/tree/master/examples/src/main/java/org/eclipse/rdf4j/examples/model/Example04WriteRdfXml.java[Example 04] shows how we can write our Model as RDF/XML, using the RDF4J {javadoc}rio/Rio.html[Rio] parser/writer tools:
   
   [[code-example-04]]
   [source, java]
  
positive.code: 
  Very similar to how we can write RDF models to files in various syntaxes, we can also use RDF4J Rio to _read_ files to produce an RDF model. 
  
  https://github.com/eclipse/rdf4j-doc/examples/src/main/java/org/eclipse/rdf4j/examples/model/Example06ReadTurtle.java[Example 06] shows how we can read a Turtle file and produce a `Model` object out of it:
  
  [[code-example-06]]
  [source, java, linenums]
  
negative.code: Set<Value> paintings = model.filter(vanGogh, EX.CREATOR_OF, null).objects();
  ----
  
  TIP: notice that we are suddenly using a new vocabulary constant for our property: `EX.CREATOR_OF`. It is generally a good idea to create a class containing  constants for your own IRIs when you program with RDF4J: it makes it easier to reuse them and avoids introducing typos (not to mention a lot of hassle if you later decide to rename one of your resources). See https://github.com/eclipse/rdf4j-doc/tree/master/examples/src/main/java/org/eclipse/rdf4j/examples/model/vocabulary/EX.java[the EX vocabulary class] for an example of how to create your own vocabulary classes.
  
  Once we have selected the values, we can iterate and do something with them. For example, we could try and retrieve further information about each value, like so:
  
  