Package org.openrdf.sail.nativerdf.model

Examples of org.openrdf.sail.nativerdf.model.NativeLiteral


    // Get label
    String label = new String(data, 6 + langLength, data.length - 6 - langLength, "UTF-8");

    if (datatype != null) {
      return new NativeLiteral(revision, label, datatype, id);
    }
    else if (lang != null) {
      return new NativeLiteral(revision, label, lang, id);
    }
    else {
      return new NativeLiteral(revision, label, id);
    }
  }
View Full Code Here


    return new NativeBNode(revision, nodeID);
  }

  @Override
  public NativeLiteral createLiteral(String value) {
    return new NativeLiteral(revision, value);
  }
View Full Code Here

    return new NativeLiteral(revision, value);
  }

  @Override
  public NativeLiteral createLiteral(String value, String language) {
    return new NativeLiteral(revision, value, language);
  }
View Full Code Here

    return new NativeLiteral(revision, value, language);
  }

  @Override
  public NativeLiteral createLiteral(String value, URI datatype) {
    return new NativeLiteral(revision, value, datatype);
  }
View Full Code Here

    if (isOwnValue(l)) {
      return (NativeLiteral)l;
    }

    if (l.getLanguage() != null) {
      return new NativeLiteral(revision, l.getLabel(), l.getLanguage());
    }
    else if (l.getDatatype() != null) {
      NativeURI datatype = getNativeURI(l.getDatatype());
      return new NativeLiteral(revision, l.getLabel(), datatype);
    }
    else {
      return new NativeLiteral(revision, l.getLabel());
    }
  }
View Full Code Here

    // Get label
    String label = new String(data, 6 + langLength, data.length - 6 - langLength, "UTF-8");

    if (datatype != null) {
      return new NativeLiteral(revision, label, datatype, id);
    }
    else if (lang != null) {
      return new NativeLiteral(revision, label, lang, id);
    }
    else {
      return new NativeLiteral(revision, label, id);
    }
  }
View Full Code Here

  public NativeBNode createBNode(String nodeID) {
    return new NativeBNode(revision, nodeID);
  }

  public NativeLiteral createLiteral(String value) {
    return new NativeLiteral(revision, value);
  }
View Full Code Here

  public NativeLiteral createLiteral(String value) {
    return new NativeLiteral(revision, value);
  }

  public NativeLiteral createLiteral(String value, String language) {
    return new NativeLiteral(revision, value, language);
  }
View Full Code Here

  public NativeLiteral createLiteral(String value, String language) {
    return new NativeLiteral(revision, value, language);
  }

  public NativeLiteral createLiteral(String value, URI datatype) {
    return new NativeLiteral(revision, value, datatype);
  }
View Full Code Here

    if (isOwnValue(l)) {
      return (NativeLiteral)l;
    }

    if (l.getLanguage() != null) {
      return new NativeLiteral(revision, l.getLabel(), l.getLanguage());
    }
    else if (l.getDatatype() != null) {
      NativeURI datatype = getNativeURI(l.getDatatype());
      return new NativeLiteral(revision, l.getLabel(), datatype);
    }
    else {
      return new NativeLiteral(revision, l.getLabel());
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.nativerdf.model.NativeLiteral

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.