Examples of TagProperty


Examples of com.gnizr.db.dao.TagProperty

    assertEquals(1,assertions.size());
  }
 
  public void testFindTagAssertionPrpt() throws Exception{
    User hchen1 = new User((1));
    TagProperty prpt = new TagProperty((1));
    List<TagAssertion> assertions = dao.findTagAssertion(hchen1,null,prpt,null);
    assertEquals(1,assertions.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    User user = new User(3);
    UserTag subjectTag = new UserTag(200);
    UserTag[] objectTag = {new UserTag(201)};
    boolean isOkay = dao.deleteSKOSRelatedAssertion(user, subjectTag, objectTag);
    assertTrue(isOkay);
    List<TagAssertion> result = dao.findTagAssertion(user, subjectTag,new TagProperty(1),null);
    assertEquals(0,result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    User user = new User(3);
    UserTag subjectTag = new UserTag(202);
    UserTag[] objectTag = {new UserTag(201)};
    boolean isOkay = dao.deleteSKOSRelatedAssertion(user, subjectTag, objectTag);
    assertTrue(isOkay);
    List<TagAssertion> result = dao.findTagAssertion(user, subjectTag,new TagProperty(1),null);
    assertEquals(0,result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    User user = new User(3);
    UserTag subjectTag = new UserTag(200);
    UserTag[] objectTag = {new UserTag(201)};
    boolean isOkay = dao.deleteSKOSBroaderAssertion(user, subjectTag, objectTag);
    assertTrue(isOkay);
    List<TagAssertion> result = dao.findTagAssertion(user, subjectTag, new TagProperty(2),new UserTag(201));
    assertEquals(0,result.size());
   
    result = dao.findTagAssertion(user, new UserTag(201), new TagProperty(3), subjectTag);
    assertEquals(0,result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    UserTag[] objectTag = {new UserTag(201)};
    boolean isOkay = dao.deleteRDFTypeAssertion(user,subjectTag,objectTag);
    assertEquals(true,isOkay);
   
    List<TagAssertion> result = null;
    result = dao.findTagAssertion(user,subjectTag,new TagProperty(4),new UserTag(201));
    assertEquals(0,result.size());
   
    result = dao.findTagAssertion(user, subjectTag, new TagProperty(4), new UserTag(202));
    assertEquals(1,result.size());

  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    UserTag[] objectTag = {new UserTag(201),new UserTag(203),new UserTag(200)};
    boolean isOkay = dao.deleteSKOSNarrowerAssertion(user,subjectTag,objectTag);
    assertEquals(true,isOkay);
   
    List<TagAssertion> result = null;
    result = dao.findTagAssertion(user,subjectTag,new TagProperty(3),new UserTag(201));
    assertEquals(0,result.size());
   
    result = dao.findTagAssertion(user, subjectTag, new TagProperty(3), new UserTag(203));
    assertEquals(0,result.size());
   
    result = dao.findTagAssertion(user, subjectTag, new TagProperty(3), new UserTag(200));
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    assertEquals(0, result.size());
  }
 
  public void testCreateTagAssertionBatch() throws Exception{
    TagAssertion[] ta = new TagAssertion[1];
    ta[0] = new TagAssertion(new UserTag(100),new TagProperty(1),new UserTag(103),new User(1));
   
    boolean isOkay = dao.createTagAssertion(ta);
    assertTrue(isOkay);
   
    List<TagAssertion> result = dao.findTagAssertion(new User(1),new UserTag(100),new TagProperty(1),new UserTag(103));
    assertEquals(1,result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

    assertEquals(1,result.size());
  }
 
  public void testCreateTagAssertionBatch2() throws Exception{
    TagAssertion[] ta = new TagAssertion[3];
    ta[0] = new TagAssertion(new UserTag(100),new TagProperty(1),new UserTag(103),new User(1));
    ta[1] = new TagAssertion(new UserTag(101),new TagProperty(1),new UserTag(103),new User(1));
    ta[2] = new TagAssertion(new UserTag(100),new TagProperty(1),new UserTag(103),new User(1));
   
    boolean isOkay = dao.createTagAssertion(ta);
    assertTrue(isOkay);
   
    List<TagAssertion> result = dao.findTagAssertion(new User(1),new UserTag(100),new TagProperty(1),new UserTag(103));
    assertEquals(1,result.size());
   
    result = dao.findTagAssertion(new User(1),new UserTag(101),new TagProperty(1),new UserTag(103));
    assertEquals(1,result.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

  }

  public void testDeleteRDFTypeClassAssertion(){
    User user3 = new User(3);
    UserTag classTag201 = new UserTag(201);
    List<TagAssertion> r  = dao.findTagAssertion(user3,null,new TagProperty(4),classTag201);
    assertEquals(2,r.size());
   
    boolean isOkay = dao.deleteRDFTypeClassAssertion(new User(3), classTag201);
    assertTrue(isOkay);   
   
    r = dao.findTagAssertion(user3,null,new TagProperty(4),classTag201);
    assertEquals(0,r.size());
  }
View Full Code Here

Examples of com.gnizr.db.dao.TagProperty

  }
 
  public void testDeleteRDFTypeAssertion2() throws Exception{
    UserTag classTag201 = new UserTag(201);
    User user3 = new User(3);
    List<TagAssertion> r  = dao.findTagAssertion(user3,null,new TagProperty(4),classTag201);
    assertEquals(2,r.size());
   
    UserTag[] subjTags = new UserTag[]{ new UserTag(200),new UserTag(202)};
    assertTrue(dao.deleteRDFTypeAssertion(user3, subjTags, classTag201));
   
    r  = dao.findTagAssertion(user3,null,new TagProperty(4),classTag201);
    assertEquals(0,r.size());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.