### Question:
SPARQLModelIndex extends Index { public static SPARQLModelIndex createClassIndex(String endpoint, String defaultGraph,float minSimilarity) { return createIndex(endpoint, defaultGraph, Lists.newArrayList(OWL.Class,RDFS.Class),minSimilarity); } SPARQLModelIndex(Model model,float minSimilarity); @Override IndexResultSet getResourcesWithScores(String searchTerm, int limit); static SPARQLModelIndex createPropertyIndex(String endpoint, String defaultGraph,float minSimilarity); static SPARQLModelIndex createClassIndex(String endpoint, String defaultGraph,float minSimilarity); static SPARQLModelIndex createIndex(String endpoint, String defaultGraph,List<Resource> types,float minSimilarity); static final ParameterizedSparqlString queryTemplate; }### Answer:
@Test public void testCreateClassIndex() { SPARQLModelIndex index = SPARQLModelIndex.createClassIndex("http: assertTrue(index.getResources("City").contains("http: }
@Test public void testWordNetIndex() { SPARQLModelIndex index = SPARQLModelIndex.createClassIndex("http: WordNetIndex wIndex = new WordNetIndex(index); assertTrue(wIndex.getResources("cities").contains("http: assertTrue(wIndex.getResources("aerodromes").contains("http: }
@Test public void testFuzzy() { SPARQLModelIndex index = SPARQLModelIndex.createClassIndex("http: assertTrue(index.getResources("mirporg").get(0).equals("http: }