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 :-
RDFIterator.java
import java.io.*;
.addProperty(VCARD.FN, fullName)
|
To run this program you would have to follow these steps:
Output:
After executing RDFIterator you will get the
following output.

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.
Ask Questions? Discuss: Iterating Statements of RDF file in Java
Post your Comment