Package lupos.engine.operators.index

Examples of lupos.engine.operators.index.Dataset


      final Runnable task = new Runnable() {

        public void run() {
          // get the local evaluator and things for unmarshalling data
          QueryEvaluator<?> eval = getEvaluator();
          Dataset dataset = null;
          // get the creator
          IOperatorCreator creater = new QueryClientOperatorCreator();
          // get the dataset
          if (eval instanceof BasicIndexQueryEvaluator) {
            dataset = ((BasicIndexQueryEvaluator) eval)
View Full Code Here


  @Override
  public long prepareInputData(final Collection<URILiteral> defaultGraphs,
      final Collection<URILiteral> namedGraphs) throws Exception {
    final Date a = new Date();
    super.prepareInputData(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs, this.type,
        this.getMaterializeOntology(), this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new QueryClientIndices(uriLiteral, QueryClient.this.storage);
      }
View Full Code Here

      final Collection<URILiteral> defaultGraphs,
      final Collection<Tuple<URILiteral, URILiteral>> namedGraphs)
      throws Exception {
    final Date a = new Date();
    super.prepareInputDataWithSourcesOfNamedGraphs(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs,
        this.getMaterializeOntology(), this.type, this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new QueryClientIndices(uriLiteral, QueryClient.this.storage);
      }
View Full Code Here

  @Override
  public long prepareInputData(final Collection<URILiteral> defaultGraphs,
      final Collection<URILiteral> namedGraphs) throws Exception {
    final Date a = new Date();
    super.prepareInputData(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs, this.type,
        getMaterializeOntology(), this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new SevenMemoryIndices(uriLiteral);
      }
View Full Code Here

      Collection<URILiteral> defaultGraphs,
      Collection<Tuple<URILiteral, URILiteral>> namedGraphs)
      throws Exception {
    final Date a = new Date();
    super.prepareInputDataWithSourcesOfNamedGraphs(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs,
        getMaterializeOntology(), this.type, this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new SevenMemoryIndices(uriLiteral);
      }
View Full Code Here

    super.prepareInputData(defaultGraphs, namedGraphs);
    long timeUsed;
    if (this.loadindexinfo) {
      final InputStream in =
          new BufferedInputStream(defaultGraphs.iterator().next().openStream());
      this.dataset = new Dataset(
          this.type,
          this.getMaterializeOntology(),
          this.opt,
          new Dataset.IndicesFactory() {
                @Override
                public Indices createIndices(
                    final URILiteral uriLiteral) {
                  return new SixIndices(uriLiteral, false);
                }

                @Override
                public lupos.engine.operators.index.Root createRoot() {
                  final RDF3XRoot ic = new RDF3XRoot();
                  ic.dataset = RDF3XQueryEvaluator.this.dataset;
                  return ic;
                }
              }, in);
      in.close();
      timeUsed = ((new Date()).getTime() - a.getTime());
    } else {
      this.dataset = new Dataset(
          defaultGraphs,
          namedGraphs,
          this.type,
          this.getMaterializeOntology(),
          this.opt,
View Full Code Here

    final Date a = new Date();
    super.prepareInputDataWithSourcesOfNamedGraphs(defaultGraphs, namedGraphs);
    long timeUsed;
    if (this.loadindexinfo) {
      final InputStream in = defaultGraphs.iterator().next().openStream();
      this.dataset = new Dataset(
          this.type,
          this.getMaterializeOntology(),
          this.opt,
          new Dataset.IndicesFactory() {
                @Override
                public Indices createIndices(
                    final URILiteral uriLiteral) {
                  return new SixIndices(uriLiteral, false);
                }

                @Override
                public lupos.engine.operators.index.Root createRoot() {
                  final RDF3XRoot ic = new RDF3XRoot();
                  ic.dataset = RDF3XQueryEvaluator.this.dataset;
                  return ic;
                }
              }, in);
      in.close();
      timeUsed = ((new Date()).getTime() - a.getTime());
    } else {
      this.dataset = new Dataset(
          defaultGraphs,
          namedGraphs,
          this.getMaterializeOntology(),
          this.type,
          this.opt,
View Full Code Here

          }
        } catch (final URISyntaxException e1) {
          System.err.println(e1);
          e1.printStackTrace();
        }
        final Dataset dataset = new Dataset(
            defaultGraphs,
            new LinkedList<URILiteral>(),
            inp[0],
            this.getONTOLOGYRDFS(this.rdfs),
            BasicIndexScan.MERGEJOIN,
            new Dataset.IndicesFactory() {
              @Override
              public Indices createIndices(
                  final URILiteral uriLiteral) {
                return new SixIndices(uriLiteral);
              }

              @Override
              public lupos.engine.operators.index.Root createRoot() {
                return new lupos.engine.operators.index.adaptedRDF3X.RDF3XRoot();
              }
            }, this.debug == DEBUG.ALL || this.debug == DEBUG.WITHOUTRESULT,
            this.inmemoryexternalontologyinference);
        // get now the data plus inferred triples of the external
        // ontology...
        this.externalOntology = (SixIndices) dataset
            .getDefaultGraphIndices().iterator().next();
      }
    } else {
      this.externalOntology = null;
    }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.index.Dataset

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.