Spatial graph grammar and application
Download
1 / 30

Spatial Graph Grammar and Application - PowerPoint PPT Presentation


  • 398 Views
  • Uploaded on

Spatial Graph Grammar and Application. Meikang Qiu Department of Computer Science The University of Texas at Dallas Email: qiumeikang@utdallas.edu. Table of Content. Introduction Spatial Graph Grammar Application Future Work and Conclusion. 1. Introduction .

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Spatial Graph Grammar and Application' - Anita


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Spatial graph grammar and application l.jpg

Spatial Graph Grammar and Application

Meikang Qiu

Department of Computer Science

The University of Texas at Dallas

Email:qiumeikang@utdallas.edu


Table of content l.jpg
Table of Content

  • Introduction

  • Spatial Graph Grammar

  • Application

  • Future Work and Conclusion


1 introduction l.jpg
1. Introduction

  • An overview of visualization

    - Visualization refers to the representation of ideas and concepts in some meaningful and intuitive formats.

    -The power of information visualization has become synonymous with percept ualization and a novel mode of communication. But …


A graph grammar formalism l.jpg
A graph grammar formalism

  • The “Reserved Graph Grammar” (RGG) formalism defines context-sensitive graph grammars for diagrammatic visual languages.

  • It is expressive in defining various types of graph formalisms; and efficient in parsing most types of graphs.

D-Q. Zhang and K. Zhang, and J. Cao, A Context-Sensitive Graph Grammar Formalism for the Specification of Visual Languages, The Computer Journal, Oxford University Press, Vol.44, No.3, 2001, 186-200.


Xml tree for museum structure l.jpg

Museum

Direct

Hall

Name

Hall

Item

Item

Topic

Topic

Photo

Demo

Name

Photo

Name

Demo

XMLtreeformuseumstructure


Node structure l.jpg
Node structure

super-vertex

M

Hall

T

B

I

vertex


The node edge form of the museum xml tree l.jpg
The node-edge form of the Museum XML tree

Museum

D

H

N

Name

Hall

M

M

Direction

M

Hall

M

T

I

T

I

Topic

H

Item

H

Topic

H

Item

H

P

D

P

D

N

N

Name

I

Photo

I

Demo

I

Name

I

Photo

I

Demo

I


A production s l application and r application l.jpg
A production’s L-application and R-application

L-application: find in the host graph a match to the left graph, and then replace the match by the right graph. L-application defines the language.

R-application: find in the host graph a match to the right graph, and then replace the match by the left graph.

R-application is used to parse a graph and validate whether the graph belongs to the language.


A graph rewriting rule production in rgg l.jpg

mark

right graph

left graph

A graph rewriting rule (production) in RGG

1:M

1:M

Hall[1]

Hall[1]

3:T

2:I

3:T

2:I

:=

H

par

Item

4:N

5:P

6:D

4:N

5:P

6:D


A grammar specifying the museum xml and its transformation to a multimedia representation l.jpg
A grammar specifying the Museum XML and its transformation to a multimedia representation

<2> Museum-Hall

<1> Museum

Museum[1]

Museum[1]

smil

3:N

2:D

1:H

1:H

3:N

2:D

Museum[1]

:=

:=

3:N

2:D

1:H

M

body

div

head

Hall[2]

N

D

H

T

I

T

I

<3> Museum-Name-Direction

Museum[1]

Museum[1]

1:H

D

N

2:D

1:H

3:N

:=

M

M

h1[2]

img[3]

Name[2]

Direction[3]


Smil tree for multimedia museum representation l.jpg

smil to a multimedia representation

body

layout

img

div

h1

div

par

par

h2

h2

img

video

img

video

h3

h3

SMIL tree for multimedia museum representation


A grammar specifying the museum xml and its transformation to a multimedia representation12 l.jpg
A grammar specifying the Museum XML and its transformation to a multimedia representation

<5> Hall-Item

<4> Hall-Topic

1:M

M

1:M

M

Hall[1]

Hall[1]

Hall[1]

Hall[1]

3:T

2:D

3:T

2:D

3:T

2:D

T

2:D

:=

:=

H

par

I

Item[2]

h3

Topic

P

D

N

N

P

D

<6> Item-Name-Photo-Demo

1:H

H

Item[1]

Item[1]

N

P

D

4:N

3:P

2:D

:=

I

I

I

video[4]

h3[2]

img[3]

Demo[4]

Photo[3]

Name[2]


Graph transformations from museum xml to smil l.jpg
Graph transformations from Museum XML to SMIL to a multimedia representation

<3>

Museum

<4>

<5>

Museum

Direction

Name

Hall

img

Hall

h1

Hall

Hall

Item

h2

Item

Item

Topic

h2

Item

Topic

video

video

img

Photo

h3

Demo

img

Name

h3

Photo

Name

Demo

<6>

<6>

(b)

(a)

smil

<1>

Museum

<2>

head

body

Hall

img

h1

Hall

div

img

h1

div

par

h2

par

h2

par

par

h2

h2

video

video

img

h3

img

h3

video

video

img

h3

img

h3

(c)

(d)


2 spatial graph grammar l.jpg
2. Spatial Graph Grammar to a multimedia representation

  • How to represent the information of direction,

    distance and size?

  • Direction Specification

  • Distance Specification

  • Size Specification


Direction specification l.jpg

NW to a multimedia representation

N

NE

E1

W

C

E2

S

SE

SW

Direction Specification

  • The central area : the super vertex itself.

  • the eight areas : eight directions

  • Each of these directions indicates relative position of the node connected to the current node.


Alignment relation l.jpg

A to a multimedia representation

B

a

b

A

B

c

d

Alignment Relation

  • use dark bolded line segment ----the part that at same horizontal ( vertical ) level


Distance specification l.jpg
Distance Specification to a multimedia representation

  • Three dynamic relations between two nodes

  • Postfix “+” on vertex label :distance increase

  • Postfix “-” for distance decrease

  • Postfix blank for no distance change

  • Distance > zero

B-

A-


Touch and untouch relation l.jpg

A to a multimedia representation

B

a

b

A

B

c

d

Touch and Untouch relation

  • Untouched: Distance > Zero

  • Touched: Distance == Zero

  • use dotted line: for the touched parts


Overlap and partial overlap l.jpg
Overlap and Partial Overlap to a multimedia representation

  • Distance < zero

  • Overlap :The node under (use dotted line)

A

B

B

A


Overlap and partial overlap20 l.jpg

A to a multimedia representation

B

a

b

A

B

c

Overlap and Partial Overlap

  • partial overlap : overlapped part of under node (use dotted line)


Contain relation l.jpg
Contain Relation to a multimedia representation

  • Distance < |Ra-Rb|

  • Draw the node inside by dark bolded line.

B

A


Size specification l.jpg
Size Specification to a multimedia representation

  • use “+” in center grid of a node: enlarge

  • Use “-“ for shrink the size

  • no sign: node size will not be changed.

-

+

A

B


3 application l.jpg
3. Application to a multimedia representation

1). Transforming Web Graphics for Mobile

Devices

  • rapid development of Internet

     more graphs to be delivery on the Web

  • Client: varying screen size, style preference

  • mobile device:

    PDA (Personal Digital Assistants)

     layout need to be changed


Web transformation l.jpg

A to a multimedia representation

A

B

C

B

C

(a)

(b)

A

B

C

(a)

A

B

C

(b)

Web Transformation

  • From Web page  mobile interface


Transformation rule l.jpg

Pics to a multimedia representation

<2>

<1>

Title

:=

<3>

1

Link

Links

Content

Doc

Doc

:=

1

Link

:=

1

2

Head

Link

2

<4>

2

1

:=

Links

Link

2

1

<5>

S-Title

1

Section

:=

End

2

Head

1

<7>

1

<6>

Section

1

Section

:=

Content

1

Section

:=

2

Section

2

End

Figure 7 Graph grammar

S-Con

2

Transformation Rule


A toolset environment vispro l.jpg
A toolset environment – VisPro to a multimedia representation


4 future work and conclusion l.jpg
4.Future Work And Conclusion to a multimedia representation

  • Animation :

    interactive communication

    dynamic capture and access, authoring

    time and spatial specifications

  • Temporal Aspects:

    during, before, meet Relations

    Temporal specifications determine the sequence of presentation


Conclusion l.jpg
Conclusion to a multimedia representation

  • Extended context-sensitive graph grammar formalism with spatial specifications

  • The parsing algorithm of SGG has polynomial time complexity in most cases

  • The parser performs an automatic validation on the layout structure


Conclusion30 l.jpg
Conclusion to a multimedia representation

  • SGG: wide range of applications

    - web page layout transformation

    - multimedia interfaces

    - electronic publishing

    - XML document conversion