* @param resource
* @param resultModel
*/
public static List addInverseRelations(Resource resource, Model resultModel,
float minimalRelevance) {
RelationIterator iter = new StrengthSortedRelationIterator(
new InverseIndirectRelationIterator(
new InverseDirectRelationIterator(resource),
minimalRelevance));
//TopicsList topicsList = new TopicsList(resource, 0);
List result = new ArrayList();
try {
for (int i = 0; i < 5; i++) {
Relation relation = iter.nextRelation();//topicsList.getRelation(i);
resultModel.add(JenaUtil.getExpandedResource(relation
.getResource(), 2));
Resource source = relation.getSource();
if (source.hasProperty(RSS.title)) {
StmtIterator titles = source.listProperties(RSS.title);