Presentation is loading. Please wait.

Presentation is loading. Please wait.

Verbalized Query Construction on general case (con.3)

Similar presentations


Presentation on theme: "Verbalized Query Construction on general case (con.3)"— Presentation transcript:

1 Verbalized Query Construction on general case (con.3)
Qingxia Liu 2019/1/2

2 Basic Structure Tree like structure:
what do you want to find? restart Find all ?film1, ?film2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has runtime ?runtime2 (from 7200 to 10800) has writer ?writer (Writer) is writer of ?film1 Tree like structure: nesting of node description blocks Information Need: Find two films that has the same director and writer, and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

3 Construct Procedure Init create the root node Modify Project
Node Setting rename current node delete current node Value Constraint class constraint: for uri / blanknode/literal resource filter: value range binary constraint relation to existing variable Link add an arc to a new node Project

4 Basic Structure Tree like structure:
what do you want to find? restart Find all ?film1, ?film2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has runtime ?runtime2 (from 7200 to 10800) has writer ?writer (Writer) is writer of ?film1 Tree like structure: nesting of node description blocks Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

5 Init Create the root node : set name, set class Information Need:
what do you want to find? start Create the root node : set name, set class Create a variable set name: set class: add cancel ?v0 Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

6 Init Create the root node : set name, set class Information Need:
what do you want to find? restart Create the root node : set name, set class Find all ?film1, that ?film1 (Film) has property… Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

7 Modify set name, set class Information Need:
what do you want to find? restart set name, set class Find all ?film1, that ?film1 (Film) has property… Set variable set name : bind instance : set class: set cancel ?film1 Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

8 Modify add property Information Need:
what do you want to find? restart add property Find all ?film1, that ?film1 (Film) has property… Add property Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

9 Modify add property Information Need:
what do you want to find? restart add property Find all ?film1, ?runtime, ?director, ?writer, that ?film1 (Film) has property… has runtime ?runtime has director ?director has writer ?writer Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

10 Modify set name set value range(filter)
what do you want to find? restart set name set value range(filter) (literal has no class constraint) Find all ?film1 , ?runtime, ?director, ?writer that ?film1 (Film) has runtime ?runtime has director ?director has writer ?writer Set variable set name: set value range : from ______ to ______ set class: set cancel ?runtime Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

11 Modify set name set value range(filter) Information Need:
what do you want to find? restart set name set value range(filter) Find all ?film1 , ?runtime, ?director, ?writer, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director has writer ?writer Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

12 Modify set name set value range(filter) Information Need:
what do you want to find? restart set name set value range(filter) Find all ?film1 , ?runtime, ?director, ?writer, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director has property… has writer ?writer Set variable set name : bind instance : set class: set cancel ?director Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

13 Modify set name set value range(filter) Information Need:
what do you want to find? restart set name set value range(filter) Find all ?film1 , ?runtime, ?director, ?writer, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has property… has writer ?writer Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

14 Modify after many similar steps …. Information Need:
what do you want to find? restart after many similar steps …. Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has property… has relation… has runtime ?runtime2 (from 7200 to 10800) has writer ?writer (Writer) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

15 Modify add relation to existing variable (binary constraint)
what do you want to find? restart add relation to existing variable (binary constraint) Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has property… has relation… has runtime ?runtime2 (from 7200 to 10800) has writer ?writer (Writer) Relations to existing variables: Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

16 Modify reconstruct: maintain a DFS tree Information Need:
what do you want to find? restart reconstruct: maintain a DFS tree Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has property… has relation… has writer ?writer (Writer) is writer of ?film1 has runtime ?runtime2 (from 7200 to 10800) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

17 Modify delete: delete a constraint delete a node delete an arc
what do you want to find? restart delete: delete a constraint delete a node delete an arc Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 x (Film x) has writer ?writer (Writer) is writer of ?film1 x has runtime ?runtime2 (from 7200 to x) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

18 Modify delete: delete a constraint delete a node delete an arc
what do you want to find? restart delete: delete a constraint delete a node delete an arc Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has writer ?writer (Writer) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

19 Project project: select interested variables Information Need:
what do you want to find? restart project: select interested variables Find all ?film1 , ?runtime x , ?director x , ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has writer ?writer (Writer) is writer of ?film1 has runtime ?runtime2 (from 7200 to 10800) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

20 Project project: select interested variables Information Need:
what do you want to find? restart project: select interested variables Find all ?film1 , ?film2, + that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has writer ?writer (Writer) is writer of ?film1 has runtime ?runtime2 (from 7200 to 10800) select variables: Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

21 Thank You ~ Any suggestions?

22 Modify add relation to existing variable (binary constraint)
what do you want to find? restart add relation to existing variable (binary constraint) Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has runtime ?runtime2 (from 7200 to 10800) has writer ?writer (Writer) has property… has relation… Relations to existing variables: Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

23 Modify reconstruct: maintain a DFS tree Information Need:
what do you want to find? restart reconstruct: maintain a DFS tree Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 (Film) has writer ?writer (Writer) has property… has relation… is writer of ?film1 has runtime ?runtime2 (from 7200 to 10800) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

24 Modify delete: delete a constraint delete a node / delete a branch
what do you want to find? restart delete: delete a constraint delete a node / delete a branch delete an arc Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) has made ?film2 x (Film x) has writer ?writer (Writer) is writer of ?film1 x has runtime ?runtime2 (from 7200 to x) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;

25 Modify delete: delete a constraint delete a node / delete a branch
what do you want to find? restart delete: delete a constraint delete a node / delete a branch delete an arc Find all ?film1 , ?runtime, ?director, ?writer, ?film2, ?runtime2, that ?film1 (Film) has runtime ?runtime (from 0 to 7200) has director ?director (Director) Information Need: Find two films that has the same director and writer ,and the first film’s runtime between 0 and 7200 seconds, the second film’s runtime between 7200 and seconds;


Download ppt "Verbalized Query Construction on general case (con.3)"

Similar presentations


Ads by Google