Skip to content
Snippets Groups Projects
Commit bca3e0a3 authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Fix perf problem in some queries

parent bb842fc6
Branches
Tags
No related merge requests found
......@@ -390,6 +390,8 @@ WHERE {
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass.
?net1 net:concept ?mainEntity.
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# net2: complement modList
?net2 a net:Instance.
?net2 net:type net:complement_mod_list.
......@@ -400,8 +402,6 @@ WHERE {
# --old --- ?net2 net:concept ?subConcept.
# Filter
FILTER ( ?uw1 != ?uw3 ).
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
# --old --- ?uw1 rdf:type unl:UW_Occurrence.
# --old --- ?uw2 rdf:type unl:UW_Occurrence.
......@@ -459,6 +459,8 @@ WHERE {
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass1.
?net1 net:concept ?mainEntity.
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# net2: entity modList
?net2 a net:Instance.
?net2 net:type net:entity_mod_list.
......@@ -472,8 +474,6 @@ WHERE {
# Filter
FILTER ( ?uw1 != ?uw3 ).
FILTER ( ?entityClass1 != ?entityClass2 ).
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
# --old --- ?uw1 rdf:type unl:UW_Occurrence.
# --old --- ?uw2 rdf:type unl:UW_Occurrence.
......@@ -531,6 +531,8 @@ WHERE {
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass1.
?net1 net:concept ?mainEntity.
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# net2: entity modList
?net2 a net:Instance.
?net2 net:type net:entity_mod_list.
......@@ -543,8 +545,6 @@ WHERE {
# Filter
FILTER ( ?uw1 != ?uw3 ).
FILTER ( ?entityClass1 = ?entityClass2 ).
# condition: mod(net1, net2)
?uw1 unl:mod ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
# --old --- ?uw1 rdf:type unl:UW_Occurrence.
# --old --- ?uw2 rdf:type unl:UW_Occurrence.
......@@ -792,12 +792,13 @@ CONSTRUCT {
}
WHERE {
# UW: type UW-Occurrence and substructure of req sentence
?uwSource rdf:type unl:UW_Occurrence.
?uw0 rdf:type unl:UW_Occurrence.
?uw0 unl:is_substructure_of ?req.
# selection: target UW of modifier (mod)
?uw0 unl:mod ?uw1.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uwSource unl:is_substructure_of ?req.
?uw1 unl:is_substructure_of ?req.
# selection: target UW of modifier (mod)
?uwSource unl:mod ?uw1.
# Label(s) / URI
?uw1 rdfs:label ?uw1Label.
cprm:Config_Parameters cprm:netURI ?netURI.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment