I created an ontology (named: student.owl) which has different classes and sub-classes (e.g. Person, Student, Faculty etc.) and properties (e.g. has_FName, has_LName, has_Course etc.). I loaded the ontology into the model (i.e. Model model) successfully. No problem so far!
Then I parsed some source files and extracted the required data, created individuals of different class types, set their properties etc. Then I wrote the Model model in to an external file (say a.nt) by using statement: model.write( out1, "N-TRIPLES"); So far all well and no problem. Then I loaded the output file (a.nt) into Protege and Allegrograph and successfully query the data. *Problem:* I want to write the individual files containing the specific information (triples) e.g. "Student" "has_FName" "value" should be written in one file (e.g. st-fname.nt) "Student" "has_LName" "value" should be written in one file (e.g. st-lname.nt) So in short instead of writing all the Model in one nt file I want to create individual files (datasets) for individual triples (as I mentioned above). I stuck here since many days, googled a lot but did not find a solution. Thanks in advance for any help. Regards
