this.statusBar.setText("Parsing N3 data ...");
try {
System.out.println("Parsing data...");
final URILiteral rdfURL = LiteralFactory
.createURILiteralWithoutLazyLiteral("<inlinedata:"
+ n3daten + ">");
final Reader reader = new InputStreamReader(rdfURL.openStream());
final Map<String, String> prefixMap = JenaTurtleTripleConsumerPipe
.retrievePrefixes(reader);
for (final String prefix : prefixMap.keySet()) {
this.prefix.addEntry(prefix, "<"
+ prefixMap.get(prefix) + ">",
false);
}
// now really deal with the triples...
final LinkedHashMap<Item, DataRDFTerm> rdfHash = new LinkedHashMap<Item, DataRDFTerm>();
final LinkedHashSet<Operator> rdfTermToJoin = new LinkedHashSet<Operator>();
try {
CommonCoreQueryEvaluator.readTriples("Turtle", rdfURL.openStream(),
new TripleConsumer() {
public void consume(final Triple triple) {
DataRDFTerm rdfTermSubject = rdfHash.get(triple
.getPos(0));