Package com.google.refine.rdf

Examples of com.google.refine.rdf.Node


    assertEquals(root.getUriExpression(),"'http://reference.data.gov.uk/id/department/bis/post/' + value");
  }
 
  @Test(groups={"rdf-schema-test"})
  public void testJobTitleLiteral(){
    Node jobTitleNode = getLink(root, "http://www.w3.org/2000/01/rdf-schema#label");
    assertNotNull(jobTitleNode);
    assertTrue(jobTitleNode instanceof CellLiteralNode);
    CellLiteralNode jobTitle = (CellLiteralNode)jobTitleNode;
    //test language
    assertEquals(jobTitle.getLang(),"en");
View Full Code Here


    assertEquals(jobTitle.getColumnName(), "Job Title");
  }
 
  @Test(groups={"rdf-schema-test"})
  public void testRowNumberCell(){
    Node rowNumberNode = getLink(root,"http://reference.data.gov.uk/def/central-government/heldBy");
    assertNotNull(rowNumberNode);
    assertTrue(rowNumberNode instanceof CellResourceNode );
    CellResourceNode rowNumber = (CellResourceNode) rowNumberNode;
    //test URI expression
    assertEquals(rowNumber.getUriExpression(),"('#person' + value).urlify()");
View Full Code Here

  }
 
  @Test(groups={"rdf-schema-test"})
  public void testNameCell(){
    CellResourceNode rowNumber = (CellResourceNode)getLink(root,"http://reference.data.gov.uk/def/central-government/heldBy");
    Node nameNode = getLink(rowNumber, "http://xmlns.com/foaf/0.1/name");
    assertTrue(nameNode instanceof CellLiteralNode );
    CellLiteralNode name = (CellLiteralNode) nameNode;
    assertNull(name.getLang());
    assertEquals(name.getColumnName(), "Name");
    assertNull(name.getValueType());   
View Full Code Here

  }
 
  @Test(groups={"rdf-schema-test"})
  public void testEmailCell(){
    CellResourceNode rowNumber = (CellResourceNode)getLink(root,"http://reference.data.gov.uk/def/central-government/heldBy");
    Node emailNode = getLink(rowNumber, "http://xmlns.com/foaf/0.1/mbox");
    assertTrue(emailNode instanceof CellResourceNode);
    CellResourceNode email = (CellResourceNode) emailNode;
   
    assertEquals(email.getUriExpression(), "'mailto:' + value");
    testLinks(email);
View Full Code Here

TOP

Related Classes of com.google.refine.rdf.Node

Copyright © 2018 www.massapicom. 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.