Package org.openrdf.sail.rdbms.model

Examples of org.openrdf.sail.rdbms.model.RdbmsLiteral


  }

  public RdbmsLiteral getRdbmsLiteral(Number num, String label, String language, String datatype) {
    Number id = ids.idOf(num);
    if (datatype == null && language == null) {
      return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label));
    }
    if (datatype == null) {
      return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label, language));
    }
    return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label, vf.createURI(datatype)));
  }
View Full Code Here


    try {
      if (literal instanceof RdbmsLiteral) {
        literals.cache((RdbmsLiteral)literal);
        return (RdbmsLiteral)literal;
      }
      RdbmsLiteral lit = literals.findInCache(literal);
      if (lit == null) {
        lit = new RdbmsLiteral(literal);
        literals.cache(lit);
      }
      return lit;
    }
    catch (InterruptedException e) {
View Full Code Here

  public RdbmsLiteral getRdbmsLiteral(Number num, String label, String language,
      String datatype) {
    Number id = ids.idOf(num);
    if (datatype == null && language == null)
      return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label), null);
    if (datatype == null)
      return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label, language), null);
    return new RdbmsLiteral(id, literals.getIdVersion(), vf.createLiteral(label, vf.createURI(datatype)), null);
  }
View Full Code Here

      if (literal instanceof RdbmsLiteral) {
        literals.cache((RdbmsLiteral) literal);
        ((RdbmsLiteral)literal).setPredicate(predicate);
        return (RdbmsLiteral) literal;
      }
      RdbmsLiteral lit = literals.findInCache(literal);
      if (lit == null) {
        lit = new RdbmsLiteral(literal, predicate);
        literals.cache(lit);
      }
      return lit;
    } catch (SQLException e) {
      throw new RdbmsRuntimeException(e);
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.model.RdbmsLiteral

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.