Adds other cxns.

parent 8fd613da
......@@ -778,46 +778,42 @@
:call (introduce (? :direct-dist) (? :spg)
(? :locatum-role) (? :relatum-role)
(? :source-role) (? :path-role) (? :trajector-role))
////TODO>>>
:merge [[(? :clause) :cg/subunit (? :pp)]
[(? :trans) :say/satisfies (? :cause-motion)]
[(? :cause-motion) :scg/isa :say/CausedMotion]
[(? :cause-motion) :cg/agent (? :agent)]
[(? :cause-motion) :cg/trajector (? :trajector)]
[(? :cause-motion) :say/evokes (? :spg)]
:merge [[(? :pp) :say/evokes (? :spg)]
[(? :spg) :say/has-constituent (? :trajector-role)]
[(? :trajector-role) :say/classifies (? :trajector)]
[(? :spg) :say/has-constituent (? :source-role)]
[(? :source-role) :say/classifies (? :source)]
[(? :spg) :say/has-constituent (? :path-role)]
[(? :path-role) :say/classifies (? :direct-dist)]
[(? :direct-dist) :say/has-constituent (? :locatum-role)]
[(? :locatum-role) :say/classifies (? :trajector)]
[(? :direct-dist) :say/has-constituent (? :relatum-role)]
[(? :relatum-role) :say/classifies (? :source)]
[(? :spg) :scg/isa :say/SourcePathGoal]
[(? :spg) :cg/source (? :source)]
;[(? :spg) :path (? :path)]
[(? :spg) :cg/goal (? :goal)]
[(? :term-state) :say/satisfies (? :tl-schema)]
[(? :tl-schema) :scg/isa :say/TLSchema]
[(? :tl-schema) :cg/trajector (? :trajector)]
[(? :tl-schema) :cg/landmark (? :goal)]
]}
{:id :contained-PP-process ; "Whisk with a spoon", "Cover with care."
:match [[(? :clause) :cg/subunit (? :vp)]
[(? :vp) :cg/head (? :verb)]
[(? :verb) :say/evokes (? :verb-schema)]
[(? :vp) :scg/isa :say/VP]
[(? :pp) :scg/isa :say/PP]
[(? :relatum-role) :scg/isa :say/Relatum]
[(? :locatum-role) :scg/isa :say/Locatum]
[(? :direct-dist) :scg/isa :say/GeneralDirectionalDistancing]
[(? :path-role) :scg/isa :say/Path]
[(? :source-role) :scg/isa :say/Source]
[(? :trajector-role) :scg/isa :say/Trajector]
]}
{:id :contained-PP; "with a spoon", "with care.", "with the hoodie"
:match [[(? :pp) :scg/isa :say/PP]
[(? :pp) :cg/subunit (? :p)]
[(? :p) :scg/word (? :p-word)]
[(? :p-word) :scg/form "with"]
[(? :pp) :cg/subunit (? :np)]
[(? :np) :scg/isa :say/NP]
[(? :np) :cg/referent (? :anything)]
[(? :trans) :say/is-expressed-by (? :clause)]
[(? :trans) :scg/isa :say/StateTransition]
[(? :np) :cg/referent (? :entity)]
]
:call (introduce (? :link-schema))
:merge [[(? :clause) :cg/subunit (? :pp)]
[(? :trans) :say/satisfies (? :link-schema)]
:call (introduce (? :link-schema) (? :linked-1) (? :linked-2))
:merge [[(? :pp) :say/evokes (? :link-schema)]
[(? :link-schema) :scg/isa :say/LinkSchema]
[(? :link-schema) :say/has-constituent (? :linked-1)]
[(? :linked-1) :say/classifies (? :verb-schema)]
[(? :linked-1) :say/classifies (? :something)]
[(? :linked-1) :scg/isa :say/Linked-1]
[(? :link-schema) :say/has-constituent (? :linked-2)]
[(? :linked-2) :say/classifies (? :anything)]
[(? :linked-2) :say/classifies (? :entity)]
[(? :linked-2) :scg/isa :say/Linked-2]
]}
{:id :instrumental-PP-process ; "Whisk with a spoon."
......@@ -827,11 +823,13 @@
[(? :verb) :say/evokes (? :verb-schema)]
[(? :pp) :scg/isa :say/PP]
[(? :pp) :cg/subunit (? :p)]
[(? :p) :scg/isa :say/PREP]
[(? :p) :scg/word (? :p-word)]
[(? :p-word) :scg/form "with"]
[(? :pp) :cg/subunit (? :np)]
[(? :np) :scg/isa :say/NP]
[(? :np) :cg/referent (? :instrument)]
[(? :instrument) :rdf/type :say/Instrument]
[(? :trans) :say/is-expressed-by (? :clause)]
[(? :trans) :scg/isa :say/StateTransition]
[(? :trans) :say/satisfies (? :link-schema)]
......@@ -840,15 +838,17 @@
[(? :linked-1) :say/classifies (? :verb-schema)]
[(? :linked-1) :scg/isa :say/Linked-1]
[(? :link-schema) :say/has-constituent (? :linked-2)]
[(? :linked-2) :say/classifies (? :anything)]
[(? :linked-2) :say/classifies (? :instrument)]
[(? :linked-2) :scg/isa :say/Linked-2]
[(? :clause) :scg/isa :say/ClausalObject]
]
; :call ;TODO check for semantic-category of (? :instrument) -- should be a tool/instrument
:call (introduce (? :instrument-role))
:merge [[(? :clause) :cg/subunit (? :pp)]
[(? :trans) :say/satisfies (? :link-schema)]
[(? :trans) :say/satisfies (? :verb-schema)]
[(? :verb-schema) :say/has-constituent (? :instrument-role)]
[(? :instrument-role) :scg/isa :say/Instrument]
[(? :instrument-role) :say/classifies (? :anything)]
[(? :instrument-role) :say/classifies (? :instrument)]
]}
{:id :covering
:match [[(? :vp) :cg/sem-valence (? :sem-val)]
......@@ -865,6 +865,7 @@
[(? :verb) :scg/isa :say/V]
[(? :verb-schema) :scg/isa :say/CoveringSchema]
[(? :vp) :scg/isa :say/VP]
[(? :clause) :scg/isa :say/ClausalObject]
]
:call (introduce (? :coverage-schema) (? :coverer-role)
(? :covered-role))
......@@ -879,21 +880,42 @@
[(? :term-state) :say/satisfies (? :coverage-schema)]
[(? :coverage-schema) :scg/isa :say/Coverage]
]}
{:id :until-adj-phrase ; Common recipe ellipsis, e.g. "Whisk until smooth."
:match [[(? :p) :scg/isa :say/PREP]
[(? :p) :scg/word (? :p-word)]
{:id :until-adj-postcondition ; Common recipe ellipsis, e.g. "Whisk the dough until smooth.", TODO: "Whisk until smooth"
:match [[(? :p) :scg/word (? :p-word)]
[(? :p-word) :scg/form "until"]
[(? :p-word) :scg/meets (? :adj-word)]
[(? :adj) :scg/word (? :adj-word)]
[(? :adj) :cg/ref (? :quality)]
[(? :vp) :cg/head (? :verb)]
[(? :verb) :say/evokes (? :verb-schema)]
[(? :verb-schema) :say/has-constituent (? :patient-role)]
[(? :patient-role) :say/classifies (? :patient)]
[(? :clause) :cg/subunit (? :vp)]
[(? :trans) :say/is-expressed-by (? :clause)]
[(? :trans) :say/has-terminal-state (? :term-state)]
[(? :quality) :scg/isa :say/Quality]
[(? :term-state) :scg/isa :say/Scene]
[(? :trans) :scg/isa :say/StateTransition]
[(? :patient-role) :scg/isa :say/Patient]
[(? :adj) :scg/isa :say/ADJ]
[(? :verb) :scg/isa :say/V]
[(? :p) :scg/isa :say/PREP]
[(? :vp) :scg/isa :say/VP]
[(? :clause) :scg/isa :say/ClausalObject]
]
:call (introduce (? :adj-p))
:call (introduce (? :adj-p) (? :quality-ascription) (? :quality-role) (? :obj-role))
:merge [[(? :adj-p) :cg/subunit (? :p)]
[(? :adj-p) :cg/subunit (? :adj)]
[(? :adj-p) :say/evokes (? :quality-ascription)]
[(? :quality-ascription) :say/has-constituent (? :obj-role)]
[(? :obj-role) :say/classifies (? :patient)]
[(? :quality-ascription) :sayhas-constituent (? :quality-role)]
[(? :quality-role) :say/classifies (? :quality)]
[(? :term-state) :say/satisfies (? :quality-ascription)]
[(? :quality-ascription) :scg/isa :say/QualityAscription]
[(? :quality-role) :scg/isa :say/Quality]
[(? :adj-p) :scg/isa :cg/until-adj]
[(? :pp) :cg/subunit (? :p)]
[(? :p) :scg/word (? :p-word)]
[(? :p-word) :scg/form "until"]
[(? :obj-role) :scg/isa :say/Obj]
]}
}})
......
......@@ -63,6 +63,7 @@
:say/StateTransition [:cg/semantic]
:li/DiscourseParticipant [:cg/semantic]
:li/Referent [:cg/semantic]
:say/Obj [:cg/semantic]
:say/TakingSchema [:cg/semantic]
:say/WhiskingSchema [:cg/semantic]
:say/PlacingSchema [:cg/semantic]
......@@ -100,6 +101,7 @@
:say/Coverer [:cg/semantic]
:say/Coverage [:cg/semantic]
:say/Quality [:cg/semantic]
:say/QualityAscription [:cg/semantic]
:say/Proximal [:cg/semantic]
:say/Locatum [:cg/semantic]
:say/Relatum [:cg/semantic]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment