• Aucun résultat trouvé

Answering Visuo-Semantic Queries with IMGpedia

N/A
N/A
Protected

Academic year: 2022

Partager "Answering Visuo-Semantic Queries with IMGpedia"

Copied!
4
0
0

Texte intégral

(1)

Answering Visuo-semantic Queries with IMGpedia

Sebasti´an Ferrada, Benjamin Bustos, and Aidan Hogan Center for Semantic Web Research

Department of Computer Science, Universidad de Chile {sferrada,bebustos,ahogan}@dcc.uchile.cl

Abstract. IMGpediais a linked dataset that provides a public SPARQL endpoint where users can answer queries that combine the visual similarity of images fromWikimedia Commonsand semantic information from exist- ing knowledge-bases. Our demo will show example queries that capture the potential of the current data stored inIMGpedia. We also plan to discuss potential use-cases for the dataset and ways in which we can improve the quality of the information it captures and the expressiveness of its queries.

1 Introduction

Wikimedia Commons1 is a large-scale dataset that contains about 30 million freely usable media files (image, audio and video), many of which are used within Wikipediaarticles and galleries; it also contains meta-data about each file, such as its author, licensing, and the articles where the file is used. Using this information, DBpedia Commons[5] automatically extracts the meta-data of the media files of Wikimedia Commonspages and presents the resulting corpus as a linked dataset.

To complimentDBpedia Commons, we have createdIMGpedia [2]: a linked dataset that contains different feature descriptors for 14.8 million images from the Wikimedia Commons. IMGpedia also provides similarity relations among the images, as well as references to DBpedia[3] if the image is used on aWikipedia article of the entity. This dataset thus enables people to perform visuo-semantic queries, that is, queries that combine image similarity and semantic criteria.

We first introduceIMGpedia. We then show examples of queries thatIMGpe- diasupports, as will be shown in the demo session. Finally we address the challenges and the future directions of the project, which we also plan to discuss in the session.

2 IMGpedia

IMGpediais a linked dataset [2] that contains three different visual descriptors for each of the 14.8 million images ofWikimedia Commons. These descriptors capture the following features of each image as high-dimensional vectors: brightness distri- bution, border orientations and color layout. IMGpediaprovides static similarity relations among the images: for each image and for each descriptor, the dataset contains the 10 nearest neighbors—that is, the 10 most similar images according to how close they are in the Manhattan distance between their descriptors.

This information is described in RDF using a custom vocabulary that combines novel terms with terms from established vocabularies and appropriate RDFS/OWL definitions (see our extended paper accepted for the ISWC Resources Track for

1 http://commons.wikimedia.org

(2)

more details [2]). Additionaly,IMGpedia contains links toDBpediaentities and to DBpedia Commonsin order to obtain further metadata related to the image.

Currently we provide∼12 million links toDBpedia: an image is linked to an entity if the image appears in theWikipediaarticle of which the entity is about.

IMGpediais publicly available as an RDF dump2and as a SPARQL endpoint3.

3 Visuo-semantic Queries

Using SPARQL federation over theIMGpediaandDBpediadatasets, we are able to answer visuo-semantic queries—that is, queries that combine visual similarity (e.g. images similar to a given picture of La Moneda Palace, in Santiago) with queries about semantic facts (e.g. obtain a list of governmental palaces in Europe).

Hence, an example of a visuo-semantic query would be toobtain the depictions of the European governmental palaces that are similar to La Moneda Palace. In this section we show some examples of queries that can be answered usingIMGpedia. First,IMGpedia can answer image similarity queries, since it provides static similarity relations among them. In our extended paper [2], an example of this kind of query – looking for images similar to one of Hopsten Marktplatz in Germany – and the respective results can be found.

We can also perform semantic image retrieval4. In Listing 1 we request the images of the paintings made in the 16th century that are currently being displayed at the Louvre. In Figure 1we show the results.

Listing 1: Query to retrieve images of paintings from the 16th century that are displayed at the Louvre.

S E L E C T ? url ? l a b e l W H E R E {

S E R V I C E < h t t p :// d b p e d i a . org / sparql > {

? res a y a g o : W i k i c a t 1 6 t h - c e n t u r y P a i n t i n g s ;

d c t e r m s : s u b j e c t dbc : P a i n t i n g s _ o f _ t h e _ L o u v r e ; r d f s : l a b e l ? l a b e l . F I L T E R ( L A N G (? l a b e l )= ’ en ’)

}

? img imo : a p p e a r s I n ? res ; imo : f i l e U R L ? url . }

Finally,IMGpediacan answer visuo-semantic queries. In our extended paper [2]

we show a visuo-semantic query that requests the images of museums that are similar to any image of an European cathedral onWikipedia. In Listing2we show a SPARQL query that requests the museums that are similar to images that appear on articles categorized as Roman Catholic cathedrals in Europe, using the property pathdcterms:subject/skos:broader*to navigate sub-categories. In Figure2 we show a sample of the retrieved results.

Listing 2: Federated visuo-semantic query requesting images of museums that are similar to images related to European cathedrals

S E L E C T D I S T I N C T ? u r l s ? u r l t W H E R E { S E R V I C E < h t t p :// d b p e d i a . org / sparql > {

? s r e s d c t e r m s : s u b j e c t / s k o s : b r o a d e r * dbc : R o m a n _ C a t h o l i c _ c a t h e d r a l s _ i n _ E u r o p e }

? s o u r c e imo : a p p e a r s I n ? s r e s ; imo : s i m i l a r ? t a r g e t ; imo : f i l e U R L ? u r l s .

? t a r g e t imo : a p p e a r s I n ? t r e s ; imo : f i l e U R L ? u r l t . S E R V I C E < h t t p :// d b p e d i a . org / sparql > {

? t r e s d c t e r m s : s u b j e c t ? sub . F I L T E R ( C O N T A I N S ( STR (? sub ) , " M u s e u m ")) } }

2 http://imgpedia.dcc.uchile.cl/dumps

3 http://imgpedia.dcc.uchile.cl/sparql

4 Currently this cannot be done in DBpedia Commons since they do not extract the appearsInrelation

(3)

The Beggars, by Bruegel

The Wedding at Cana, by Veronese St. John the Baptist,

by Leonardo

St. John the Baptist, by Leonardo

The Wedding at Cana, by Veronese Baccus,

by Leonardo

Madonna with the Blue Diadem, by Raphael

Mona Lisa, by Leonardo

Mona Lisa, by Leonardo

Mona Lisa, by Leonardo

Ship of Fools, by Bosch

Fig. 1: Images of the Wikipedia articles about paintings from the 16th century displayed at the Louvre.

Basilica of St. John L. and Nat. Hist. Museum of Helsinki Cathedral of St. Mary and Dumbarton House Museum Cathedral of St. Mary and Museum of Fine Arts

Linköping Cathedral and 1st Church in Georgia Museum Essen Cathedral Plans and Plans of an Ancient Greek Mmt. Cath. Of St, Mary & St Boniface and Café Florian

Fig. 2: Images of Roman Catholic cathedrals in Europe that have a similar image relating to a museum.

4 Future Extensions

IMGpediais a novel resource. We plan to demo the first release of the dataset by showing the different kinds of queries that it is able to answer. However, we also wish to discuss plans to extend and improve the dataset and are interested to collect feedback from the ISWC community.5 We are currently working on the following tasks towards improving the quality and usability of the data:

5 An issue-tracker is also available athttp://github.com/scferrada/imgpedia/issues for feedback, feature requests, suggestions, etc.

(4)

– Provide links to Wikidata:Categories onDBpediaare not flexible enough for some visuo-semantic queries. We are interested in creating links withWiki- data[6] to see if this would enable new/better visuo-semantic queries.

– Compare similarity methods: IMGpedia was built using FLANN [4] to compute the similarity relations. However, other approximated algorithms or indexing techniques can be used. Hence we are studying and comparing the different ways to provide the similarity links.

– Include modern descriptors:The visual descriptors used in IMGpediaare rather classic techniques. We want to explore how image similarity would behave using more modern descriptors. One such descriptor is DeCAF7 [1], which is based on the neural network classification of the image.

– Explore more relations among images:IMGpediacurrently only provides similarity relations between images. We will explore of there are other relations that are worth including, such ascontainsif one image forms part of another, or sameObject if two images capture the same object but with different per- spectives or scales.

– Provide user-interfaces: Currently IMGpedia can be accessed through a dump, a SPARQL endpoint, or through dereferencing Linked Data IRIs. We also plan to investigate interfaces that will help users interact more intuitively with theIMGpedia dataset.

Aside from extensions and improvements to IMGpedia, we are interested to find additional use-cases for the dataset. We believe that many applications can be built upon IMGpedia. We can use pre-trained neural networks to classify the dataset’s images and provide the results as further context. We can also train our own network using the classes or categories of the related DBpedia/Wikidata resources to label the images and see if these provide an improved classification.

More generally, we hope thatIMGpediamay become a test-bed dataset for further works in the intersection of the Semantic Web and Multimedia.

Acknowledgments This work was supported by the Millennium Nucleus Center for Semantic Web Research, Grant›NC120004 and Fondecyt, Grant›11140900.

References

1. Donahue, J., Jia, Y., Vinyals, O., Hoffman, J., Zhang, N., Tzeng, E., Darrell, T.: Decaf:

A deep convolutional activation feature for generic visual recognition. In: International conference on machine learning. pp. 647–655 (2014)

2. Ferrada, S., Bustos, B., Hogan, A.: IMGpedia: a linked dataset with content-based analysis of Wikimedia images. In: The Semantic Web-ISWC 2017 (to appear)

3. Lehmann, J., Isele, R., Jakob, M., Jentzsch, A., Kontokostas, D., Mendes, P.N., Hell- mann, S., Morsey, M., van Kleef, P., Auer, S., Bizer, C.: DBpedia - A Large-scale, Multilingual Knowledge Base Extracted from Wikipedia. Semantic Web Journal (2014) 4. Muja, M., Lowe, D.G.: Fast approximate nearest neighbors with automatic algorithm

configuration. In: VISSAPP. pp. 331–340. INSTICC Press (2009)

5. Vaidya, G., Kontokostas, D., Knuth, M., Lehmann, J., Hellmann, S.: DBpedia Com- mons: Structured multimedia metadata from the Wikimedia Commons. In: The Se- mantic Web-ISWC 2015, pp. 281–289. Springer (2015)

6. Vrandeˇci´c, D., Kr¨otzsch, M.: Wikidata: A free collaborative knowledgebase. Comm.

ACM 57, 78–85 (2014)

Références

Documents relatifs

In our work, the answers for the query is a set of approximated graph patterns ranked in order of decreasing the approximation level value, every one contains nodes that correspond

In this paper, we present a sound and complete algorithm for answering SPARQL queries under the OWL 2 Direct Semantics entailment regime (from now on, SPARQL-OWL), describe

Informally this interpretation of the distinct count function returns a single value which represents the known number of distinct tuples in an aggregate group.. For the number k

To answer a relaxed instance query is to compute for a given concept C, a CSM ∼, and a threshold t between 0 and 1, a set of concepts such that each of these concepts are similar to

Given an ontology and a query, the tool re- ports di↵erent kinds of programming errors: wrong use of vocabulary, wrong use of resources and literals, wrong filter conditions and

We use SPARQL conjunctive queries as views that describe sources contents. As in the Bucket Algorithm [20], relevant sources are selected per query subgoal, i.e., triple pattern.

FedViz is an online application that provides Biologist a flexible visual interface to formulate and execute both federated and non-federated SPARQL queries. It translates the

As such, aside from adding links, DBpedia ignores the images appearing in the body of the article for a given entity as well as the structured data available in image pages: