Package com.google.refine.browsing

Examples of com.google.refine.browsing.Engine


  public void init()throws Exception{
    expected = buildExpectedModel();
    ApplicationContext ctxt = new ApplicationContext();
    schema = getRdfSchema();
    project = RdfExporterFacultyDataTest.buildTheSampleProject(schema);
    engine = new Engine(project);
    exporter = new RdfExporter(ctxt,RDFFormat.RDFXML);
    ControlFunctionRegistry.registerFunction("urlify", new Urlify());
    ExpressionUtils.registerBinder(new RdfBinder(ctxt));
         
    model = exporter.buildModel(project, engine, schema);
View Full Code Here


    expected.initialize();
    RepositoryConnection con = expected.getConnection();
    con.add(this.getClass().getResourceAsStream("/rdfschema-payment.rdf"),"",RDFFormat.RDFXML);
   
    //export the project
    engine = new Engine(project);
    exporter = new RdfExporter(ctxt,RDFFormat.RDFXML);
    model = exporter.buildModel(project, engine, schema);
  }
View Full Code Here

    schema = getRdfSchema();
   
    ApplicationContext ctxt = new ApplicationContext();
   
    buildTheSampleProject();
    engine = new Engine(project);
    exporter = new RdfExporter(ctxt,RDFFormat.RDFXML);
    ControlFunctionRegistry.registerFunction("urlify", new Urlify());
    ExpressionUtils.registerBinder(new RdfBinder(ctxt));
 
   
View Full Code Here

            ColumnModel columnModel = project.columnModel;
           
            List<Object> values = new ArrayList<Object>();
            List<String> columns = new ArrayList<String>();

            Engine engine = new Engine(project);
            JSONObject engineConfig = null;

            try {
                engineConfig = ParsingUtilities.evaluateJsonStringToObject(request.getParameter("engine"));
            } catch (JSONException e) {
                // ignore
            }

            engine.initializeFromJSON(engineConfig);

            FilteredRows filteredRows = engine.getAllFilteredRows();
            filteredRows.accept(project, createRowVisitor(project, values));
           
            JSONArray stuff = new JSONArray();

            for (Column col : project.columnModel.columns) {
View Full Code Here

        ckanApiBase = ckanApiBase.substring(0, ckanApiBase.length()-1);
      }
     
      CkanApiProxy ckanApiClient = new CkanApiProxy();
         
      Engine engine = getEngine(request, project);
      StringTokenizer tokenizer = new StringTokenizer(files, ",");
      Set<Exporter> exporters = new HashSet<Exporter>();
      while(tokenizer.hasMoreTokens()){
        String format = tokenizer.nextToken();
        Exporter exporter = ExporterRegistry.getExporter(format);
View Full Code Here

TOP

Related Classes of com.google.refine.browsing.Engine

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.