@Test public void testGetTargetElementsMatchedBy() throws Exception { System.out.println(matchGraph.getTargetElementsMatchedBy(kb.getConcept("con864995873"))); }
@Override public Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source) { Map<Concept,Boolean> result = new HashMap<Concept, Boolean>(); for(Concept target : kb.getSuperclasses(source)){ result.put(target, true); } result.put(source, true); return result; }
WSCKBMatchGraph extends AbstractMatchGraph<Concept, Boolean> { @Override public Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source) { Map<Concept,Boolean> result = new HashMap<Concept, Boolean>(); for(Concept target : kb.getSuperclasses(source)){ result.put(target, true); } result.put(source, true); return result; } }
WSCKBMatchGraph extends AbstractMatchGraph<Concept, Boolean> { @Override public Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source) { Map<Concept,Boolean> result = new HashMap<Concept, Boolean>(); for(Concept target : kb.getSuperclasses(source)){ result.put(target, true); } result.put(source, true); return result; } WSCKBMatchGraph(HierarchicalKnowledgeBase kb); }
WSCKBMatchGraph extends AbstractMatchGraph<Concept, Boolean> { @Override public Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source) { Map<Concept,Boolean> result = new HashMap<Concept, Boolean>(); for(Concept target : kb.getSuperclasses(source)){ result.put(target, true); } result.put(source, true); return result; } WSCKBMatchGraph(HierarchicalKnowledgeBase kb); @Override Set<Concept> getElements(); @Override Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source); @Override Map<Concept, Boolean> getSourceElementsThatMatch(Concept target); @Override MatchTable<Concept, Boolean> partialMatch(Set<Concept> source, Set<Concept> target); @Override MatchTable<Concept, Boolean> fullMatch(Set<Concept> source, Set<Concept> target); @Override Boolean match(Concept source, Concept target); }
WSCKBMatchGraph extends AbstractMatchGraph<Concept, Boolean> { @Override public Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source) { Map<Concept,Boolean> result = new HashMap<Concept, Boolean>(); for(Concept target : kb.getSuperclasses(source)){ result.put(target, true); } result.put(source, true); return result; } WSCKBMatchGraph(HierarchicalKnowledgeBase kb); @Override Set<Concept> getElements(); @Override Map<Concept, Boolean> getTargetElementsMatchedBy(Concept source); @Override Map<Concept, Boolean> getSourceElementsThatMatch(Concept target); @Override MatchTable<Concept, Boolean> partialMatch(Set<Concept> source, Set<Concept> target); @Override MatchTable<Concept, Boolean> fullMatch(Set<Concept> source, Set<Concept> target); @Override Boolean match(Concept source, Concept target);  }