Examples of translator()


Examples of de.fuberlin.wiwiss.d2rq.map.TranslationTable.translator()

    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"));
  }

  public void testParseAlias() {
    Mapping mapping = MappingHelper.readFromTestFile("parser/alias.ttl");
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.TranslationTable.translator()

  }

  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");
    TranslationTable tt = m.translationTable(ResourceFactory.createResource("http://example.org/tt"));
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.TranslationTable.translator()

  }
 
  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 {
      MappingHelper.readFromTestFile("parser/type-classmap-and-propertybridge.ttl");
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.