Package lupos.datastructures.items.literal.string

Examples of lupos.datastructures.items.literal.string.StringURILiteral


      LazyLiteral.setHm(new StringIntegerMapJava(simap));

      final StringArray ismap = new StringArray();
      LazyLiteral.setV(ismap);

      final URILiteral defaultGraph = new StringURILiteral("<http://localhost/default>");
      // just for inserting it into the codemap:
      defaultGraph.createThisLiteralNew();

      final Indices indices = new SixIndices(defaultGraph, true);

      // write out index info
View Full Code Here


      final Collection<URILiteral> namedGraphs, final String dataFormat,
      final ONTOLOGY materialize, final int opt,
      final IndicesFactory indicesFactory, final boolean debug,
      final boolean inMemoryExternalOntologyComputation, final Collection<String> toAddToRdftermsRepresentations) throws Exception {
    if(defaultGraphs.size()==0){
      defaultGraphs.add(new StringURILiteral("<inlinedata:>"));
    }
    this.indicesFactory = indicesFactory;
    this.dataFormat = dataFormat;
    this.materialize = materialize;
    this.opt = opt;
View Full Code Here

  public long prepareInputData(final Collection<URILiteral> defaultGraphs,
      final Collection<URILiteral> namedGraphs) throws Exception {
    final Date a=new Date();
    // there should be at least one default graphs (especially for update operations...)
    if(defaultGraphs.size()==0) {
      defaultGraphs.add(new StringURILiteral("<inlinedata:>"));
    }
    return (new Date().getTime())-a.getTime();
  }
View Full Code Here

      final Collection<Tuple<URILiteral, URILiteral>> namedGraphs)
      throws Exception {
    final Date a=new Date();
    // there should be at least one default graphs (especially for update operations...)
    if(defaultGraphs.size()==0){
      defaultGraphs.add(new StringURILiteral("<inlinedata:>"));
    }
    return (new Date().getTime())-a.getTime();
  }
View Full Code Here

              flag = true;
              indices.add(t);
            }
            if(!flag){
              try {
                this.dataset.addNamedGraph(uri, new StringURILiteral("<inlinedata:"+t.getSubject()+" "+t.getPredicate()+" "+t.getObject()+".>"), false, false);
              } catch (Exception e) {
                System.err.println(e);
                e.printStackTrace();
              }
            }
View Full Code Here

    }
//    indices = dataset.getDefaultGraphIndices(uri);
//    if (indices != null && !silent)
//      throw new Error("Default Graph "+uri+" already exists");
    try {
      dataset.addNamedGraph(uri, new StringURILiteral("<inlinedata: >"), false, false);
    } catch (URISyntaxException e) {
      System.err.println(e);
      e.printStackTrace();
    } catch (Exception e) {
      System.err.println(e);
View Full Code Here

      final int type = InputHelper.readLuposByte(in);
      switch (type) {
      case LuposObjectInputStream.URILITERAL:
        if (mapType == MapType.NOCODEMAP
            || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) {
          return new StringURILiteral("<" + InputHelper.readLuposString(in)
              + ">");
        } else if (mapType == MapType.PREFIXCODEMAP
            || mapType == MapType.LAZYLITERAL) {
          return new CodeMapURILiteral(InputHelper.readLuposString(in), InputHelper.readLuposInt(in));
        } else {
View Full Code Here

  public static URILiteral createURILiteralWithoutLazyLiteral(
      final String content) throws java.net.URISyntaxException {
    if (mapType == MapType.NOCODEMAP
        || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) {
      return new StringURILiteral(content);
    } else {
      return new CodeMapURILiteral(content);
    }
  }
View Full Code Here

  public static URILiteral createURILiteralWithoutLazyLiteralWithoutException(
      final String content) {
    try {
      if (mapType == MapType.NOCODEMAP
          || mapType == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) {
        return new StringURILiteral(content);
      } else {
        return new CodeMapURILiteral(content);
      }
    } catch(final java.net.URISyntaxException e){
      System.err.println(e);
View Full Code Here

      return null;
    }
  }

  public static URILiteral createStringURILiteral(final String content) throws URISyntaxException {
    return new StringURILiteral(content);
  }
View Full Code Here

TOP

Related Classes of lupos.datastructures.items.literal.string.StringURILiteral

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.