if(triplePattern.getSubject().isVariable()){
if(!triplePattern.getPredicate().isVariable() && !triplePattern.getObject().isVariable()){
return new KeyContainer[]{ new KeyContainer<String>(TYPE_PO, ((Literal)triplePattern.getPredicate()).originalString() + ((Literal)triplePattern.getObject()).originalString()) };
} else {
// only one variable or no variables in the triple pattern is not supported!
throw new TriplePatternNotSupportedError(this, triplePattern);
}
} else {
if(triplePattern.getObject().isVariable()){
if(triplePattern.getPredicate().isVariable()){
// only one variable in the triple pattern is not supported!
throw new TriplePatternNotSupportedError(this, triplePattern);
} else {
return new KeyContainer[]{ new KeyContainer<String>(TYPE_SP, ((Literal)triplePattern.getSubject()).originalString() + ((Literal)triplePattern.getPredicate()).originalString()) };
}
} else {
return new KeyContainer[]{ new KeyContainer<String>(TYPE_SO, ((Literal)triplePattern.getSubject()).originalString() + ((Literal)triplePattern.getObject()).originalString()) };