Open Ansa211 opened 7 years ago
problem is on server side:
curl 'http://lindat.mff.cuni.cz/services/pmltq/api/treebanks/30/query' -H 'Origin: http://lindat.mff.cuni.cz' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,cs;q=0.6,hu;q=0.4' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://lindat.mff.cuni.cz/services/pmltq/' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"filter":true,"limit":"2","query":"t-node $a := [\n member coref_text [\n target_node.rf $b,\n ],\n];\nt-node $b := [ \n]","timeout":"30","queryRecordId":null}' --compressed
returns this json:
{
"nodes":[
[
"a",
"t-node"
],
[
"b",
"t-node"
]
],
"results":[
[
"113\/t-node@t-cmpr9410-009-p8s1w7",
"403\/\/t-node\/coref_text",
"85\/t-node@t-cmpr9410-009-p7s3w7"
],
[
"122\/t-node@t-cmpr9410-009-p8s1w16",
"432\/\/t-node\/coref_text",
"113\/t-node@t-cmpr9410-009-p8s1w7"
]
]
}
it should not return 403\/\/t-node\/coref_text
in results
when I change query order (link) it works but removing $b variable does not (link)
I am not able to create this query with suggest. I am able to create this one, that produces this error:
Could not determine node type of node in the target_node.rf relation to node coref_text:target_node.rf [ ]
Possible types are: !
How to "Suggest" the query: run the corrected query, go to second tree, select both $a
and $b
, then run "Suggest".
I have found simpler query:
t-node $a := [
member coref_text [
target_node.rf t-node [],
],
];
Problem is in member
selector - it looks like a node but it does not have an address is only virtual node. Since that every query that contains nested selector in member causes this error.
TODO: investigate where it should be fixed
this query has been obtained by the "Suggest" function; it runs correctly, but when I click node
$b
in the list of nodes, it gives me an error sayingError while loading tree. INTERNAL SERVER ERROR: Did not find type '!/t-node/coref_text'