Each and every arc in RDF Model represents a statement and each statement have three parts in it as follows :
Subject is the resource from where the arc leaves or we can say that it is a source, Predicate is the label of the leave and Object is the resource to which arc points out or we can say it as sink. It is sometimes called triple (Subject,Predicate,Object). To iterate RDF model statements we need StmtIterator. With Statement object we can access all properties of that Statement such as subject, predicate, object (i.e triple). Full source code of RDFIterator.java is as follows :-
To run this program you would have to follow these steps:
After executing RDFIterator you will get the
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.