Package org.openrdf.sail.nativerdf.model

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


    int nsID = ByteArrayUtil.getInt(data, 1);
    String namespace = getNamespace(nsID);

    String localName = new String(data, 5, data.length - 5, "UTF-8");

    return new NativeURI(revision, namespace, localName, id);
  }
View Full Code Here


  /*-------------------------------------*
   * Methods from interface ValueFactory *
   *-------------------------------------*/

  public NativeURI createURI(String uri) {
    return new NativeURI(revision, uri);
  }
View Full Code Here

  public NativeURI createURI(String uri) {
    return new NativeURI(revision, uri);
  }

  public NativeURI createURI(String namespace, String localName) {
    return new NativeURI(revision, namespace, localName);
  }
View Full Code Here

  public NativeURI getNativeURI(URI uri) {
    if (isOwnValue(uri)) {
      return (NativeURI)uri;
    }

    return new NativeURI(revision, uri.toString());
  }
View Full Code Here

    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

    int nsID = ByteArrayUtil.getInt(data, 1);
    String namespace = getNamespace(nsID);

    String localName = new String(data, 5, data.length - 5, "UTF-8");

    return new NativeURI(revision, namespace, localName, id);
  }
View Full Code Here

  /*-------------------------------------*
   * Methods from interface ValueFactory *
   *-------------------------------------*/

  public NativeURI createURI(String uri) {
    return new NativeURI(revision, uri);
  }
View Full Code Here

  public NativeURI createURI(String uri) {
    return new NativeURI(revision, uri);
  }

  public NativeURI createURI(String namespace, String localName) {
    return new NativeURI(revision, namespace, localName);
  }
View Full Code Here

  public NativeURI getNativeURI(URI uri) {
    if (isOwnValue(uri)) {
      return (NativeURI)uri;
    }

    return new NativeURI(revision, uri.toString());
  }
View Full Code Here

    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.NativeURI

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.