Example #1
0
File: Graph.java Project: AKSW/SINA
 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;
 }
Example #2
0
File: Graph.java Project: AKSW/SINA
 public void addEntity(Entity i) {
   Entity j = new Entity();
   j.setIRI(i.getIRI());
   j.settype(i.gettype());
   j.setClassTypeIRI(i.getClassTypeIRI());
   EntityList.add(j);
 }
Example #3
0
File: Graph.java Project: AKSW/SINA
 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;
 }