Cities Mapper
This will map tags that are named after cities to City entries in PIMO and add occurrence links to GeoCities.
Information about which cities exist in the world is shipped with the plugin in file cities.txt
Status
TomaszTrela did run test, with Topic "Tarnów", and crawled Tag "Tarnów", the CityMapper HypothesisGenerator crashed.
Trying to align Topic I got exception, from generating hypothesis:
aused by: org.openrdf.query.QueryEvaluationException: org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "<EOF>" at line 1, column 0. Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ... at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:52) at org.openrdf.rdf2go.RepositoryQueryResultTable.<init>(RepositoryQueryResultTable.java:39) ... 15 more Caused by: org.openrdf.sail.SailException: org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "<EOF>" at line 1, column 0. Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ... at org.openrdf.sail.lucene.LuceneSailConnection.evaluate(LuceneSailConnection.java:417) at org.openrdf.sail.lucene.LuceneSailConnection.evaluate(LuceneSailConnection.java:448) at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:46) ... 16 more Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse '': Encountered "<EOF>" at line 1, column 0. Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ... at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:152) at org.openrdf.sail.lucene.LuceneIndex.parseQuery(LuceneIndex.java:734) at org.openrdf.sail.lucene.LuceneSailConnection.evaluate(LuceneSailConnection.java:412) ... 18 more
JUnit
There is no JUnit test.
There is no test data.
