Abstract
Interconnecting machine readable data with multimedia assets and fragments has recently become a common practice. But specific retrieval techniques for the so called Semantic Multimedia data are still lacking. On our poster we present SPARQL-MM, a function set that extends SPARQL to Media Fragment facilities by introducing spatio-temporal filter and aggregation functions.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
In the recent past Multimedia and the Semantic Web have moved closer together, reflected in many efforts like W3C recommendations for Media Annotations [2] and Fragment URIs [7], which are also taken up by industry like described e.g. in [4, 5]. These efforts mainly focus on a standardized representation of multimedia metadata and the connection to knowledge using Semantic Web technologies, but currently do not consider multimedia specific query functionalities. On our poster we present SPARQL-MM, an extension for SPARQL that introduces spatio-temporal filter and aggregation functions to the de-facto standard query language in the Semantic Web. In the following we give an example, how media is currently represented in the Semantic Web and which functions are missing for current SPARQL.
2 The Hidden Knowledge of Fragment Annotations
Figure 1 outlines an example of an annotated video showing the winners ceremony of an extreme sports event. We use Media Fragment URIs to link annotations to specific spatio-temporal parts of the video. The specification provides a media-format independent, standard means of addressing media fragments on the Web using Uniform Resource Identifiers. It supports particular name-value pairs, e.g. (’t=’start’,’end) for temporal and (’xywh=’,x’,’y’,’width ’,’height) for regional fragments. In our example Connor Macfarlane appears from second 194 to 198 on the left side, while Lewis Jones is marked from second 193 to 198 on the right side. If a user wants to retrieve the (spatio-temporal) snippet, that covers exactly these both person, she may issue a query like: “Give me the spatio-temporal snippet that shows Lewis Jones right beside Connor Macfarlane”. Currently SPARQL does not support such queries, because some necessary information is not explicitly expressed in RDF, but hidden within the Media Fragment URIs. Neither does SPARQL support filter functions like rightBeside or temporalOverlap, nor aggregation functions like boundingBox.
3 SPARQL Multimedia Functions
Table 1 lists all functions that we took into account for our extension. We follow well known standards like DE-9IM [3] for topological and [1] for temporal relations. The parameters r1, r2 are of type media fragment resource, the boolean flag decides, if equal ranges are included or not (whereby false is default). A detailed description of all functions in human and machine readable format (following the sparql-service-description extension for describing SPARQL extensions and function librariesFootnote 1) can be found on the source repository of our reference implementationFootnote 2. Each function is identified by a unique URI but all together share the same base URI mm: \(\mathtt{{<}}\) http://linkedmultimedia. org/sparql-mm/functions# \(\mathtt{{>}}\). Currently the implementation uses the OpenRDF SesameFootnote 3 API and its extension interfaces, which makes it backend agnostic but requires expensive and inefficient in-memory calculations. We plan to improve this by a backend specific implementation for KiWi TriplestoreFootnote 4 in combination with SQL/MM [6].
Using SPARQL-MM functions we can now formulate the users need from Sect. 2 (“Give me the spatio-temporal snippet that shows Lewis Jones right beside Connor Macfarlane”), as a SPARQL query like in Listing 1.1. We use mm:temporalOverlaps to get fragments that appear in the identical temporal sequence. mm:rightBeside handles the spatial relation and mm:boundingBox merges every two fragments that match the filters. You can test the query by selecting the example from the samples menu in the demo pageFootnote 5.
4 Conclusion and Further Work
In this paper we presented SPARQL-MM, a function set that adds spatio-temporal filters and aggregators to SPARQL. In further steps we will extend the function set to fragment feature extractors (e.g. getDuration) that can for example be used for sorting. We also try to include more complex spatial structures like polygons, e.g. by extending the MediaFragments URIs with a rel attribute that points to SVG shapes.
SPARQL-MM is implemented as Open Source project hosted on GitHub.
References
Allen, J.F.: Maintaining knowledge about temporal intervals. Commun. ACM 26(11), 832–843 (1983)
Bailer, W., et al.: Ontology for media resources 1.0. W3C recommendation, W3C, February 2012. http://www.w3.org/TR/2012/REC-mediaont-10-20120209/
Clementini, E., di Felice, P., van Oosterom, P.: A small set of formal topological relationships suitable for end-user interaction. In: Abel, D.J., Ooi, B.-C. (eds.) SSD 1993. LNCS, vol. 692, pp. 277–295. Springer, Heidelberg (1993)
Kurz, T., et al.: Semantic enhancement for media asset management systems. Multimedia Tools Appl. 1–27 (2012). doi:10.1007/s11042-012-1197-7
Lyndon J.B.N.. et al.: Connectme: semantic tools for enriching online video with web content. In: I-SEMANTICS (Posters & Demos). vol. 932, CEUR Workshop Proceedings, pp. 55–62 (2012)
Stolze, K.: SQL/MM spatial - the standard to manage spatial data in a relational database system. In: BTW, pp. 247–264 (2003)
Troncy, R., et al.: Media fragments URI 1.0 (basic). W3C recommendation, W3C, September 2012. http://www.w3.org/TR/2012/REC-media-frags-20120925/
Acknowledgments
SPARQL-MM is developed within MICO, a research project partially funded by the European Commission 7th FP (grant agreement no: 610480).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Kurz, T., Schaffert, S., Schlegel, K., Stegmaier, F., Kosch, H. (2014). SPARQL-MM - Extending SPARQL to Media Fragments. In: Presutti, V., Blomqvist, E., Troncy, R., Sack, H., Papadakis, I., Tordai, A. (eds) The Semantic Web: ESWC 2014 Satellite Events. ESWC 2014. Lecture Notes in Computer Science(), vol 8798. Springer, Cham. https://doi.org/10.1007/978-3-319-11955-7_26
Download citation
DOI: https://doi.org/10.1007/978-3-319-11955-7_26
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-11954-0
Online ISBN: 978-3-319-11955-7
eBook Packages: Computer ScienceComputer Science (R0)