Full text
A Systematic Comparison of Spatial Search Strategies for Open Government Datasets Brhane Bahrishum Teka
A Systematic Comparison of Spatial Search Strategies for Open Government Datasets Desertation Supervised by: Dr. Auriol Degbelo Institute for Geoinformatics (IFGI), Westf¨alische Wilhelms-Universit¨at, Muenster, Germany. Desertation Co-Supervised by: Dr. Roberto Henriques NOVA Information Management School, Universidade Nova de Lisboa, Lisbon, Portugal Dr. Sven Casteleyn Institute of New Imaging Technologies, Universitat Jaume I, Castell´on, Spain February 25, 2019
Declaration of Authorship I, Brhane Bahrishum Teka student of the Erasmus Mundus Master of Science in Geospatial Technologies program declare and certify that the thesis entitled A Systematic Comparison of Spatial Search Strategies in Open Government Datasets is entirely the result of my own work guided by my supervisors. All content in my thesis for which other sources, including electronic media, have been used have been acknowledged and cited. I understand that my thesis will be checked and acknowledge that it will be rejected in case of plagiarism. Signature: Date: M¨unster, 25rd February 2019 I
Acknowledgements First and foremost, I am very grateful to the European Union/Erasmus Mundus Program for offering me the scholarship to conduct my studies. Secondly, I would like to express my profound gratitude to my supervisor Dr. Auriol Degbelo for his continuous support, encouragement, and criticism from the beginning until the end of my Masters thesis. Without his guidance and supervision, this work would not have been possible. I am also very grateful for my co-supervisors Dr. Sven Casteleyn and Dr. Roberto Henriques for their support and feedback in my thesis. Additionally, I would like to express my gratitude to all my teachers and staff in UJI, and Ifgi for the lifelong lessons throughout the masters. Last but not least, I also thank all the participants of my study for their time and help in the study. II
Abstract Datasets produced or collected by governments are being made publicly available for re-use. Open government data portals help realize such reuse by providing list of datasets and links to access those datasets. This ensures that users can search, inspect and use the data easily. With the rapidly increasing size of datasets in open government data portals, just like it is the case with the web, finding relevant datasets with a query of few keywords is a challenge. Furthermore, those data portals not only consist of textual information but also georeferenced data that needs to be searched properly. Currently, most popular open government data portals like the data.gov.uk and data.gov.ie lack the support for simultaneous thematic and spatial search. Moreover, the use of query expansion hasn’t also been studied in open government datasets. In this study we have assessed different spatial search strategies and query expansions’ performance and impact on user relevance judgment. To evaluate those strategies we harvested machine readable spatial datasets and their metadata from three English based open government data portals, performed metadata enhancement, developed a prototype and performed theoretical and user evaluation. According to the results from the evaluations keyword based search strategy returned limited number of results but the highest relevance rating. In the other hand aggregated spatial and thematic search improved the number of results of the baseline keyword based strategy with a 1 second increase in response time and but decreased relevance rating. Moreover, strategies based on WordNet Synonyms query expansion exhibited the highest relevance rated first seven results than all other strategies except the keyword based baseline strategy in three out of the four query terms. Regarding the use of Hausdorff distance and area of overlap, since documents were returned as results only if they overlap with the query, the number of results returned were the same in both spatial similarities. But strategies using Hausdorff distance were of higher relevance rating and average mean than area of overlap based strategies in three of the four queries. In conclusion, while the spatial search strategies assessed in this study can be used to improve the existing keyword based OGDs search approaches, we recommend OGD developers to also consider using WordNet Synonyms based query expansion and hausdorff distance as a way of improving relevant spatial data discovery in open government datasets using few keywords and tolerable response time. III
Acronyms OGD Open Government Data CKAN Comprehensive Knowledge Archive Network AO Area of Overlap HD Hausdorff Distance QE Query Expansion GIR Geographic Information Retrieval IR Information Retrieval NGO Non-Governmental Organizations URL Universal Resource Locator RDF Resource Description Framework API Application Programming Interface CSV Comman Separated Values JSON JavaScript Object Notation SDI Spatial Data Infrastructure MBB Minimum Bounding Box Keywords Open Government Data, Spatial Search, Relevance Judgment, Geographic Information Retrieval, Query Expansion IV
List of Figures 1 ConceptNet Structure .......................... 8 2 Relevance Judgment ........................... 9 3 Strategies. ................................. 11 4 Methodology. ............................... 12 5 Data Harvesting and Preprocessing. ................... 13 6 Database Schema. ............................. 15 7 High Level System Architecture. ..................... 16 8 Prototype User Interface. ......................... 21 9 Example Query and Result. ....................... 22 10 Performance in Seconds and Number of Results of Query Population England .................................. 24 11 Performance in Seconds and Number of results for Query Transport Fairfax ................................... 25 12 Performance in Seconds and Number of Results for Query Communities Republic of Ireland ............................ 26 13 Performance in Seconds and Number of results for Query Learning Wales 27 14 Results from existing data portals .................... 29 15 User relevance ratings for results of query “Population England” ... 31 16 User relevance ratings for results of query “Learning Wales” ..... 32 17 User relevance ratings for results of query “Learning Wales” ..... 33 18 User relevance ratings for results of query “Communities Republic of Ireland” .................................. 34 19 Participants Gender ............................ G 20 Participants open data use ........................ G 21 Number of datasets(results) rated by user in a minute ......... H 22 Participants feedback about the difficulty of relevance Judgment ... H 23 Further feedback from participants ................... I V
List of Tables 1 WordNet Query Expansion Weights ................... 18 2 ConceptNet Query Expansion Weights ................. 18 VI
List of Equations 1 Greg Janee’s and James Frews Area of overlap ................ 19 2 Greg Janee’s and James Frews Hausdorff Distance .............. 19 3 PostgreSQL Thematic Ranking ........................ 20 4 Normalized aggregate Ranking ......................... 20 VII
to perform simultaneous spatial and thematic search in data.gov.uk. Third, they pointed out the absence of ontologies for query expansion in such data portals. Those directions were also considered in our systematic comparisons. In another geographic information retrieval and ranking in spatial data infrastructures related work, [Chen et al.,2018], proposed using artificial neural networks to learn from knowledge of experts to integrate the characteristics of geospatial data to overall similarity. Among the similarities integrated, one is thematic similarity in which they used WordNet similarity methods. They stated to have achieved a higher precision interms of similarity computation of geospatial data but pointed out the availability of limited geoscience related vocabularies in WordNet and the need for continuous similarity results. The use of advanced knowledge base that improves WordNet and Hausdorff distance for continuous similarity results has, therefore, been motivated from this work. Meanwhile, [Jiang et al.,2018]’s conducted two studies which are also in spatial data infrastructure. They first developed a system that improved search experience with Oceanographic Data by utilizing data relevancy from user behavior using semantic query expansion and machine learning based ranking to assist users in finding more relevant data. In addition, they, [Jiang et al.,2018] also attempted to incorporate users’ multidimensional preferences by identifying spatial similarity and metadata attributes and thereby improve the optimal user experience by using a machine learning based discovery and ranking of relevant datasets. Those relevant works about geospatial data infratructures, advanced as they might be regarding OGD and spatial information retrieval, have been used as the main direction for the strategies being compared in this work. 2.1.3 Open Government Data Portal Platforms Different platforms are being used as open data solutions like CKAN, DKAN4, Socrata5, Junar6etc [Millette and Hosein,2016]. Most popular government data portals nowadays are based on CKAN, the world’s leading open source data portal [Open Knowledge Foundation,2009]. CKAN, Comprehensive Knowledge Archive Network, is a web-based management system developed by the Open Knowledge Foundation and is being used by more than 192 governments, institutions, and other worldwide organizations to manage open government data [Open Knowledge Foundation,2009]. The popular open government data portals reviewed in this work like the European Data Portal,Data.gov, Data.gov.uk,Data.gov.ie are also based on CKAN. It provides RESTFUL API for 4DKAN is an open data cataloging, publishing and visualization platform by CivicActions allowing governments and to easily publish data to the public. 5Socrata is an open data platform hosting corpus of government datasets accessible via opendatanetwork.com and an API opening it up for automated exploration and research. 6Junar is also an early leader in Open Data publishing which offers a Software-as-a-Service (SaaS) hosting model with a fully fledged infrastructure of hardware, software, and storage. 5
data access which has been used for harvesting in this work [Open Knowledge Foundation,2009]. In open government data portals in general and CKAN in particular, full-text Search is one integral functionality. Full-text search, defined by [Kilic and Karabey, 2016], as the ability to query and possibly rank documents based on relevance, in its simplest form helps us to find documents containing given keywords ranked by their frequency in the document. CKAN, which is written in Python, uses Solr, a java based open source information retrieval library, to achieve full-text search functionality on the datasets stored in it’s PostgreSQL backend [Targett,2015]. But Solr is not the only popular information retrieval alternative [Kilic and Karabey,2016]. Despite the use of external libraries on top of PostgreSQL for full-text search, PostgreSQL also provides full-text functionality of its own which is powerful enough for simpler applications [PostgreSQL Global Development Group,2016,Belaid,2015]. PostgreSQL’s Full-text search uses pre-processing and indexing to prepare documents and save for later rapid searching. The pre-processing is done by breaking documents into words, removing stop words, converting words into lexemes, optimizing and storing the preprocessed documents [PostgreSQL Global Development Group,2016]. While the storage of preprocessed queries is done using vector datatype, tsquery is used for making preprocessed queries [PostgreSQL,2018]. Both of them are used in this work for full-text searching and ranking. 2.2 Spatial Similarity Functions In geographic information retrieval, in general, the representation of the geographic data is an essential issue for indexing and for retrieval. Toponyms(place names), geographic points, MBR or MBB(minimum bounding rectangle or minimum bounding box), and Complex polygons are the four common representations for geographic information [Larson,2011]. Despite being prone to error due to its imprecision, minimum bounding rectangles are most commonly used in standards, and are simpler to work with. In the other hand, complex polygons are more accurate representations of geographic area and may represent the full representation of an area’s borders but they are much more difficult to deal with (compared to simple MBRs) [Larson,2011]. As mentioned by [Foundation,2014], CKAN provides spatial search through Solr and PostGIS depending on the choice of backend with the first offering a spatial relevance sorting based on bounding box geometries. Solr filters search results using a bounding box or circle or by other shapes and sorts or boosts scoring by distance, or relative area in spatial searches like intersects, within, contains, disjoint, equals 7. However, those capabilities haven’t yet been utilized in open government datasets. [Frontiera et al.,2008] compared 4 area of overlap, one Hausdorff distance and two probabilistic linear regression based spatial similarity functions using both MBBs and convex hulls. For both MBBs and convex hulls, among the area of overlap based 7https://lucene.apache.org/solr/guide/6 6/spatial-search.html 6
spatial similarity functions the following two functions were found out to have higher mean average query precision. Hill(1990) = (2 ∗AreaofOverlap) (Areaofquery +Areaofdocument) Janee(2003) = (AreaofOV erlap) (Areaofquery ∪Areaofdocument) In the other hand, the only Hausdorff distance compared in the study is given by Janee(2003)HD =max(HD(Q, D), HD(D, Q)) Both Janee’s area of overlap and Hausdorff distance spatial similarity function have been utilized in this study. 2.3 Query Expansion Another relevant topic for this study is query expansion. With the huge amount of data on the internet which is still growing exponentially, the discovery or extraction of relevant information from the web with a query of few keywords has been a challenge and an area of research interest. To overcome this, query expansion has been proposed as a way of improving search results by adding similarly significant expansion terms to users search keywords [Azad and Deepak,2017]. The source of query expansion terms is an issue of interest in such studies. Ontologies like WordNet are of high interest in this case because they are built manually by experts (in MIT) and are regarded as highly accurate [Pal et al.,2013]. In the other hand, WordNet is also indicated to have fewer coverage of geospatial keywords [Chen et al.,2018]. As our work considers open government data with potential geospatial terminologies, another knowledge graph alternative was considered, ConceptNet. Despite the difficulty of using concepts as query expansion terms, it has been evaluated for query expansion by [Hsu et al.,2008,Rivas et al.,2014,Hsu et al., 2006,Bouchoucha et al.,2013,Azad and Deepak,2017]. We will look at a deeper look of each knowledge bases in the next section. 2.3.1 WordNet WordNet is a linguistic database of English words(nouns, verbs, adverbs, adjectives) organized into Synonyms which in return represents an underlying linguistic concept [Miller et al.,1990]. The following relations are represented in WordNet. •The basic relation in WordNet is Synonymy which represents word senses and a symmetric relation between word forms. Synonyms can be changed interchangeably without completely changing their meaning in some context E.g:- communities and residential areas or residential district(residential areas and residential district are both Synonyms to community). 7
•Hyponymy and Hypernymy in the other hand represent sub type and super type relations between synsets that are used to organize the hierarchichal structure of WordNet nouns. E.g: learning and education(direct Hyponym and Hypernym), communities and neighbourhood or village(Hyponym), communities and people(Hypernym) •Meronymy and holonymy (part -whole) , antonymy(opposites) and troponymy(which indicates manners) are other relations used to represent semantic relations in WordNet. 2.3.2 ConceptNet ConceptNet, in the other hand, is a knowledge base consisting over 1.6 million facts spanning the every day spatial, physical, social, temporal, psychological and other aspects of life generated from 700000 sentences from the Open Mind Common Sense Project — a collaboration of over 14000 authors. It is designed to help computers understand how it is expressed in natural language and consists of knowledge from sources including but not limited to Wiktionary,OpenCyc, Multilingual WordNet and so on. [Speer and Havasi,2012,MIT,2019] Figure 1: ConceptNet Structure - Source [Speer and Havasi,2012] ConceptNet’s structure, as it can be seen in figure 1, is mainly made up of edges and relations. While edge is the basic part of knowledge representation in ConceptNet, a relation in return captures the relationship among edges [Speer and Havasi,2012]. ConceptNet has several types of relations, but the main relations are defined as follows [MIT-Media-Lab,2018] 8
•Synonym - Represents edges of similar meanings. This is the Synonym relation in WordNet as well. E.g: sunlight and sunshine •IsA-A subtype or specific instance. It corresponds the Hyponym relation in WordNet. E.g: car IsA vehicle; Chicago IsA city •MannerOf - Similar to IsA but for verbs. E.g:- auction and sale •Other relations include RelatedTo, FormOf, PartOf, HasA, UsedFor, CapableOf, Causes, Antonym, UsedFor, DerivedFrom, SymbolOf, DefinedAs, Entails, SimilarTo In our study, after attempting combination of WordNet relations for different queries only Synonym, Hyponyms, Hypernyms were making changes in the results so only those three relations were considered for this study. Moreover, ConceptNet’s Synonym, IsA and MannerOf are the relation types which correspond to WordNet’s Synonyms and Hyponyms/Hypernyms respectively with 100% certainty [MIT-Media- Lab,2018]. 2.4 Relevancy Ranking and Relevance Judgment The last theoretical concept relevant for this study, and information retrieval in general is relevance(relevancy ranking) which is mainly concerned with matching the information need of users. For effective information retrieval and user satisfaction, evaluation of information retrieval system performance and to assess whether the system has addressed the information needs of users is done by operating user-based evaluation or system-based evaluation [Samimi and Ravana,2014]. Figure 2: Relevance Judgment - Source [Samimi and Ravana,2014] 9
In addition to traditional information retrieval, geographical information retrieval adds the spatial dimension of document representation and advances information retrieval [Cai,2011]. Stating the difficulty of clearly understanding what relevance is, [Mizzaro,1998] classified relevance as a four dimensional space to understand its nature as follows. InfRes = (Surrogate, Document, Information); (1) Repr =Query, Request, PIN, RIN; (2) Time =t(rin0), t(pino), t(ro), t(qo), t(ql), t(rl), .., t(qn), t(f)); (3) Comp =fTopic, Task, (Context), ..., (Topic, Task, Context) (4) where the first dimension represents information resources which includes the metadata or representation of the document of an IR system, the physical entity of an IR system, and the entity the user receives up on reading the document. The second dimension is the representation of the user’s problem which is given as real information need, perceived information need, request and query. The fourth dimension consists of subject area of the user problem(topic), activities the user will perform with the retrieved results and context. Based on this classification, the type of relevance judgment which will be evaluated in this work will be given in the form of rel = (surrogate, request, (topic, task, context) 10
3 Research Methodology This section discusses the research methodology and implementation architecture used to conduct the comparisons in this work. First section 3.1 discusses the search strategies under comparison 3.2 highlights the overall architecture of the implementations, 3.3 details the data harvesting and preprocessing phase, 3.4 explains the prototype and business logic 3.5 discusses the details of evaluation set up. 3.1 Strategies Overview Before presenting our comparison methodology, lets look at the strategies we will compare. Figure 3: Strategies. As it can be seen from figure 3, four top level strategies were considered at the beginning of the study. The first strategy, baseline strategy, is based on only full text search while the other strategies consider spatial search. The baseline strategy is similar to the current working approach in Data.gov.uk and Data.gov.ie(except in this study we performed queries like (theme and space) instead of (theme or space)). In the second strategy, baseline spatial, location names are parsed and geocoded for spatial search. Therefore, a simultaneous spatial and thematic search is employed in this strategy. The second strategy addresses the missing simultaneous thematic and spatial search functionality in the aforementioned OGDs. The third strategy in return improves the second strategy by expanding the thematic keywords with expansion terms from WordNet and then apply weighted simul- 11
taneous full text search and spatial search. This strategy in the other hand is used to assess the impact of query expansion in OGD. Finally, the fourth strategy improves again the second strategy but by using ConceptNet for query expansion instead of WordNet and again apply simultaneous weighted full text search and spatial search and ranking. The query expansion is done in two different alternative paths. The first is done using only Synonyms while in the second we have used a combination of Synonyms, Hypernyms and Hyponyms. The same is true in ConceptNet based query expansion. First we only considered ConceptNet Synonyms and secondly a combination of Synonyms, IsA and MannerOf which correspond to Synonyms, Hypernym, Hyponym relations in WordNet. In all of these strategies except the first strategy the two selected spatial similarity functions discussed in section 2.2 are applied. Therefore, the strategies being compared totally are 11 strategies. 3.2 Overall Methodology Architecture The overall methodology followed to compare the different strategies, is given in the following diagram. Figure 4: Methodology. As it can be seen from the figure the first task was harvesting of datasets and their corresponding metadata from selected data portals. This was followed by enhancing and preprocessing of the metadata. Preprocessed metadata of the harvested datasets were in return stored in PostgreSQL. We then developed a prototype application using Python flask. Finally, the prototype was used to evaluate the suggested strategies based on theoretical evaluation and user relevance judgment. 12
3.3 Data Harvesting and Preprocessing As stated in the previous section the initial task in this work was data harvesting. We have harvested machine readable datasets of GeoJSON formats and corresponding JSON and CSV resources from CKAN based data portals of 3 English speaking countries (data.gov.uk 959, data.gov 1003, and data.gov.ie 547 datasets) using the CKAN API. All CKAN based data portals have the same api URL pattern as follows URL +/api/3/action/package search? where URL stands the base data portal address. Therefore, the harvesting iteration over the data portals is done using the above URL pattern. The response is a JSON of metadata about the datasets and resources. While the metadata and dataset harvesting is done iteratively, the metadata enhancement(pre-processing) is done in two different operations, spatial metadata pre-processing and thematic metadata pre-processing. Figure 5: Data Harvesting and Preprocessing. For the spatial metadata enhancement, we first look at the metadata extent of the spatial dataset(resource) harvested in the metadata or else in the GeoJSON bbox field. Since the metadata of the spatial datasets didn’t always had spatial extent in the metadatas’ harvested, the spatial metadata enhancement is done in case of missing spatial extent either in the metadata or the GeoJSON file’s bbox field. The spatial metadata enhancement in return is done in three alternative bottom up approaches. The three approaches are: first by collecting minimum and maximum coordinates 13
from each feature in the GeoJSON’s feature follection. This is achieved as an aggregated bounding area of envelopes of each feature using OGR Envelope which returns a tuple (minX, maxX, minY, maxY) [GDAL/OGR contributors,2018]. In case the first operation based on aggregate of minimum and maximum coordinate from each collection in the GeoJSON feature collection fails, the second alternative is applied using a combination of DBPedia Spotlight8to parse place names in title or description in the dataset metadata and OSM Nominatim9to find the bounding polygon of the place name. . Moreover if the second option yet again fails, the third and last option uses the source data portal URL and OSM Nominatim to geocode the country’s spatial extent as the dataset’s spatial extent. Following the spatial metadata enhancement using either of the above alternatives, the thematic metadata is preprocessed and stored in PostgreSQL. The thematic metadata preprocessing is done by vectorizing(tokenizing) the textual metadata using PostgreSQL’s ts vector function for weighted vectorization depending whether it appeared in the title, description or tags as follows. setweight(to tsvector(0pg catalog.english0, coalesce(new.title,00 )),0A0) setweight(to tsvector(0pg catalog.english0, coalesce(new.description,00 )),0B0) setweight(to tsvector(0pg catalog.english0, coalesce(new.tags,00 )),0A0); Higher weight, ’A’, is given to title and tags while description is given a reduced weight of ’B’. 3.4 Database Schema The pre-processed metadata is stored in PostgreSQL database. The database schema therefore looks as follows: 8DBPedia spotlight is a tool for annotating mentions of natural language entities like place names [Mendes et al.,2011]. 9OSM Nominatim is an open street map search tool used to search by name and address and generate addresses from Open street map data. [Open Street Map,2018] 14
3.6 Evaluation Setup 3.6.1 Experimental Setup The prototype is developed, tested and evaluated on a computer with the following characteristics: Computer Manufacturer: HP Processor: AMD A6-9220 RADEON R4, 5 Compute Core 2c+3G 2.50 GHz RAM: 8GB System type: 64-bit operating system, x64-based processor Operating System: Windows 10 Therefore, the conclusions we made regarding performance are dependent on this system’s characteristics. 3.6.2 User Interface The prototype user interface prior to the theoretical evaluation looks as follows: Figure 8: Prototype User Interface. 21
Figure 9: Example Query and Result. The implementation source code can be found in https://github.com/brhanebt/recommender 22
4 Evaluations and Results Evaluation of this work was done both in-terms of system based evaluation and user based evaluation to assess both the performance (response time and number of results) of the strategies and the relevance rating of the results of the strategies using user relevance judgment [Samimi and Ravana,2014]. 4.1 Theoretical evaluation To evaluate the performance of the strategies both in terms of time in seconds and number of results, the following four thematic and spatial query combinations were selected after testing multiple adhoc queries. 1. Population England 2. Learning Wales 3. Communities Republic of Ireland 4. Transport Fairfax The results of theoretical evaluation are presented next 23
4.2 Results from theoretical evaluation and discussion Query Terms Population and England Figure 10: Performance in Seconds and Number of Results of Query Population England In the first query we tested “Population England”, strategy 1(the base keyword strategy) resulted in 3 datasets while strategy 2, 3, 4, 5, 8, 9, 10, and 11 all resulted in 21 datasets. On the the other, both the spatial approaches with WordNet expansion using combination of Synonyms, Hypernyms and Hyponyms returned 101 results. So, while every other strategies applied resulted in the same number of results except the baseline keyword strategy, the query expansion using WordNet’s combination of Synonyms, Hyponyms, and Hypernyms applied increased the number of results. The performance (response time), on the other hand, increased from baseline to ConceptNet query expansion with ConceptNet query expansion being too expensive(15 seconds response time). But despite the increase in response time with ConceptNet approach number of results remained the same as the baseline spatial strategies. 24
Query terms Transport and Fairfax Figure 11: Performance in Seconds and Number of results for Query Transport Fairfax •In this case, strategy 1 resulted in 7 datasets while the strategies 2 and 3 returned 16 datasets. Strategies 4 and 5 in return resulted in 18 results while strategies 6 and 7 returned 74 datasets. Strategies 8 and 9 in the other hand returned 21 results in 18 seconds while it was 33 results in 18 seconds for strategies 10 and 11. As in the previous set of queries, with a performance (response time) of 18 seconds using strategies 8, 9, 10, 11 proved to be very expensive. 25
Query terms Communities and Republic of Ireland Figure 12: Performance in Seconds and Number of Results for Query Communities Republic of Ireland In our third query test, strategy 1 didn’t result in any datasets while the approaches with strategies 2,3,8,9,10,11 resulted in 79 results. In the other hand, the number of results increased to 83 datasets when using strategies 4 and 5 and to 296 when using strategies 6 7 while the performance increased from 3 to 5 seconds. Interestingly, the datasets returned included datasets about residential areas and neighbourhoods meaning 75 datasets specifically about communities and 4 additional datasets about residential areas. In the other hand, response time of ConceptNet query expansion decreased in comparison to WordNet query expansion. This is because Communities is a different edge than community in ConceptNet despite being of the same root word community. Moreover, Communities have fewer concepts(edges), 10 to be specific, in ConceptNet, of which community is one edge itself while community has more than 1600 concepts(edges). 26
Query terms Learning and Wales Figure 13: Performance in Seconds and Number of results for Query Learning Wales In the last query we tested, Learning Wales, 13 datasets from strategy 1 and 14 datasets from strategies 2 and 3 are retrieved. In the other hand, strategies 4 and 5 resulted in 44 datasets while strategies 6 and 7 returned 129 datasets. Moreover, Strategies 8 and 9 resulted in 31 datasets and 53 datasets were retrieved using strategies 10 and 11. Meanwhile, the response time of 3 seconds for strategies 4 and 5 increased to 4 seconds in strategies 6 and 7, the response time increased for strategies 8 through 11 to 14 and 13. 27
4.3 Discussion Based on Theoretical Evaluation According to the theoretical evaluation, as the response time increases from baseline keyword based strategy to WordNet query expansion the number of results returned also increases. While the performance (response time) differences between strategy 1 through strategy 5, which is between 1 and 2 seconds, is tolerable [Nielsen,1993, MILLER,1968], the response time of strategies 6 and 7 slightly increased in most cases when using three of the four query terms. In the other hand, strategies 8 through 11 have exhibited a very long response time 15, 18 and 12 seconds in the worst case and 3 seconds only in one case. This is significantly affected due to the fluctuating response time from ConceptNet API. The results in those strategies are also affected because we weren’t able to find the WordNet Synonym, Hypernym and Hyponym relations’ in corresponding edges in ConceptNet with 100% consistency. Therefore, despite the coverage of more knowledge than WordNet, the fluctuating response time from it’s API and not significant impact on results due to difficulty of finding the synonyms, hypernyms and hyponyms relations with 100% certainty in specific edges, we deemed ConceptNet was costy for user evaluation. 28
Comparison with Existing Systems At the end of the evaluations we also checked the results of the same queries in the existing systems which is given below. Figure 14: Results from existing data portals As it can be seen from the results, searching for the queries “population england” in data.gov.uk resulted in 1170 GeoJSON datasets while the queries “population” and ”england” separately resulted in 40 and 1162 datasets. In our case, the queries “population england” returned 21 datasets either of the four strategies based on baseline spatial(area of overlap and Hausdorff) or wordnet(Area of overlap and Hausdorff). Our assumption is that data.gov.uk uses only keywords based search with or operator. This is also proven by testing the query, “Learning Wales”. Strategies 2 and 3 returned 14 datasets while 44 datasets were the results of strategies 4 and 5. The same query in data.gov.uk resulted in 762 GeoJSON datasets while for query Learning returned 761 and Wales returned 23 datasets independently. Moreover, We also tested data.gov.ie for queries “communities and republic of ireland” which operates the same way as data.gov.uk. Results from baseline spatial strategies returned 79 for “communities republic of Ireland” while 83 datasets were returned using WordNet query expansion. The 4 more datasets returned in the WordNet QE strategy are datasets about residential areas in republic of ireland as it can be seen from the histogram. Because “Residential areas” and ”communities” are Synonyms in WordNet. Finally, for the queries “Transport Fairfax” data.gov returned 7 GeoJSON datasets. This is the same number of results as our strategy from baseline keyword. But we couldn’t determine if they used ”and” operator like in our strategy 1 or it was spatial search. Strategies 2,3 in our comparison however resulted in 16 datasets. A depth 29
look into our results indicate, they include transport related datasets that partially match the query because they were assigned country bounding box after failure of the first two metadata enhancements. Those datasets include “National Forest System Trails (Feature Layer)” or “National Forest System Roads closed to motorized uses (Feature Layer)”. 4.4 User Relevance Judgment After the theoretical evaluation, ConceptNet based four strategies were excluded from the user study for reasons mentioned in the previous section. Therefore, the user study was carried out using 16 participants based on the first 7 strategies and four queries in each strategy. As specified in section 2.3, based on [Mizzaro,1998]’s classification of relevance, we defined the relevance to be evaluated as rel = (surrogate, request, (topic, task, context) This means users were given the topic of the datasets to be retrieved, the representation of the information in need in human language, the tasks the user will perform with the results are as follows 1. You are interested in datasets about anything related to Learning in Wales. (a) Search for these datasets using Query Theme: Learning Query Location: Wales (b) For each of the first seven results, assign a number of stars indicating its relevance to your information need: the more number of stars, the more relevant the result. After the study completion which was accompanied with video recording, we noticed one participant skipped several query results without rating so the result analysis was done based on only the 15 users who completed the relevance rating. The relevance ratings distribution, mean and standard deviations of the ratings, and percentage of the first seven results rated more than half in each strategy are presented next. Average results rated in a minute, users judgment about the difficulty of the overall process and their feedback in the other hand is given at the end of this report. 30
based strategies in three of the four queries. In conclusion, while the spatial search strategies assessed in this study can be used to improve the existing keyword based OGDs search approaches, we recommend OGD developers to also consider using WordNet Synonyms based query expansion and hausdorff distance as a way of improving relevant spatial data discovery in open government datasets using few keywords and tolerable response time. 6.2 Limitations and Future works Despite the attempt to cover as many possible strategies as possible, the time constraint has been a challenge. Based on our experience in this work, the following directions can be taken for further possible improvements. 1. Using ConceptNet (or any other knowledge base or ontology that extends Word- Net for that matter) for query expansion can be further tested independent of API and using different combination of edges, to improve the performance issues and thereby alleviate the lack of geospatial terminologies in WordNet [Chen et al.,2018], 2. As reported by [Frontiera et al.,2008], convex hull and logistic regression based geometric similarity functions have significant improvement over minimum bounding box(MBB) geometric similarity functions used in this work. Therefore, this work can be extended by using those more efficient geometric similarity functions. 3. Prior knowledge in the number of datasets harvested can also help make the comparisons using precision and recall and check our conclusions from another direction. 4. Currently open government data portals are mostly based on lucene, especially CKAN based data portals, and some elastic search. Despite early attempts in this work to use either of those options, inability to match their learning curve in this short period and also because we decided it was enough for comparison purposes we have opted for PostgreSQL full text search. Therefore, future studies can be made based on those platforms to match the current open government working platforms. 5. Last but not least, this work is based on only keyword based search. Early attempts to make use of semantic parser like Google SLING [Ringgaard et al., 2017] to make use of longer text were unsuccessful because of Google SLING’s platform dependency (works only on Linux). Therefore, Google SLING or other semantic parsers can also be utilized for extending this work. 37
References H. K. Azad and A. Deepak. Query Expansion Techniques for Information Retrieval: a Survey. Technical report, 2017. URL http://arxiv.org/abs/1708.00247. R. Belaid. Postgres full-text search is Good Enough!, 2015. URL http://blog. lostpropertyhq.com/postgres-full-text-search-is-good-enough/{#}1. T. Berners-lee. Putting Government Data online, 2009. URL http://www.w3.org/ DesignIssues/GovData.html. A. Bouchoucha, J. He, and J.-Y. Nie. Diversified query expansion using conceptnet. Proceedings of the 22nd ACM international conference on Conference on information & knowledge management - CIKM ’13, (October 2013):1861–1864, 2013. doi: 10.1145/2505515.2507881. URL http://dl.acm.org/citation.cfm?doid= 2505515.2507881. G. Cai. Relevance ranking in geographical information retrieval. SIGSPATIAL Special, 3(2):33–36, July 2011. ISSN 1946-7729. doi: 10.1145/2047296.2047304. URL http://doi.acm.org/10.1145/2047296.2047304. Y. Charalabidis, C. Alexopoulos, and E. Loukis. A taxonomy of open government data research areas and topics. Technical report, 2016. URL http://www.icsd. aegean.gr/publication{_}files/journal/150273522.pdf. Z. Chen, J. Song, and Y. Yang. Geo-Information Similarity Measurement of Metadata of Geospatial Data: An Artificial Neural Network Approach. 2018. doi: 10.3390/ ijgi7030090. P. Corti, A. T. Kralidis, and B. Lewis. Enhancing discovery in spatial data infrastructures using a search engine. 2018. doi: 10.7717/peerj-cs.152. URL https://www.esri.com/en-us/. Data.gov. Federal Agency Participation - Data.gov, 2018. URL https://www.data. gov/metrics. P. A. de Fernandes Vasconcelos, W. de Sousa Alencar, V. H. da Silva Ribeiro, N. Ferreira Rodrigues, and F. de Gomes Andrade. Enabling spatial queries in open government data portals. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 10441 LNCS, pages 64–79. Springer, Cham, aug 2017. ISBN 9783319642475. doi: 10.1007/978-3-319-64248-2 6. URL http://link.springer.com/10.1007/ 978-3-319-64248-2{_}6. A
L. Ding, D. Difranzo, A. Graves, J. R. Michaelis, X. Li, D. L. Mcguinness, and J. Hendler. Data-gov Wiki : Towards Linking Government Data Architecture of Data [U+2010] gov Architecture of Data gov Wiki The Data-Gov Wiki. Linkedai 2010 Datagov, (January), 2010. URL http://logd.tw.rpi.edu/files/ linkedai-2010-datagov.pdf. L. Ding, T. Lebo, J. S. Erickson, D. Difranzo, G. T. Williams, X. Li, J. Michaelis, A. Graves, J. G. Zheng, Z. Shangguan, J. Flores, D. L. McGuinness, and J. A. Hendler. TWC LOGD: A portal for linked open government data ecosystems. Journal of Web Semantics, 9(3):325–333, 2011. ISSN 15708268. doi: 10.1016/j. websem.2011.06.002. O. K. Foundation. ckanext-spatial.pdf. https://media.readthedocs.org/pdf/ ckanext-spatial/stable/ckanext-spatial.pdf, June 2014. (Accessed on 02/22/2019). P. Frontiera, R. Larson, J. Radke, and Frontiera. International Journal of Geographical Information Science A comparison of geometric approaches to assessing spatial similarity for GIR A comparison of geometric approaches to assessing spatial similarity for GIR. 2008. ISSN 1362-3087. doi: 10.1080/13658810701626293. URL https://www.tandfonline.com/action/ journalInformation?journalCode=tgis20. GDAL/OGR contributors. GDAL/OGR geospatial data abstraction software library, 2018. URL https://www.gdal.org/classOGRGeometry.html{#}details. M.-H. Hsu, M.-F. Tsai, and H.-H. Chen. Query Expansion with ConceptNet and WordNet: An Intrinsic Comparison. Technical report, 2006. URL http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1. 105.5585{&}rep=rep1{&}type=pdf. M.-H. Hsu, M.-F. Tsai, and H.-H. Chen. Combining WordNet and ConceptNet for Automatic Query Expansion: A Learning Approach. Technical report, 2008. URL https://pdfs.semanticscholar.org/0325/ 0832453d62360d93930d2d7141e957935392.pdf. N. Huijboom and T. Van Den Broek. Open data : an international comparison of strategies. European Journal of ePractice, 12(March/ April 2011):1–13, 2011. ISSN 1988-625X. doi: 1988-625X. URL www.epracticejournal.eu. B. J. Jansen, A. Spink, T. Saracevic, and D. Wolfram. Searching the Web: The Public and Their Queries. Journal of the American Society for Information Science and Technology, 52(3):226–34, 2001. ISSN ISSN-3318-3324. URL http://jimjansen. tripod.com/academic/pubs/jasist2001/jasist2001.pdf. B
Y. Jiang, Y. Li, C. Yang, F. Hu, E. M. Armstrong, T. Huang, D. Moroni, L. J. McGibbney, F. Greguska, and C. J. Finch. Geo-Information A Smart Web-Based Geospatial Data Discovery System with Oceanographic Data as an Example. 2018. doi: 10.3390/ijgi7020062. G. Kilic and Karabey. Comparison of Solr and Elasticsearch Among Popular Full Text Search Engines and Their Security Analysis. (December), 2016. doi: 10.13140/RG.2.2.24563.32803. URL https://www.researchgate.net/ publication/311563960. J. Lacasta, F. J. Lopez-Pellicer, B. Espejo-Garc´ıa, J. Nogueras-Iso, and F. J. Zarazaga-Soria. Aggregation-based information retrieval system for geospatial data catalogs. International Journal of Geographical Information Science, 31(8): 1583–1605, 2017. ISSN 13623087. doi: 10.1080/13658816.2017.1319949. URL http://dx.doi.org/10.1080/13658816.2017.1319949. R. R. Larson. Ranking approaches for gir. Technical Report 2, New York, NY, USA, July 2011. URL http://doi.acm.org/10.1145/2047296.2047305. P. N. Mendes, M. Jakob, A. Garc´ıa-Silva, and C. Bizer. DBpedia Spotlight: Shedding Light on the Web of Documents. 2011. ISBN 9781450306218. URL http:// dbpedia.org/spotlight. G. A. Miller, R. Beckwith, C. Fellbaum, D. Gross, and K. J. Miller. Introduction to wordnet: An on-line lexical database. Technical Report 4, 1990. URL http: //wordnetcode.princeton.edu/5papers.pdf. R. B. MILLER. Miller1968.pdf. http://yusufarslan.net/sites/yusufarslan. net/files/upload/content/Miller1968.pdf, 1968. (Accessed on 02/23/2019). C. Millette and P. Hosein. A consumer focused open data platform. In 2016 3rd MEC International Conference on Big Data and Smart City (ICBDSC), pages 1– 6, March 2016. doi: 10.1109/ICBDSC.2016.7460350. O. M. C. S. MIT. ConceptNet, 2019. URL http://conceptnet.io/. MIT-Media-Lab. Relations in conceptnet 5. https://github.com/commonsense/ conceptnet5/wiki/Relations, Apr 2018. (Accessed on 02/22/2019). S. Mizzaro. How many relevances in information retrieval? Interacting with Computers, 10(3):303–320, jun 1998. ISSN 0953-5438. doi: 10. 1016/S0953-5438(98)00012-5. URL https://www.sciencedirect.com/science/ article/pii/S0953543898000125. J. Nielsen. Response time limits: Article by jakob nielsen. https://www.nngroup. com/articles/response-times-3-important-limits/, 1993. (Accessed on 02/23/2019). C
Open Knowledge Foundation. User guide — CKAN 2.7.3 documentation, 2009. URL https://docs.ckan.org/en/ckan-2.7.3/user-guide.html. Open Street Map. Nominatim - OpenStreetMap Wiki, 2018. URL https://wiki. openstreetmap.org/wiki/Nominatim. D. Pal, M. †1, and K. Datta. Improving Query Expansion Using WordNet. Technical report, 2013. URL http://wordnet.princeton.edu/. PostgreSQL. PostgreSQL: Documentation: 9.0: Controlling Text Search, 2018. URL https://www.postgresql.org/docs/9.0/textsearch-controls.html. PostgreSQL Global Development Group. PostgreSQL Full Text Search, 2016. URL http://www.postgresql.org/docs/8.3/static/textsearch-intro.html. M. Ringgaard, R. Gupta, and F. C. N. Pereira. SLING: A framework for frame semantic parsing. Technical report, 2017. URL http://arxiv.org/abs/1710. 07032. A. R. Rivas, E. L. Iglesias, and L. Borrajo. Study of query expansion techniques and their application in the biomedical information retrieval. The Scientific World Journal, 2014, 2014. ISSN 1537744X. doi: 10.1155/2014/132158. E. Rozell, J. Erickson, and J. Hendler. From international open government dataset search to discovery: A semantic web service approach. ACM International Conference Proceeding Series, pages 480–481, 2012. doi: 10.1145/2463728.2463827. P. Samimi and S. D. Ravana. Creation of reliable relevance judgments in information retrieval systems evaluation experimentation through crowdsourcing: A review. Scientific World Journal, 2014(May), 2014. ISSN 1537744X. doi: 10.1155/2014/ 135641. N. Shadbolt, K. O’Hara, T. Berners-Lee, N. Gibbins, H. Glaser, W. Hall, and m. c. schraefel. Linked open government data: Lessons from data.gov.uk. IEEE Intelligent Systems, 27(3):16–24, May 2012. ISSN 1541-1672. doi: 10.1109/MIS.2012.23. R. Speer and C. Havasi. Representing general relational knowledge in conceptnet 5. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC-2012). European Language Resources Association (ELRA), 2012. URL http://www.lrec-conf.org/proceedings/lrec2012/pdf/ 1072_Paper.pdf. C. Targett. Apache Solr Reference guide. A quick overview, 2015. URL https: //cwiki.apache.org/confluence/display/solr/A+Quick+Overview. Whitehouse.gov. Transparency and Open Government. Federal Register, 2009, pages 1–21, 2015. D
2/16/2019 Demographics form https://docs.google.com/forms/d/13c8hSbwk8ze33GtMJyMaPbFwiCCFwx4oj8OLzmsq29M/edit 1/2 Demographics form Thank you for taking the time to fill this form. Data will only be used for statistical reasons * Required 1. Unique User Name * 2. Gender Mark only one oval. Male Female Prefer not to say 3. Have you used open data before? * Mark only one oval. Yes No Skip to question 5. About Open Data Used 4. What purpose did you use it for? Check all that apply. Application Development Scientific Hypothesis Testing Coursework Other: Rating the task of estimating relevance of datasets 5. How would you rate the task of estimating the relevance of these datasets? Mark only one oval. Very Easy Easy Average Difficult Very Difficult A Appendix Google Form E
2/16/2019 Demographics form https://docs.google.com/forms/d/13c8hSbwk8ze33GtMJyMaPbFwiCCFwx4oj8OLzmsq29M/edit 2/2 Powered by 6. Any further feedback? F
B Appendix - Participants demographics and feedback B.1 Participants demographics The demographics of the participants is given below. Figure 19: Participants Gender (a) Participants open data Use (b) Participants open data use Figure 20: Participants open data use Among the 16 participants 5(31.3% were female). In the other hand 3 of the 16 participants didn’t have any experience with open data while those who have experience most of them used it for coursework. Moreover, approximately forty six percent(46%) of them used it for Application development and more than 53% in return for hypothesis testing. G
B.2 Number of Results Rated by a user in a minute We also recorded video of participants performing the evaluations to monitor how they carried out the evaluations. From those measurements the approximate number of results each user rated is given below. Figure 21: Number of datasets(results) rated by user in a minute B.3 Users feedback about difficulty of relevance rating We also asked users about the difficulty of the evaluation process. Figure 22: Participants feedback about the difficulty of relevance Judgment H
B.4 Open Feed back from users Below is participants’ feedback about the evaluation process and system Figure 23: Further feedback from participants I