Package org.openrdf.model

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


      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

        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

        );
        assertContains(
                externalLinkURI,
                valueFactory.createURI("http://purl.org/dc/terms/title"),
                valueFactory.createLiteral("RDF+XML")

        );
        assertContains(
                externalLinkURI,
                valueFactory.createURI("http://purl.org/dc/terms/format"),
View Full Code Here

        );
        assertContains(
                externalLinkURI,
                valueFactory.createURI("http://purl.org/dc/terms/format"),
                valueFactory.createLiteral("application/rdf+xml")

        );
    }
}
View Full Code Here

  public Resource export(Graph graph) {
    Resource implNode = super.export(graph);
    ValueFactory vf = graph.getValueFactory();

    if (tripleIndexes != null) {
      graph.add(implNode, TRIPLE_INDEXES, vf.createLiteral(tripleIndexes));
    }
    if (forceSync) {
      graph.add(implNode, FORCE_SYNC, vf.createLiteral(forceSync));
    }
    if (valueCacheSize >= 0) {
View Full Code Here

    if (tripleIndexes != null) {
      graph.add(implNode, TRIPLE_INDEXES, vf.createLiteral(tripleIndexes));
    }
    if (forceSync) {
      graph.add(implNode, FORCE_SYNC, vf.createLiteral(forceSync));
    }
    if (valueCacheSize >= 0) {
      graph.add(implNode, VALUE_CACHE_SIZE, vf.createLiteral(valueCacheSize));
    }
    if (valueIDCacheSize >= 0) {
View Full Code Here

    }
    if (forceSync) {
      graph.add(implNode, FORCE_SYNC, vf.createLiteral(forceSync));
    }
    if (valueCacheSize >= 0) {
      graph.add(implNode, VALUE_CACHE_SIZE, vf.createLiteral(valueCacheSize));
    }
    if (valueIDCacheSize >= 0) {
      graph.add(implNode, VALUE_ID_CACHE_SIZE, vf.createLiteral(valueIDCacheSize));
    }
    if (namespaceCacheSize >= 0) {
View Full Code Here

    }
    if (valueCacheSize >= 0) {
      graph.add(implNode, VALUE_CACHE_SIZE, vf.createLiteral(valueCacheSize));
    }
    if (valueIDCacheSize >= 0) {
      graph.add(implNode, VALUE_ID_CACHE_SIZE, vf.createLiteral(valueIDCacheSize));
    }
    if (namespaceCacheSize >= 0) {
      graph.add(implNode, NAMESPACE_CACHE_SIZE, vf.createLiteral(namespaceCacheSize));
    }
    if (namespaceIDCacheSize >= 0) {
View Full Code Here

    }
    if (valueIDCacheSize >= 0) {
      graph.add(implNode, VALUE_ID_CACHE_SIZE, vf.createLiteral(valueIDCacheSize));
    }
    if (namespaceCacheSize >= 0) {
      graph.add(implNode, NAMESPACE_CACHE_SIZE, vf.createLiteral(namespaceCacheSize));
    }
    if (namespaceIDCacheSize >= 0) {
      graph.add(implNode, NAMESPACE_ID_CACHE_SIZE, vf.createLiteral(namespaceIDCacheSize));
    }
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.