Package org.openrdf.model

Examples of org.openrdf.model.ValueFactory.createLiteral()


  public void testYearMonth()
    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1Y", DURATION_YEARMONTH);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }

  public void testDayTime()
View Full Code Here


    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1Y", DURATION_YEARMONTH);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }

  public void testDayTime()
    throws Exception
  {
View Full Code Here

  public void testDayTime()
    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1D", DURATION_DAYTIME);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }

  public void testFullDuration()
View Full Code Here

    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1D", DURATION_DAYTIME);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }

  public void testFullDuration()
    throws Exception
  {
View Full Code Here

  public void testFullDuration()
    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1Y1M1D", DURATION);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }
}
View Full Code Here

    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1Y1M1D", DURATION);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }
}
View Full Code Here

    Resource implNode = super.export(model);

    ValueFactory vf = ValueFactoryImpl.getInstance();

    if (jdbcDriver != null) {
      model.add(implNode, JDBC_DRIVER, vf.createLiteral(jdbcDriver));
    }
    if (url != null) {
      model.add(implNode, URL, vf.createLiteral(url));
    }
    if (user != null) {
View Full Code Here

    if (jdbcDriver != null) {
      model.add(implNode, JDBC_DRIVER, vf.createLiteral(jdbcDriver));
    }
    if (url != null) {
      model.add(implNode, URL, vf.createLiteral(url));
    }
    if (user != null) {
      model.add(implNode, USER, vf.createLiteral(user));
    }
    if (password != null) {
View Full Code Here

    }
    if (url != null) {
      model.add(implNode, URL, vf.createLiteral(url));
    }
    if (user != null) {
      model.add(implNode, USER, vf.createLiteral(user));
    }
    if (password != null) {
      model.add(implNode, PASSWORD, vf.createLiteral(password));
    }
    model.add(implNode, MAX_TRIPLE_TABLES, vf.createLiteral(maxTripleTables));
View Full Code Here

    }
    if (user != null) {
      model.add(implNode, USER, vf.createLiteral(user));
    }
    if (password != null) {
      model.add(implNode, PASSWORD, vf.createLiteral(password));
    }
    model.add(implNode, MAX_TRIPLE_TABLES, vf.createLiteral(maxTripleTables));

    return implNode;
  }
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.