Skip to content

Commit 0380568

Browse files
committed
add comment and modify matchPlainRDFNodes
1 parent 1ca2b5f commit 0380568

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public class Demo
7373
ModelStorage source = new ModelStorage("src/test/resources/oaei/conference/Conference.owl");
7474
ModelStorage target = new ModelStorage("src/test/resources/oaei/conference/ekaw.owl");
7575

76+
/************************** Lexical-level Matching ***************************/
7677
LexicalMatcher lm = MatcherFactory.createLexicalMatcher();
7778

7879
lm.setSourceTarget(source, target);
@@ -86,6 +87,7 @@ public class Demo
8687
lm.mapObjectProperties(lexicalObjectPropertyMappings);
8788
System.out.println(lexicalObjectPropertyMappings);
8889

90+
/************************* Structural-level Matching *************************/
8991
StructuralMatcher sm = MatcherFactory.createStructuralMatcher();
9092
sm.setSourceTarget(source, target);
9193
sm.setExtractType(true, true);

src/main/java/cn/ac/amss/semanticweb/matching/impl/AbstractMatcher.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ protected void matchPlainRDFNodes(Set<PlainRDFNode> candidatePool, Mapping mappi
4545
Set<PlainRDFNode> sources = new HashSet<>();
4646
Set<PlainRDFNode> targets = new HashSet<>();
4747
splitPlainRDFNodes(candidatePool, sources, targets);
48-
for (PlainRDFNode s : sources) {
49-
for (PlainRDFNode t : targets) {
50-
mappings.add(s.getRepresent(), t.getRepresent());
51-
}
52-
}
48+
matchPlainRDFNodes(sources, targets, mappings);
5349
}
5450

5551
protected void matchPlainRDFNodes(Set<PlainRDFNode> sources, Set<PlainRDFNode> targets, Mapping mappings) {

0 commit comments

Comments
 (0)