Examples of createLiteral()


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

    MutableTupleResult result = new MutableTupleResult(bindingNames);

    ValueFactory vf = ValueFactoryImpl.getInstance();

    for (String connectionID : getRepository().getConnectionIDs()) {
      Literal idLit = vf.createLiteral(connectionID);
      result.append(new ListBindingSet(bindingNames, idLit));
    }

    return result;
  }
View Full Code Here

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

      for (RepositoryInfo info : getRepositoryManager().getAllRepositoryInfos()) {
        String id = info.getId();

        MapBindingSet bindings = new MapBindingSet(3);
        bindings.addBinding("uri", vf.createURI(namespace, id));
        bindings.addBinding("id", vf.createLiteral(id));

        if (info.getDescription() != null) {
          bindings.addBinding("title", vf.createLiteral(info.getDescription()));
        }
View Full Code Here

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

        MapBindingSet bindings = new MapBindingSet(3);
        bindings.addBinding("uri", vf.createURI(namespace, id));
        bindings.addBinding("id", vf.createLiteral(id));

        if (info.getDescription() != null) {
          bindings.addBinding("title", vf.createLiteral(info.getDescription()));
        }

        result.append(bindings);
      }
View Full Code Here

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

    ValueFactoryImpl vf = ValueFactoryImpl.getInstance();

    BNode implNode = vf.createBNode();

    if (type != null) {
      model.add(implNode, REPOSITORYTYPE, vf.createLiteral(type));
    }

    return implNode;
  }
View Full Code Here

Examples of org.openrdf.model.impl.ValueFactoryImpl.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

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

    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

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

  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

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

    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

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

  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

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()

    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
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.