ufal / perl-pmltq

Query engine and query language for trees in PML format
3 stars 2 forks source link

Missing relations in DB import #5

Open m1ch4ls opened 9 years ago

m1ch4ls commented 9 years ago

The #4 needs to be done before this.

For treex treebanks some relations won't import (for instance):

t-node/coref_gram.rf
t-node/coref_text.rf
Updating PMLREF column: treex_document##6/#value refers to nodes in treex_document of type t-node
ERROR:  relation "treex_document##63" does not exist
LINE 1: UPDATE "treex_document##63" t SET "#value"=(SELECT a."#idx" ...
               ^
ERROR:  relation "treex_document##63" does not exist
Updating PMLREF column: t-node/compl.rf/#value refers to nodes in treex_document of type t-node
UPDATE 3516
ALTER TABLE
Updating PMLREF column: treex_document##5/#value refers to nodes in treex_document of type t-node
ERROR:  relation "treex_document##96" does not exist
LINE 1: UPDATE "treex_document##96" t SET "#value"=(SELECT a."#idx" ...
m1ch4ls commented 8 years ago

The #4 has landed, this should be investigated next.

I suspect this might already be fixed as I have changed the way we analyze PML structures and more types that are not used in search are ignored.