Hi to everyone,
sorry for my tedious mails, but I think that I have identified the index
loop problem.

In the file:
/index/src/main/scala/org/dbpedia/spotlight/util/ExtractCandidateMap.scala

at line 152 there is the following loop:
for (redirectUri <- linkMap.keys) {
  val endUri = getEndOfChainUri(linkMap, redirectUri)
  if (conceptURIs contains endUri) {
    redURIstream.println(redirectUri+"\t"+endUri)
  }
}

that I suppose, it checks if, for a given page, there is a redirection to
another page.

The method "getEndOfChainUri" is defined at line 165

private def getEndOfChainUri(m : Map[String,String], k : String) : String =
{
  // get end of chain but check for redirects to itself
  m.get(k) match {
    case Some(s : String) => if (s equals k) k else getEndOfChainUri(m, s)
    case None => k
  }
}

my impression is that there is a case in which a sort of circle is created
and this method never ends.

HTH,
Mauro.



-- 
Dr. Mauro Dragoni
Ph.D. in Computer Science.
Post-Doc Researcher at Fondazione Bruno Kessler (FBK-IRST), Trento, Italy.

My Research Site: https://dkm.fbk.eu/index.php/Mauro_Dragoni
My Business Site: http://www.dragotechpro.com
My News-Project Site: http://www.dragotimes.com


Confidentially Notice. This electronic mail transmission may contain
legally privileged and/or confidential information. Do not read this, if
you are not the person named to.
Any use, distribution, copying or disclosure by any other person is
strictly prohibited.
If you received this transmission in error, please notify the sender and
delete the original transmission and its attachments without reading or
saving it in any manner.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to