Пример #1
0
 private void classifyConcept(DMIElem m, ISet<DMIElem> outNodes, ISet<DMIElem> outLinks) {
   if ((Tracing.gTraceSet & Tracing.TraceFrame) != 0)
     Tracing.gTraceFile.println("adding: " + m.itsIndex);
   setVisited(m);
   if (m.isStatement()) outLinks.add(m);
   else outNodes.add(m);
 }
Пример #2
0
 private void accept(
     DMIElem m,
     BoundFork inPatterns,
     BoundFork outPatterns,
     ISet<DMIElem> outNodes,
     ISet<DMIElem> outLinks,
     ISet<BoundFork[]> updatedSubpatterns) {
   assert m.isStatement() : "WaveTraversal.accept: not a statement";
   if (inPatterns.acceptCandidate(m, outPatterns, updatedSubpatterns))
     stepFromLink(m, outNodes, outLinks);
 }
Пример #3
0
 private void stepFromNode(DMIElem m, ISet<DMIElem> outLinks) {
   step(m.itsUsedAsObjectStmtSet, outLinks);
   if (m.instanceOf(itsBaseVocab.gProperty)) step(m.itsFullInstanceSet, outLinks);
   step(m.itsUsedAsSubjectStmtSet, outLinks);
 }
Пример #4
0
 private void stepFromConcept(DMIElem m, ISet<DMIElem> outNodes, ISet<DMIElem> outLinks) {
   if (m.isStatement()) stepFromLink(m, outNodes, outLinks);
   else stepFromNode(m, outLinks);
 }