summaryrefslogtreecommitdiff
path: root/examples/query/small/patentsQuery/QueryProton.gf
blob: 4c1bd72375a734f53e36822db90da0a127d965db (plain)
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
55
56
57
58
59
abstract QueryProton = Query ** {

fun
  QCalled : Individual -> Query ; -- how is X (also | otherwise) (called | named | known) ;

  NLoc : Loc -> Name ;
  NOrg : Org -> Name ;
  NPers : Pers -> Name ;

  IName    : Name -> Individual ;
  ACalled  : [Individual] -> Activity ;

-- the test lexicon

cat
  JobTitle ;
fun
  Located : Loc -> Property ;
  Employed : Org -> Property ;

  Work : Org -> Activity ;
  HaveTitle : JobTitle -> Activity ;
  HaveTitleOrg : JobTitle -> Org -> Activity ;

  Organization : Kind ;
  Place : Kind ;
  Person : Kind ;

  Location : Relation ;
  Region : Relation ;
  Subregion : Relation ;

  RName     : Relation ;
  RNickname : Relation ;

-- JobTitles
   JobTitle1 : JobTitle ;
   JobTitle2 : JobTitle ;
   JobTitle3 : JobTitle ;
   JobTitle4 : JobTitle ;

-- Locations
   Location1 : Loc ;
   Location2 : Loc ;
   Location3 : Loc ;
   Location4 : Loc ;

-- Organizations
   Organization1 : Org ;
   Organization2 : Org ;
   Organization3 : Org ;
   Organization4 : Org ;

-- Persons
   Person1 : Pers ;
   Person2 : Pers ;
   Person3 : Pers ;
   Person4 : Pers ;
}