Examples of translationTable()


Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

  }

  public void testEmptyTranslationTable() {
    Resource r = addTranslationTableResource();
    Mapping mapping = new MapParser(this.model, null).parse();
    TranslationTable table = mapping.translationTable(r);
    assertNotNull(table);
    assertEquals(0, table.size());
  }

  public void testGetSameTranslationTable() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

  public void testGetSameTranslationTable() {
    Resource r = addTranslationTableResource();
    addTranslationResource(r, "foo", "bar");
    Mapping mapping = new MapParser(this.model, null).parse();
    TranslationTable table1 = mapping.translationTable(r);
    TranslationTable table2 = mapping.translationTable(r);
    assertSame(table1, table2);
  }
 
  public void testParseTranslationTable() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

  public void testGetSameTranslationTable() {
    Resource r = addTranslationTableResource();
    addTranslationResource(r, "foo", "bar");
    Mapping mapping = new MapParser(this.model, null).parse();
    TranslationTable table1 = mapping.translationTable(r);
    TranslationTable table2 = mapping.translationTable(r);
    assertSame(table1, table2);
  }
 
  public void testParseTranslationTable() {
    Resource r = addTranslationTableResource();
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

 
  public void testParseTranslationTable() {
    Resource r = addTranslationTableResource();
    addTranslationResource(r, "foo", "bar");
    Mapping mapping = new MapParser(this.model, null).parse();
    TranslationTable table = mapping.translationTable(r);
    assertEquals(1, table.size());
    Translator translator = table.translator();
    assertEquals("bar", translator.toRDFValue("foo"));
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

    }
  }

  public void testTranslationTableRDFValueCanBeLiteral() {
    Mapping m = MappingHelper.readFromTestFile("parser/translation-table.ttl");
    TranslationTable tt = m.translationTable(ResourceFactory.createResource("http://example.org/tt"));
    assertEquals("http://example.org/foo", tt.translator().toRDFValue("literal"));
  }
 
  public void testTranslationTableRDFValueCanBeURI() {
    Mapping m = MappingHelper.readFromTestFile("parser/translation-table.ttl");
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.translationTable()

    assertEquals("http://example.org/foo", tt.translator().toRDFValue("literal"));
  }
 
  public void testTranslationTableRDFValueCanBeURI() {
    Mapping m = MappingHelper.readFromTestFile("parser/translation-table.ttl");
    TranslationTable tt = m.translationTable(ResourceFactory.createResource("http://example.org/tt"));
    assertEquals("http://example.org/foo", tt.translator().toRDFValue("uri"));
  }
 
  public void testTypeConflictClassMapAndBridgeIsDetected() {
    try {
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.