Package com.google.refine.rdf.expr

Examples of com.google.refine.rdf.expr.RdfBinder


    schema = getRdfSchema();
    project = 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);
   
    assertEquals(project.rows.size(),3);
    assertEquals(project.columnModel.getColumnIndexByName("Advisor"),5);
View Full Code Here


    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);
   
    assertEquals(project.rows.size(),3);
    assertEquals(project.columnModel.getColumnIndexByName("Advisor"),5);
View Full Code Here

  public void init()throws Exception{
    InputStream in = this.getClass().getResourceAsStream("/rdfschema-payment.csv");
    ApplicationContext ctxt = new ApplicationContext();
   
    ControlFunctionRegistry.registerFunction("urlify", new Urlify());
    ExpressionUtils.registerBinder(new RdfBinder(ctxt));
   
    project = new Project();
    ProjectMetadata meta = new ProjectMetadata();
   
    Properties options = new Properties();
View Full Code Here

   
    buildTheSampleProject();
    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);
   
    assertEquals(project.rows.size(),2);
View Full Code Here

TOP

Related Classes of com.google.refine.rdf.expr.RdfBinder

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.