Package de.fuberlin.wiwiss.d2rq.find

Examples of de.fuberlin.wiwiss.d2rq.find.FindQuery


    if (inventoryBridges == null) {
      return null;
    }
    Model result = ModelFactory.createDefaultModel();
    result.setNsPrefixes(mapping.getPrefixMapping());
    FindQuery query = new FindQuery(Triple.ANY, inventoryBridges, limitPerClassMap, null);
    result.getGraph().getBulkUpdateHandler().add(TripleQueryIter.create(query.iterator()));
    return result;
  }
View Full Code Here


          qIter.cancel();
        }
      }, timeout);
    }
   
    FindQuery outgoing = new FindQuery(
        Triple.create(node, Node.ANY, Node.ANY),
        mapping.compiledPropertyBridges(), limit, context);
    qIter.add(outgoing.iterator());
   
    if (!onlyOutgoing) {
      FindQuery incoming = new FindQuery(
          Triple.create(Node.ANY, Node.ANY, node),
          mapping.compiledPropertyBridges(), limit, context);
      qIter.add(incoming.iterator());
 
      FindQuery triples = new FindQuery(
          Triple.create(Node.ANY, node, Node.ANY),
          mapping.compiledPropertyBridges(), limit, context);
      qIter.add(triples.iterator());
    }
    result.getBulkUpdateHandler().add(TripleQueryIter.create(qIter));
   
    if (pingback != null) {
      AlarmClock.get().cancel(pingback);
View Full Code Here

    checkOpen();
    Triple t = m.asTriple();
    if (log.isDebugEnabled()) {
      log.debug("Find: " + PrettyPrinter.toString(t, getPrefixMapping()));
    }
    FindQuery query = new FindQuery(t, mapping.compiledPropertyBridges(), null);
    ExtendedIterator<Triple> result = TripleQueryIter.create(query.iterator());
    if (mapping.configuration().getServeVocabulary()) {
      result = result.andThen(mapping.getVocabularyModel().getGraph().find(t));
    }
    return result;
    }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.find.FindQuery

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.