if (showI.hasNext()) {
Statement showStmt = showI.next();
Value showsNode = showStmt.getObject();
if (showI.hasNext()) throw new UnresolvableException("More than one :showProperties value available");
if (showsNode instanceof Resource && RDFList.isRDFList(in, (Resource) showsNode)) {
RDFList showsRDFList = new RDFList(in, (Resource) showsNode);
if (showsRDFList.isValid()) {
setShowProperties(PropertySet.showParse(this, in, showsRDFList, conf));
} else {
throw new ParsingException(showsNode.toString() + "is not a valid rdf:List");
}
} else {
addShowProperty(PropertySet.showPropertyParse(this, in, showsNode, conf));
}
}
} finally {
showI.close();
}
// Parse the property hiding selections
RepositoryResult<Statement> hideI = conn.getStatements(selected, FresnelCore.hideProperties, (Value) null, false);
try {
if (hideI.hasNext()) {
Statement hideStmt = (Statement) hideI.next();
Value hidesNode = hideStmt.getObject();
if (hideI.hasNext()) throw new UnresolvableException("More than one :hideProperties value available");
if (hidesNode instanceof Resource && RDFList.isRDFList(in, (Resource) hidesNode)) {
RDFList hidesRDFList = new RDFList(in, (Resource) hidesNode);
if (hidesRDFList.isValid()) {
setHideProperties(PropertySet.hideParse(this, in, hidesRDFList, conf));
} else {
throw new ParsingException(hidesNode.toString() + "is not a valid rdf:List");
}
} else {