Package edu.isi.karma.kr2rml.mapping

Examples of edu.isi.karma.kr2rml.mapping.R2RMLMappingIdentifier


    PythonRepository.disableReloadingLibrary();
  }

  private void addModel() throws MalformedURLException {
    getModel();
    generator.addModel(new R2RMLMappingIdentifier("model", modelURL));
  }
View Full Code Here


  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "fold-top-model", getTestResource(
             "fold/fold-top-model.ttl"));
    rdfGen.addModel(modelIdentifier);
    modelIdentifier = new R2RMLMappingIdentifier(
        "fold-nested-model", getTestResource(
             "fold/fold-nested-model.ttl"));
    rdfGen.addModel(modelIdentifier);
   
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "organize-columns-model", getTestResource(
             "organizecolumns/organize-columns-model.ttl"));
    rdfGen.addModel(modelIdentifier);
   
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "unfold-top-model", getTestResource(
             "unfold/unfold-top-model.ttl"));
    rdfGen.addModel(modelIdentifier);
    modelIdentifier = new R2RMLMappingIdentifier(
        "unfold-nested-model", getTestResource(
             "unfold/unfold-nested-model.ttl"));
    rdfGen.addModel(modelIdentifier);
   
  }
View Full Code Here

    if (contextFile != null) {
      File tmp = new File(contextFile);
      contextId = new ContextIdentifier(tmp.getName(), tmp.toURI().toURL());
    }
    if(inputType.equals("DB")) {
      R2RMLMappingIdentifier id = new R2RMLMappingIdentifier(tablename, modelURL);
      createWriters();
      dbRdfGen.generateRDFFromTable(tablename, writers, id, contextId, baseURI);
    } else {
      String query = loadQueryFromFile();
      R2RMLMappingIdentifier id = new R2RMLMappingIdentifier(modelURL.toString(), modelURL);
      createWriters();
      dbRdfGen.generateRDFFromSQL(query, writers, id, contextId, baseURI);
    }

View Full Code Here

    if(!validateFileCommandLineOptions())
    {
      logger.error("Unable to generate RDF from file because of invalid configuration");
      return;
    }
    R2RMLMappingIdentifier id = new R2RMLMappingIdentifier(sourceName, modelURL);

    createWriters();
    GenericRDFGenerator rdfGenerator = new GenericRDFGenerator(selectionName, killTripleMap, stopTripleMap, POMToKill, rootTripleMap);
    rdfGenerator.addModel(id);
View Full Code Here

  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "people-model", getTestResource(
             "people-model.ttl"));
    rdfGen.addModel(modelIdentifier);
   
    modelIdentifier = new R2RMLMappingIdentifier("cs548-events-model",
         getTestResource("cs548-events-model.ttl")
            );
    rdfGen.addModel(modelIdentifier);
    modelIdentifier = new R2RMLMappingIdentifier(
        "employees-model", getTestResource(
             "employees-model.ttl"));
    rdfGen.addModel(modelIdentifier);
  }
View Full Code Here

    pythonCode.append("if getValue(\"title\") == \"Prof\": \n");
    pythonCode.append("   return True \n");
    Selection sel = new MiniSelection(workspace, worksheet.getId(),
        worksheet.getHeaders().getId(), workspace.getFactory().getNewId("SEL"), "test",
        pythonCode.toString(), true);
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "people-model", getTestResource(
             "people-model.ttl"));
    worksheet.getSuperSelectionManager().defineSelection("test").addSelection(sel);
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
View Full Code Here

  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "glue-nested-model", getTestResource(
             "glue/glue-nested-model.ttl"));
    rdfGen.addModel(modelIdentifier);
    modelIdentifier = new R2RMLMappingIdentifier(
        "glue-top-model", getTestResource(
             "glue/glue-top-model.ttl"));
    rdfGen.addModel(modelIdentifier);
   
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    rdfGen = new GenericRDFGenerator(null);

    // Add the models in
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "menu-model", getTestResource(
             "menu.json.model.txt"));
    rdfGen.addModel(modelIdentifier);
    modelIdentifier = new R2RMLMappingIdentifier(
        "menus-model", getTestResource(
             "menus.json.model.txt"));
    rdfGen.addModel(modelIdentifier);
 
  }
View Full Code Here

TOP

Related Classes of edu.isi.karma.kr2rml.mapping.R2RMLMappingIdentifier

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.