public Entity addLiteralEntity(int index) { Entity j = new Entity(); j.setIRI("?l" + index); j.settype(Constants.TYPE_LITERAL); // type of literal LiteralVariable.add(j); return j; }
public void addEntity(Entity i) { Entity j = new Entity(); j.setIRI(i.getIRI()); j.settype(i.gettype()); j.setClassTypeIRI(i.getClassTypeIRI()); EntityList.add(j); }
public Entity addVariableEntity(Set ClassType, int index) { // System.out.println("enter add variable"); Entity j = new Entity(); j.setIRI("?v" + index); j.settype(Constants.TYPE_VARIABLE); j.setClassTypeIRI(ClassType); EntityList.add(j); return j; }