On 15/08/15 15:16, kumar rohit wrote:
Hello, what is the problem with this code.. I can not understand even the
error message by eclipse.

What is the error you are seeing?

(it's missing a closing "}" for start; if this is jena3, then the imports are wrong - but Eclipse will sort that out with shift-cntr-O)


______________________________________________
import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class istmain
{

public static void main(String[] args) {

Model model=ModelFactory.createDefaultModel();

InputStream in=FileManager.get().open("Module.owl");
model.read(in,null,"RDF/XML");
model.write(System.out);
}

_____________________________________________________


Reply via email to