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

Fix: Exécution lente sur la règle d'extraction 106

parent 64fe7ed6
No related branches found
No related tags found
No related merge requests found
...@@ -275,13 +275,6 @@ CONSTRUCT { ...@@ -275,13 +275,6 @@ CONSTRUCT {
?newNet net:class2 ?concept3. ?newNet net:class2 ?concept3.
} }
WHERE { WHERE {
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw3 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
?uw3 unl:is_substructure_of ?req.
# net1: entity # net1: entity
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:entity. ?net1 net:type net:entity.
...@@ -295,8 +288,17 @@ WHERE { ...@@ -295,8 +288,17 @@ WHERE {
?net2 net:node ?uw3. ?net2 net:node ?uw3.
?net2 net:featureClass ?featureClass. ?net2 net:featureClass ?featureClass.
?net2 net:concept ?subComplement. ?net2 net:concept ?subComplement.
# Filter
FILTER ( ?uw1 != ?uw3 ).
# condition: mod(net1, net2) # condition: mod(net1, net2)
?uw1 unl:mod ?uw2. ?uw1 unl:mod ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw3 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
?uw3 unl:is_substructure_of ?req.
# Label(s) / URI # Label(s) / URI
?uw2 rdfs:label ?uw2Label. ?uw2 rdfs:label ?uw2Label.
?uw3 rdfs:label ?uw3Label. ?uw3 rdfs:label ?uw3Label.
...@@ -309,8 +311,6 @@ WHERE { ...@@ -309,8 +311,6 @@ WHERE {
BIND (concat( ?netURI, ?classListLabel, '_') AS ?s1). BIND (concat( ?netURI, ?classListLabel, '_') AS ?s1).
BIND (concat(?s1, ?mainEntity, '-', ?concept2) AS ?s2). BIND (concat(?s1, ?mainEntity, '-', ?concept2) AS ?s2).
BIND (uri(?s2) AS ?newNet). BIND (uri(?s2) AS ?newNet).
# Filter
FILTER ( ?uw1 != ?uw3 ).
}""" ; }""" ;
sh:order "106"^^xsd:decimal ; sh:order "106"^^xsd:decimal ;
. .
...@@ -340,13 +340,6 @@ CONSTRUCT { ...@@ -340,13 +340,6 @@ CONSTRUCT {
?newNet net:class2 ?concept3. ?newNet net:class2 ?concept3.
} }
WHERE { WHERE {
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw3 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
?uw3 unl:is_substructure_of ?req.
# net1: agent # net1: agent
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:entity. ?net1 net:type net:entity.
...@@ -359,8 +352,17 @@ WHERE { ...@@ -359,8 +352,17 @@ WHERE {
?net2 net:node ?uw2. ?net2 net:node ?uw2.
?net2 net:node ?uw3. ?net2 net:node ?uw3.
?net2 net:entityClass ?entityClass2. ?net2 net:entityClass ?entityClass2.
# Filter
FILTER ( ?uw1 != ?uw3 ).
# condition: mod(net1, net2) # condition: mod(net1, net2)
?uw1 unl:mod ?uw2. ?uw1 unl:mod ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw3 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
?uw3 unl:is_substructure_of ?req.
# Label(s) / URI # Label(s) / URI
?uw2 rdfs:label ?uw2Label. ?uw2 rdfs:label ?uw2Label.
?uw3 rdfs:label ?uw3Label. ?uw3 rdfs:label ?uw3Label.
...@@ -373,8 +375,6 @@ WHERE { ...@@ -373,8 +375,6 @@ WHERE {
BIND (concat( ?netURI, ?classListLabel, '_') AS ?s1). BIND (concat( ?netURI, ?classListLabel, '_') AS ?s1).
BIND (concat(?s1, ?mainEntity, '-', ?concept2) AS ?s2). BIND (concat(?s1, ?mainEntity, '-', ?concept2) AS ?s2).
BIND (uri(?s2) AS ?newNet). BIND (uri(?s2) AS ?newNet).
# Filter
FILTER ( ?uw1 != ?uw3 ).
}""" ; }""" ;
sh:order "107"^^xsd:decimal ; sh:order "107"^^xsd:decimal ;
. .
...@@ -510,17 +510,17 @@ CONSTRUCT { ...@@ -510,17 +510,17 @@ CONSTRUCT {
?semNet net:concept ?concept2. ?semNet net:concept ?concept2.
} }
WHERE { WHERE {
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
# selection: modList net # selection: modList net
?semNet a net:Instance. ?semNet a net:Instance.
?semNet net:type net:mod_list. ?semNet net:type net:mod_list.
?semNet net:node ?uw1. ?semNet net:node ?uw1.
# extension: disjunction of UW # extension: disjunction of UW
?uw1 (unl:or|unl:and) ?uw2. ?uw1 (unl:or|unl:and) ?uw2.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw2 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
?uw2 unl:is_substructure_of ?req.
# Label(s) / URI # Label(s) / URI
?uw1 rdfs:label ?uw1Label. ?uw1 rdfs:label ?uw1Label.
?uw2 rdfs:label ?uw2Label. ?uw2 rdfs:label ?uw2Label.
...@@ -675,13 +675,13 @@ WHERE { ...@@ -675,13 +675,13 @@ WHERE {
?entity rdf:type fprm:System_Entity. ?entity rdf:type fprm:System_Entity.
?entity fprm:class ?entityClass. ?entity fprm:class ?entityClass.
?entity fprm:restriction ?entityRestriction. ?entity fprm:restriction ?entityRestriction.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
# net: modList # net: modList
?semNet a net:Instance. ?semNet a net:Instance.
?semNet net:type net:mod_list. ?semNet net:type net:mod_list.
?semNet net:node ?uw1. ?semNet net:node ?uw1.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
# Label(s) / URI # Label(s) / URI
?uw1 rdfs:label ?uw1Label. ?uw1 rdfs:label ?uw1Label.
# Filter # Filter
...@@ -712,13 +712,13 @@ WHERE { ...@@ -712,13 +712,13 @@ WHERE {
?entity rdf:type fprm:System_Feature. ?entity rdf:type fprm:System_Feature.
?entity fprm:class ?featureClass. ?entity fprm:class ?featureClass.
?entity fprm:restriction ?featureRestriction. ?entity fprm:restriction ?featureRestriction.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
# net: modList # net: modList
?semNet a net:Instance. ?semNet a net:Instance.
?semNet net:type net:mod_list. ?semNet net:type net:mod_list.
?semNet net:node ?uw1. ?semNet net:node ?uw1.
# UW: type UW-Occurrence and substructure of req sentence
?uw1 rdf:type unl:UW_Occurrence.
?uw1 unl:is_substructure_of ?req.
# Label(s) / URI # Label(s) / URI
?uw1 rdfs:label ?uw1Label. ?uw1 rdfs:label ?uw1Label.
# Filter # Filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment