"NestedSubjectTermIndex", "NestedRelationship",
"NestedObjectTermIndex");
List<TableStatement> statements = statementTable.getStatements();
for (int i = 0; i < statements.size(); i++) {
TableStatement statement = statements.get(i);
String si = String.valueOf(i);
if (statement.getRelationshipName() == null) {
tdvWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
"-", "-", "-", "-", "-" });
allWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
"-", "-", "-", "-", "-" });
} else if (statement.getObjectTermId() != null) {
tdvWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
statement.getRelationshipName(),
String.valueOf(statement.getObjectTermId()),
"-", "-", "-" });
allWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
statement.getRelationshipName(),
String.valueOf(statement.getObjectTermId()),
"-", "-", "-" });
} else {
tdvWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
statement.getRelationshipName(),
String.valueOf(statement.getObjectTermId()),
String.valueOf(statement.getNestedSubject()),
statement.getNestedRelationship(),
String.valueOf(statement.getNestedObject()) });
allWriter.writeNext(new String[] {
si,
String.valueOf(statement.getSubjectTermId()),
statement.getRelationshipName(),
String.valueOf(statement.getObjectTermId()),
String.valueOf(statement.getNestedSubject()),
statement.getNestedRelationship(),
String.valueOf(statement.getNestedObject()) });
}
}
tdvWriter.close();
} catch (IOException e) {