Examples of Query()


Examples of com.clarkparsia.sparqlowl.parser.antlr.SparqlOwlParser.query()

    final SparqlOwlLexer lexer = new SparqlOwlLexer( new ANTLRStringStream( queryString ) );
    final CommonTokenStream tokenStream = new CommonTokenStream( lexer );
    final SparqlOwlParser parser = new SparqlOwlParser( tokenStream );
    SparqlOwlParser.query_return result;
    try {
      result = parser.query();
    } catch( RecognitionException e ) {
      throw new QueryParseException( format( "%s %s", parser.getErrorHeader( e ), parser
          .getErrorMessage( e, parser.getTokenNames() ) ), e.line, e.charPositionInLine );
    }
    final CommonTree t = (CommonTree) result.getTree();
View Full Code Here

Examples of com.clarkparsia.sparqlowl.parser.antlr.SparqlOwlTreeARQ.query()

    nodes.setTokenStream( tokenStream );

    final SparqlOwlTreeARQ treeWalker = new SparqlOwlTreeARQ( nodes );

    try {
      treeWalker.query( query );
    } catch( RecognitionException e ) {
      throw new QueryParseException( format( "%s %s", treeWalker.getErrorHeader( e ),
          treeWalker.getErrorMessage( e, parser.getTokenNames() ) ), e.line,
          e.charPositionInLine );
    }
View Full Code Here

Examples of com.cloudera.recordbreaker.analyzer.DataQuery.query()

            FSAnalyzer fsa = fe.getAnalyzer();
            FileSummaryData fsd = fsa.getFileSummaryData(fid);
            DataDescriptor dd = fsd.getDataDescriptor();

            if (dq != null) {
              queryResults = dq.query(dd, null, projClauseStr, selClauseStr);
            }
          } catch (Exception ex) {
            ex.printStackTrace();
          }
        }
View Full Code Here

Examples of com.couchbase.client.core.message.view.ViewQueryRequest.query()

        if (msg instanceof ViewQueryRequest) {
            ViewQueryRequest queryMsg = (ViewQueryRequest) msg;
            path.append("/").append(msg.bucket()).append("/_design/");
            path.append(queryMsg.development() ? "dev_" + queryMsg.design() : queryMsg.design());
            path.append("/_view/").append(queryMsg.view());
            if (queryMsg.query() != null && !queryMsg.query().isEmpty()) {
                path.append("?").append(queryMsg.query());
            }
        } else if (msg instanceof GetDesignDocumentRequest) {
            GetDesignDocumentRequest queryMsg = (GetDesignDocumentRequest) msg;
            path.append("/").append(msg.bucket()).append("/_design/");
View Full Code Here

Examples of com.db4o.ObjectContainer.query()

    ObjectContainer db = Db4o.openFile(DBManager.createConfiguration(false), originDbFile.getAbsolutePath());
    ObjectContainer defragmentedDb = Db4o.openFile(DBManager.createConfiguration(false), defragmentedDbFile.getAbsolutePath());

    /* Assert Number of Entities */
    List<IEntity> entities = db.query(IEntity.class);
    assertEquals(entities.size(), defragmentedDb.query(IEntity.class).size());
    for (IEntity entity : entities) {
      Query query = defragmentedDb.query();
      query.constrain(entity.getClass());
      query.descend("fId").constrain(Long.valueOf(entity.getId())); //$NON-NLS-1$

View Full Code Here

Examples of com.db4o.ext.Db4oDatabase.query()

        if (getYapObject(obj) != null) {
            return database;
        }
        showInternalClasses(true);
        try {
          return database.query(trans);
        } finally {
          showInternalClasses(false);
        }
    }
View Full Code Here

Examples of com.db4o.ext.ExtObjectContainer.query()

      for(final ReflectClass rc : rcs) {
        if(rc.getDelegate() instanceof JdkClass) {
          final Class<?> objType = ((JdkClass) rc.getDelegate()).getJavaClass();
          final String cn = objType.getName();
          if(cn.indexOf("com.db4o") < 0 && objType != Object.class && cn.indexOf("java") < 0) {
            final Collection<?> clc = s.query(objType);
            if(clc != null) {
              for(final Object o : clc) {
                log.debug("Removing object: " + o);
                s.delete(o);
              }
View Full Code Here

Examples of com.espertech.esper.epl.agg.rollup.GroupByRollupPlanHook.query()

        // callback when hook reporting enabled
        try {
            GroupByRollupPlanHook hook = (GroupByRollupPlanHook) JavaClassHelper.getAnnotationHook(validationContext.getAnnotations(), HookType.INTERNAL_GROUPROLLUP_PLAN, GroupByRollupPlanHook.class, null);
            if (hook != null) {
                hook.query(new GroupByRollupPlanDesc(validated, rollup));
            }
        }
        catch (ExprValidationException e) {
            throw new EPException("Failed to obtain hook for " + HookType.INTERNAL_QUERY_PLAN);
        }
View Full Code Here

Examples of com.germinus.ecm.bean.ECMRepository.query()

        JSONObject metadataList = repoConfig.getJSONObject("metainfo").getJSONObject("metainfo-ctype"+ String.valueOf(i));
        JSONArray metadata = metadataList.getJSONArray("propertyStringDefinition");

                ecm = new ECMRepository(user, pwd);
        Feed feedResp = ecm.query(urlQueryService, contentType, rootFolderId, query, metadata, ticket);
System.out.println(feedResp.toString());
        List<Entry> contents = feedResp.getEntries();
        Entry content = null;

        for (int j=0; j<contents.size(); j++) {
View Full Code Here

Examples of com.gi.engine.carto.FeatureLayer.query()

          if (layer != null && layer instanceof FeatureLayer) {
            FeatureLayer featureLayer = (FeatureLayer) layer;
            try {
              QueryParam queryParam = new QueryParam();
              queryParam.setWhere(where);
              FeatureCollection<? extends FeatureType, ? extends Feature> layerFeatureCollection = featureLayer
                  .query(queryParam);
              if (layerFeatureCollection != null
                  && !layerFeatureCollection.isEmpty()) {
                for (FeatureIterator<? extends Feature> itr = layerFeatureCollection
                    .features(); itr.hasNext();) {
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.