private void addHighDegreePropertyLinks(Model model, HypermediaControls controller) {
// TODO: This should re-use the logic from ResourceDescription and ResourceProperty to decide where to create these links
// Add links to RDF documents with descriptions of the blank nodes
Resource r = model.getResource(controller.getAbsoluteIRI());
StmtIterator it = r.listProperties();
while (it.hasNext()) {
Statement stmt = it.nextStatement();
if (!stmt.getObject().isAnon()) continue;
String pathDataURL = controller.getValuesDataURL(stmt.getPredicate());
if (pathDataURL == null) continue;
((Resource) stmt.getResource()).addProperty(RDFS.seeAlso,
model.createResource(pathDataURL));
}
it = model.listStatements(null, null, r);
while (it.hasNext()) {
Statement stmt = it.nextStatement();
if (!stmt.getSubject().isAnon()) continue;
String pathDataURL = controller.getInverseValuesDataURL(stmt.getPredicate());
if (pathDataURL == null) continue;
((Resource) stmt.getSubject().as(Resource.class)).addProperty(RDFS.seeAlso,
model.createResource(pathDataURL));