Examples of NativeURI


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

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

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

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

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

  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

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

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

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

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

    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

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

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

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

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

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

  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

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

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

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

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

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