Package virtuoso.sql

Examples of virtuoso.sql.RdfBox


          throw new RepositoryException("VirtuosoRepositoryConnection().castValue() Invalid value from Virtuoso: \"" + valueString + "\", STRTYPE = " + ves.getIriType(), iaex);
        }
      }
    }
    else if (val instanceof RdfBox) {
      RdfBox rb = (RdfBox) val;
      if (rb.getLang() != null) {
        return getRepository().getValueFactory().createLiteral(rb.toString(), rb.getLang());
      }
      else if (rb.getType() != null) {
        return getRepository().getValueFactory().createLiteral(rb.toString(), this.getRepository().getValueFactory().createURI(rb.getType()));
      }
      else {
        return getRepository().getValueFactory().createLiteral(rb.toString());
      }
    }
    else if (val instanceof java.lang.Long) {
      return getRepository().getValueFactory().createLiteral(((Long) val).longValue());
    }
View Full Code Here


          throw new StoreException("VirtuosoRepositoryConnection().castValue() Invalid value from Virtuoso: \"" + valueString + "\", STRTYPE = " + ves.getIriType(), iaex);
        }
      }
    }
    else if (val instanceof RdfBox) {
      RdfBox rb = (RdfBox) val;
      if (rb.getLang() != null) {
        return getValueFactory().createLiteral(rb.toString(), rb.getLang());
      }
      else if (rb.getType() != null) {
        return getValueFactory().createLiteral(rb.toString(), getValueFactory().createURI(rb.getType()));
      }
      else {
        return getValueFactory().createLiteral(rb.toString());
      }
    }
    else if (val instanceof java.lang.Integer) {
      return getValueFactory().createLiteral(((Integer) val).intValue());
    }
View Full Code Here

TOP

Related Classes of virtuoso.sql.RdfBox

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.