semantic web - How to import rdf file into named graph? -


i new rdf. have foaffriends.rdf file in working directory. need import , use named graph store in tdb model rather unnamed model , store in external xml file. following code produces blank files. how can fix this? how know uri use?

     string directory = "mydatabases/dataset1" ;      dataset dataset = tdbfactory.createdataset(directory) ;       dataset.begin(readwrite.read) ;        model model = dataset.getnamedmodel("foaffriends.rdf") ;       dataset.commit();        fileoutputstream fout=new fileoutputstream(      "samresult.xml");      model.write(fout);       dataset.end(); 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -