System.out.println(foundTaggedJava.next().getSubject());
}
foundTaggedJava.close();
// finding statements 'tagged with "Python"' with a triple pattern
TriplePattern taggedAsPythonPattern = model.createTriplePattern(Variable.ANY, hasTag, tagPython);
ClosableIterator<? extends Statement> foundTaggedPython;
foundTaggedPython = model.findStatements(taggedAsPythonPattern);
System.out.println("Everything tagged 'Python':");
while (foundTaggedPython.hasNext()) {
System.out.println(foundTaggedPython.next().getSubject());