diff options
| author | aarne <aarne@chalmers.se> | 2012-06-21 06:06:05 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2012-06-21 06:06:05 +0000 |
| commit | f8e74c50e277b06964f2d820da109197ecde5711 (patch) | |
| tree | bc87de828ed3aaf2bb6fbf5315016894b75644fd /examples/query/small/patentsQuery/QueryProton.gf | |
| parent | 18c08fdac1b981b85b15a9f28584b0def9aa45a2 (diff) | |
factored Query by taking our Proton parts and introducing an interface
Diffstat (limited to 'examples/query/small/patentsQuery/QueryProton.gf')
| -rw-r--r-- | examples/query/small/patentsQuery/QueryProton.gf | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/examples/query/small/patentsQuery/QueryProton.gf b/examples/query/small/patentsQuery/QueryProton.gf new file mode 100644 index 000000000..4c1bd7237 --- /dev/null +++ b/examples/query/small/patentsQuery/QueryProton.gf @@ -0,0 +1,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 ; +}
\ No newline at end of file |
