}
private static void run() throws ModelRuntimeException {
// use the rdfs class Person from peopletag.rdfs.n3 here
// via lesson5.gen package (generated by rdfreactor)
Person max = new Person(model, "http://xam.de/foaf.rdf.xml#i");
Person konrad = new Person(model);
max.addName("Max Völkel");
konrad.addName("Konrad Völkel");
max.addKnows(konrad);
Tag java = new Tag(model);
Tag python = new Tag(model);
java.addName("Java related");
python.addName("Python related");
python.addName("pythonic stuff");
max.addTag(java);
konrad.addTag(python);
System.out.println("the instance model:");
model.dump();
System.out.println("-----------------\n\n");
System.out.println("konrad's tags:");
for (Tag tag : konrad.getAllTag()) {
for (String name : tag.getAllName()) {
System.out.println(name);
}
}
System.out.println("-----------------\n\n");