Package org.openrdf.model

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


      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;
  }

  @Override
View Full Code Here


    for (String space : localPropertySpace) {
      model.add(implNode, LOCALPROPERTYSPACE, vf.createURI(space));
    }

    model.add(implNode, DISTINCT, vf.createLiteral(distinct));

    model.add(implNode, READ_ONLY, vf.createLiteral(readOnly));

    return implNode;
  }
View Full Code Here

      model.add(implNode, LOCALPROPERTYSPACE, vf.createURI(space));
    }

    model.add(implNode, DISTINCT, vf.createLiteral(distinct));

    model.add(implNode, READ_ONLY, vf.createLiteral(readOnly));

    return implNode;
  }

  @Override
View Full Code Here

    Resource repImplNode = super.export(model);

    ValueFactory vf = ValueFactoryImpl.getInstance();

    if (includeInferred != null) {
      Literal bool = vf.createLiteral(includeInferred);
      model.add(repImplNode, INCLUDE_INFERRED, bool);
    }
    if (maxQueryTime > 0) {
      model.add(repImplNode, MAX_QUERY_TIME, vf.createLiteral(maxQueryTime));
    }
View Full Code Here

    if (includeInferred != null) {
      Literal bool = vf.createLiteral(includeInferred);
      model.add(repImplNode, INCLUDE_INFERRED, bool);
    }
    if (maxQueryTime > 0) {
      model.add(repImplNode, MAX_QUERY_TIME, vf.createLiteral(maxQueryTime));
    }
    if (queryResultLimit >= 0) {
      model.add(repImplNode, QUERY_RESULT_LIMIT, vf.createLiteral(queryResultLimit));
    }
    if (queryLanguage != null) {
View Full Code Here

    }
    if (maxQueryTime > 0) {
      model.add(repImplNode, MAX_QUERY_TIME, vf.createLiteral(maxQueryTime));
    }
    if (queryResultLimit >= 0) {
      model.add(repImplNode, QUERY_RESULT_LIMIT, vf.createLiteral(queryResultLimit));
    }
    if (queryLanguage != null) {
      model.add(repImplNode, QUERY_LANGUAGE, vf.createLiteral(queryLanguage.getName()));
    }
    for (URI uri : readContexts) {
View Full Code Here

    }
    if (queryResultLimit >= 0) {
      model.add(repImplNode, QUERY_RESULT_LIMIT, vf.createLiteral(queryResultLimit));
    }
    if (queryLanguage != null) {
      model.add(repImplNode, QUERY_LANGUAGE, vf.createLiteral(queryLanguage.getName()));
    }
    for (URI uri : readContexts) {
      model.add(repImplNode, READ_CONTEXT, uri);
    }
    for (URI resource : addContexts) {
View Full Code Here

    BNode repositoryNode = vf.createBNode();

    model.add(repositoryNode, RDF.TYPE, REPOSITORY);

    if (title != null) {
      model.add(repositoryNode, REPOSITORYTITLE, vf.createLiteral(title));
      model.add(repositoryNode, RDFS.LABEL, vf.createLiteral(title));
    }
    if (implConfig != null) {
      Resource implNode = implConfig.export(model);
      model.add(repositoryNode, REPOSITORYIMPL, implNode);
View Full Code Here

    model.add(repositoryNode, RDF.TYPE, REPOSITORY);

    if (title != null) {
      model.add(repositoryNode, REPOSITORYTITLE, vf.createLiteral(title));
      model.add(repositoryNode, RDFS.LABEL, vf.createLiteral(title));
    }
    if (implConfig != null) {
      Resource implNode = implConfig.export(model);
      model.add(repositoryNode, REPOSITORYIMPL, implNode);
    }
View Full Code Here

    throws StoreException
  {
    RepositoryConnection con = repository.getConnection();
    try {
      ValueFactory vf = con.getValueFactory();
      con.add(vf.createURI(RNA_RECYCLE), RDFS.LABEL, vf.createLiteral("test"));
    }
    finally {
      con.close();
    }
  }
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.