Examples of LiteralImpl


Examples of org.openrdf.model.impl.LiteralImpl

  public void testValueRoundTrip3()
    throws Exception
  {
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("guernica");

    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

  public void testValueRoundTrip4()
    throws Exception
  {
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("guernica", "es");

    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

  public void testTimeZoneRoundTrip()
    throws Exception
  {
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("2006-08-23+00:00", XMLSchema.DATE);
    testValueRoundTrip(subj, pred, obj);

    con.removeStatements(null, null, null);
    obj = new LiteralImpl("2006-08-23", XMLSchema.DATE);
    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

    for (int i = 0; i < 512; i++) {
      sb.append(Character.toChars('A' + (i % 26)));
    }
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("guernica" + sb.toString());

    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

    for (int i = 0; i < 1024000; i++) {
      sb.append(Character.toChars('A' + (i % 26)));
    }
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("guernica" + sb.toString());

    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

    for (int i = 0; i < 512; i++) {
      sb.append(Character.toChars('A' + (i % 26)));
    }
    URI subj = new URIImpl(EXAMPLE_NS + PICASSO);
    URI pred = new URIImpl(EXAMPLE_NS + PAINTS);
    Literal obj = new LiteralImpl("guernica" + sb.toString(), "es");

    testValueRoundTrip(subj, pred, obj);
  }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

    try {
      List<String> columnNames = Arrays.asList("id");
      List<BindingSet> ids = new ArrayList<BindingSet>();

      for (String id : getRepositoryManager().getRepositoryIDs()) {
        ids.add(new ListBindingSet(columnNames, new LiteralImpl(id)));
      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

      try {
        while (iter.hasNext()) {
          Namespace ns = iter.next();

          Literal prefix = new LiteralImpl(ns.getPrefix());
          Literal namespace = new LiteralImpl(ns.getName());

          BindingSet bindingSet = new ListBindingSet(columnNames, prefix, namespace);
          namespaces.add(bindingSet);
        }
      }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

    try {
      List<String> columnNames = Arrays.asList("id");
      List<BindingSet> ids = new ArrayList<BindingSet>();

      for (String id : getRepositoryManager().getConfigTemplateManager().getIDs()) {
        ids.add(new ListBindingSet(columnNames, new LiteralImpl(id)));
      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

        logger.debug(dumpModelToRDFXML());

        assertModelNotEmpty();
        assertStatementsSize(null, null, null, 28);
        assertStatementsSize(null, RDF.TYPE, csv.rowType, 3);
        assertContains(null, csv.numberOfColumns, new LiteralImpl("4", XMLSchema.INTEGER));
        assertContains(null, csv.numberOfRows, new LiteralImpl("3", XMLSchema.INTEGER));
    }
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.