Examples of VocabularySearcher


Examples of com.google.refine.rdf.vocab.imp.VocabularySearcher

public class ImportPrefixTest {

  @Test
  public void testImportAndSeach()throws Exception{
    VocabularyImporter fakeImporter = new FakeImporter();
    VocabularySearcher searcher = new VocabularySearcher(new File("tmp"));
    searcher.importAndIndexVocabulary("foaf", "http://xmlns.com/foaf/0.1/", "http://xmlns.com/foaf/0.1/","1", fakeImporter);
   
    assertFalse(searcher.searchClasses("foaf:P", "1").isEmpty());
  }
View Full Code Here

Examples of org.deri.grefine.rdf.vocab.imp.VocabularySearcher

    return vocabularySearcher;
  }

  protected void init(File workingDir) throws IOException, JSONException{
    this.workingDir = workingDir;
    this.vocabularySearcher = new VocabularySearcher(this.workingDir);
    this.predefinedVocabularyManager = new PredefinedVocabularyManager(this,this.workingDir);
    InputStream in = this.getClass().getResourceAsStream("/files/prefixes");
    this.prefixManager = new PrefixManager(in);
  }
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.