Variable.ANY);
try {
StringBuffer lBuf = new StringBuffer();
while(queryC.hasNext()) {
Statement answer = queryC.next();
Node vl = answer.getObject();
lBuf.append(vl.toString().concat(" "));
}
String l = lBuf.toString();
if(l.length() > 0)
this.outP.println(" * Label: " + l);
} finally {
queryC.close();
}
queryC = this.model.findStatements(uri, RDFS.comment, Variable.ANY);
try {
String l = "";
while(queryC.hasNext()) {
Statement answer = queryC.next();
Node vl = answer.getObject();
l += vl.toString() + " ";
}
if(l.length() > 0)
this.outP.println(" * Comment: " + l);
} finally {
queryC.close();
}
queryC = this.model.findStatements(uri, RDFS.domain, Variable.ANY);
try {
String l = "";
while(queryC.hasNext()) {
Statement answer = queryC.next();
Node vl = answer.getObject();
l += vl.toString() + " ";
}
if(l.length() > 0)
this.outP.println(" * Comment: " + l);
} finally {
queryC.close();
}
queryC = this.model.findStatements(uri, RDFS.range, Variable.ANY);
try {
String l = "";
while(queryC.hasNext()) {
Statement answer = queryC.next();
Node vl = answer.getObject();
l += vl.toString() + " ";
}
if(l.length() > 0)
this.outP.println(" * Range: " + l);
} finally {
queryC.close();