{
List<XResource> content = new ArrayList<XResource>();
List<XResource> contentDirs = new ArrayList<XResource>();
// query: SELECT res FROM {res} <XFOAF_SSCF.isIn> {<this.resource>}
QueryResultTable results;
try
{
System.out.println("-- list content "+this.getLabel());
results = model.querySelect(RdfQuery.RDFQ_RES_WITH_TYPE_QUERY.toString(
S3B_SSCF.isIn, this.resource,RDF.type),"SPARQL");
//for (int i = 0; i < results.getRowCount(); i++) {
for(QueryRow qr: results) {
Object type = qr.getValue(results.getVariables().get(1)); // result[1];
if(type!=null)
{
String res = qr.getValue(results.getVariables().get(0)).toString();
if(type.toString().equals(S3B_SSCF.Resource)||type.toString().equals(S3B_SSCF.Directory))
{
XfoafSscfResource xfoafres = XfoafSscfResource.getXfoafSscfResource(res);
if (xfoafres != null&&type.toString().equals(S3B_SSCF.Resource)) {
content.add(xfoafres);