-
Notifications
You must be signed in to change notification settings - Fork 1
/
EventSearch.ttl
55 lines (48 loc) · 1.52 KB
/
EventSearch.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@prefix : <http://dialsws.xyz/events/> .
@prefix uimo: <http://vocab.sti2.at/uimo/> .
@prefix schema: <http://schema.org/> .
@prefix oa: <http://www.w3.org/ns/oa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
:EventSearch a uimo:Intent ;
schema:name "Search Events"@en ;
uimo:slot :EventTypeSlot ;
uimo:slot :EventStartDateSlot ;
uimo:exampleUtterance :utt1 ;
uimo:action :SPARQL_EP ;
uimo:action :EVENT_SEARCH_API .
:EventTypeSlot a uimo:EntityTypeSlot ;
uimo:valueType schema:Event.
:EventStartDateSlot a uimo:RequiredSlot ;
uimo:propertyPath "schema:startDate" ;
uimo:valueType xsd:date ;
uimo:question "Which date?".
:EventLocationSlot a uimo:RequiredSlot ;
uimo:propertyPath "schema:location/addressLocality | schema:location/addressCountry" ;
uimo:valueType schema:PostalAddress ;
uimo:question "Where?".
:Utt1 a uimo:Utterance ;
schema:text "I am looking for concerts in Innsbruck next tuesday"@en .
:EntityTypeAnno a oa:Annotation;
oa:hasBody :EventTypeSlot;
oa:hasTarget [
oa:hasSource :utt1;
oa:hasSelector [
a oa:TextPositionSelector;
oa:start 17; oa:end 24]
];
:StartDateAnno a oa:Annotation;
oa:hasBody :EventStartDateSlot;
oa:hasTarget [
oa:hasSource :utt1;
oa:hasSelector [
a oa:TextPositionSelector;
oa:start 39; oa:end 50]
];
:LocationAnno a oa:Annotation;
oa:hasBody :EventLocationSlot;
oa:hasTarget [
oa:hasSource :utt1;
oa:hasSelector [
a oa:TextPositionSelector;
oa:start 29; oa:end 37]
].