logger.debug("Getting Relationships: pid = " + pid + " predicate = "
+ relationship);
try {
URIReference pred = null;
if (relationship != null) {
pred = new SimpleURIReference(new URI(relationship));
}
URIReference subj = null;
if (subject != null) {
subj = new SimpleURIReference(new URI(SubjectProcessor.getSubjectAsUri(subject)));
}
Set<RelationshipTuple> tuples =
r.getRelationships(subj, pred, null);
return tuples.toArray(new RelationshipTuple[tuples.size()]);
} catch (URISyntaxException e) {