Package org.openrdf.model

Examples of org.openrdf.model.LiteralFactory


    super(repository);
    this.repository = repository;
    this.client = client;

    URIFactory uf = repository.getURIFactory();
    LiteralFactory lf = repository.getLiteralFactory();
    HTTPBNodeFactory bf = new HTTPBNodeFactory(client.bnodes());
    this.vf = new ValueFactoryImpl(bf, uf, lf);

    this.creatorTrace = debugEnabled() ? new Throwable() : null;
  }
View Full Code Here


  public FederationConnection(Federation federation, List<RepositoryConnection> members) {
    this.federation = federation;

    BNodeFactoryImpl bf = new BNodeFactoryImpl();
    URIFactory uf = federation.getURIFactory();
    LiteralFactory lf = federation.getLiteralFactory();
    vf = new ValueFactoryImpl(bf, uf, lf);

    this.members = new ArrayList<SignedConnection>(members.size());
    for (RepositoryConnection member : members) {
      BNodeSigner signer = new BNodeSigner(bf, member.getValueFactory());
View Full Code Here

  private void createEmployee(String id, String name, int empId)
    throws StoreException
  {
    URIFactory uf = repository.getURIFactory();
    LiteralFactory lf = repository.getLiteralFactory();
    String foafName = "http://xmlns.com/foaf/0.1/name";
    String exEmpId = "http://example.org/ns#empId";
    RepositoryConnection conn = repository.getConnection();
    conn.add(uf.createURI("http://example.org/ns#" + id), uf.createURI(foafName), lf.createLiteral(name));
    conn.add(uf.createURI("http://example.org/ns#" + id), uf.createURI(exEmpId), lf.createLiteral(empId));
    conn.close();
  }
View Full Code Here

      PropertyDescriptor[] properties = info.getPropertyDescriptors();

      Repository repository = getRepository();
      RepositoryMetaData data = repository.getMetaData();
      URIFactory uf = repository.getURIFactory();
      LiteralFactory lf = repository.getLiteralFactory();

      URI subj = uf.createURI(getRequest().getResourceRef().toString(false, false));

      Model model = new LinkedHashModel();
      for (PropertyDescriptor p : properties) {
View Full Code Here

    this.quadStoreConnection = connection;
    this.repository = repository;
    this.useLazyAdd = repository.useLazyAdd;
    this.prefetchSize = repository.prefetchSize;
    URIFactory uf = repository.getURIFactory();
    LiteralFactory lf = repository.getLiteralFactory();
    this.vf = new ValueFactoryImpl(uf, lf);
    this.nilContext = getValueFactory().createURI(repository.defGraph);
    this.repository.initialize();

  }
View Full Code Here

TOP

Related Classes of org.openrdf.model.LiteralFactory

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.