MPEG - Query

33
1 SAMT’08 Semantic-driven multimedia retrieval with the MPEG Query Format Ruben Tous and Jaime Delgado Distributed Multimedia Applications Group (DMAG) Universitat Politècnica de Catalunya (UPC) Dept. Computer Architecture Barcelona (Spain)

Transcript of MPEG - Query

Page 1: MPEG - Query

1

SAMT’08

Semantic-driven multimedia retrieval with the MPEG Query Format

Ruben Tous and Jaime Delgado

Distributed Multimedia Applications Group (DMAG)Universitat Politècnica de Catalunya (UPC)

Dept. Computer ArchitectureBarcelona (Spain)

Page 2: MPEG - Query

Presentation outline

The MPEG Query Format (MPQF)MPQF evaluation modelHow to extend MPQF to allow SPARQL-like queriesMPQF and metadata interoperability

2

Page 3: MPEG - Query

MPEG Query Format (MPQF)

Page 4: MPEG - Query

4

MPEG Query Format (MPQF): IntroductionISO/IEC 15938-12 Query Format (MPQF)

Recently reached the International Standard level

MPQF: “Provides a standardized interface for multimedia content retrieval systems (e.g.: MPEG-7 databases)”

Allows combining Data Retrieval like conditions (XPath, XQuery) with Information Retrieval like conditions (Query-by-Example, etc.)

Is an XML application: One XML schema describing messages:Requester -> responder = Input Query Format Responder -> requester = Output Query FormatManagement messages (service properties, etc.)

Part 12 of ISO/IEC 15938 (MPEG-7), but METADATA-NEUTRAL

Page 5: MPEG - Query

5

Service Provider

Requester

MPQF

MPQF

MPQF

MPQF Service N

Service 2

Service 1

Responder

Input Query FormatOutput Query Format

Query Management InputQuery Management Output

Client

Query Splitter

Resultlist Aggregator

Page 6: MPEG - Query

MPEG Query Format (MPQF)

Schema overview of the uppermost elements of MPQF

6

MpegQuery

Query

Management

FetchResult

Output

Input

Output

Input

Page 7: MPEG - Query

MPEG Query Format (MPQF)

Input Query Format (IQF)

7

QFDeclaration

ServiceSelection

Input

OutputDescription

QueryCondition

Path

TargetMediaType

Join

Condition

Page 8: MPEG - Query

8

MPEG Query Format (MPQF)

Condition types

IR-like criteriaQueryByFreeText

QueryByDescription

QueryByMedia

TemporalQuery

SpatialQuery

Embedded XQuery expressions(metadata-neutral)

XML query algebra(metadata-neutral)

DR-like criteria

QueryByROI

DR-like criteriaBoolean connectors

Page 9: MPEG - Query

MPEG Query Format (MPQF)

Example input query condition tree (graphical view)

9

AND

<InlineMedia type=“image/jpeg"><MediaData64>R0lGODlhDwAPAKECAAAAzMzM/////

wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09….

</MediaData64></InlineMedia> 1000//FileSize

<QueryByMedia

Page 10: MPEG - Query

10

Input Query Format (Example)

Page 11: MPEG - Query

MPEG Query Format (MPQF)

Output Query Format (OQF)

11

GlobalComment

ResultItemOutput

SystemMessage

Comment

TextResult

Thumbnail

MediaResource

Description

AggregationResult

Page 12: MPEG - Query

12

Output Query Format (Example)

Page 13: MPEG - Query

MPQF evaluation model

Page 14: MPEG - Query

14

<metadata>

image2

image1

<metadata>

<metadata>image3

Multimedia Database: Simplistic view

Page 15: MPEG - Query

15

<metadata>

Metadata DB

image2

i3.1 i3.2

image1

Content DB

<metadata>

<metadata>

Multimedia Database: Complex view (the one in the Query Format)

image4 <metadata>

<metadata>image1

Page 16: MPEG - Query

16

<metadata> =

XML

The Query Format assumes XML metadata

Page 17: MPEG - Query

MPQF in depth

The EvaluationPath element

17

<MpegQuery><Query>

<Input><QueryCondition><EvaluationPath>//VideoSegment</EvaluationPath><Condition xsi:type="QueryByFreeText">

<FreeText>Lausanne</FreeText></Condition>

</QueryCondition></Input>

</Query></MpegQuery>

Page 18: MPEG - Query

18

Metadata DB

image2

i3.1 i3.2

image1

Content DB

Multimedia Database: Complex view (the one in the Query Format)

image1

Image/region locators//IDs 

Page 19: MPEG - Query

image2

i.1 i3.2

image1

Content DB Metadata DB

Image region locators

Independentmetadata

Image Database: Practical view (ONE BIG XML TREE)

Page 20: MPEG - Query

MPQF in depth

Two evaluation styles in MPQF: Boolean and fuzzy-logic

20

//FileSize < 1000

1= TRUE

1= TRUE1= TRUE

0.4

0.56

0.7

QueryByMedia

inputsequence

outputsequence

Page 21: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

Page 22: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

Knowledge base (KB) = Tbox (terminological component) +Abox (assertion component)Some relevant initiatives are choosing the RDF language for modeling metadata metadataTypical Semantic Web based multimedia KB (e.g. PhotoRDF):

Tbox = RDFS/OWL ontologies Abox = RDF statements about the media objects

22

ABox

Knowledge DB

ps

ops

ps o

po

ops

ps o

ops

ps o

TBox (ontologies)

o

s

Page 23: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

SPARQL. W3C Recommendation on 15th January 2008An SPARQL query consists of a basic graph pattern, expressed as a list of triple patterns

23

PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX ns: <http://example.org/ns#>SELECT ?title ?priceWHERE { ?x ns:price ?price .FILTER (?price < 30.5)?x dc:title ?title . }

ps

ops

ps o

o

ops

ps o

Page 24: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

Proposal 1/3: Extend the MPQF data model

24

video2

v3.1 v3.2

video1

Content DB Metadata DB

ABox

Knowledge DB

ps

ops

ps o

ps o

ops

ps o

ops

ps o

TBox (ontologies)

o

Page 25: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

Proposal 2/3: Include a new query type: QueryBySPARQL

25

<MpegQuery mpqfID="someID"><Query><Input><QueryCondition><Condition xsi:type="QueryBySPARQL"><SPARQL><![CDATA[PREFIX dc: <http:///>ASK { ?resource dc:title "Barcelona . }]]>

</SPARQL></Condition>

</QueryCondition></Input></Query></MpegQuery>

Page 26: MPEG - Query

How to extend MPQF to allow SPARQL-like queries

Visual representation of the execution of the new QueryBySPARQLquery type

26

video2

v3.1 v3.2

video1

Content DB Metadata DB Knowledge DB

ps

ops

ps o

ps o

o

p

sp

p

o

ps o

matching RDF triples

Evaluation‐Item (EI) 

Page 27: MPEG - Query

AND

PREFIX dc: <http://purl.org/dc/elements/1.1/> ASK { ?resource dc:title "Barcelona . }

1000//FileSize

<QueryBySPARQL

<InlineMedia type=“image/jpeg"><MediaData64>R0lGODlhDwAPAKECAAAAzMzM/////

wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09….

</MediaData64></InlineMedia>

QueryByMedia

Page 28: MPEG - Query

But, what about metadata interoperability with MPQF?

Page 29: MPEG - Query

MPQF and metadata interoperability

Currently MPQF is metadata-neutralQueries refer to paths related to different metadata formats

Several metadata formats exist: Dublin Core, EXIF, ID3, MPEG-7, etc.Semantic mappings can help circumventing the problemThe mappings are (supposed to be) easiest to specify with ontologies(with our proposal) we can use RDF and SPARQL in MPQF but…Can I use “ontologies” with MPQF?

(currently) no, at least not in a “standard” way

29

Page 30: MPEG - Query

MPQF and metadata interoperability

Proposal 3/3: Extend MPQF:Allow registering RDFS/OWL ontologiesBe aware of the registered ontologies when querying XMLBe aware of the registered ontologies when querying RDFBe aware of the registered ontologies when querying free text?

30

Page 31: MPEG - Query

MPQF and metadata interoperability

Two choices to achieve interoperability with N formats:Specify NxN mappingsSpecify one reference metadata format and N mappings (better!)

Which kind of reference metadata format?An XML Schema (e.g. XMP) But mappings are simpler if the reference metadata model is also an ontologyThis issue is now being discussed at JPEG (JPSearch initiative)OPEN ISSUE

31

Page 32: MPEG - Query

Conclusions

The MPEG Query Format is finished! But now is time for amendments and corrigenda

The implementation race has begunMPQF lacks the ability of handling RDF and SPARQL

Proposal 1/3: Extend the logical modelProposal 2/3: New query type: QueryBySPARQLProposal 3/3: Allow registering ontologies

A relevant piece is still missing: A pivot metadata format

32

Page 33: MPEG - Query

Acknowledgments

33

Thank you