I have crawler that crawls urls from website containing RDF data. I tried to get it with Jena like this
Model model = ModelFactory.createDefaultModel();
model.read(url);
model.write(System.out);
url
is String
and first line gets executed, debugger stops for second line and then it goes back to first line (because of loop). url
is web page link.
I have also tried to get html code of page, and than pass that string to read
function, but it didn't work either.
I'm really a rookie to RDF and Jena, and my Java experience isn't really extensive, so any help is good.