@@ -145,10 +145,6 @@ def build_sparql_all(search: SearchRequest) -> str:
145145 PREFIX dcterms: <http://purl.org/dc/terms/>
146146 """
147147 BASE_TRIPLES = f"""
148- ?lexical_entry1 rdf:type ontolex:LexicalEntry .
149- ?lexical_entry1 ontolex:lexicalForm ?lexical_form1 .
150-
151- ?lexical_form1 ontolex:writenRep ?palabra .
152148
153149 ?lexicon1 rdf:type lime:Lexicon .
154150 ?lexicon1 rdfs:label ?base_label .
@@ -157,6 +153,7 @@ def build_sparql_all(search: SearchRequest) -> str:
157153 ?annotation1 rdf:type emolex:Annotation .
158154 ?annotation1 emolex:affects ?lexical_entry1 .
159155 ?annotation1 dcterms:source ?lexicon1 .
156+ ?annotation1 rdfs:label ?palabra .
160157
161158 BIND("BASE_LABEL" AS ?base1)
162159 """
@@ -238,10 +235,6 @@ def build_sparql_any(search: SearchRequest) -> str:
238235 PREFIX dcterms: <http://purl.org/dc/terms/>
239236 """
240237 BASE_TRIPLES = """
241- ?lexical_entry rdf:type ontolex:LexicalEntry .
242- ?lexical_entry ontolex:lexicalForm ?lexical_form .
243-
244- ?lexical_form ontolex:writenRep ?palabra .
245238
246239 ?lexicon rdf:type lime:Lexicon .
247240 ?lexicon rdfs:label ?base .
@@ -250,6 +243,7 @@ def build_sparql_any(search: SearchRequest) -> str:
250243 ?annotation rdf:type emolex:Annotation .
251244 ?annotation emolex:affects ?lexical_entry .
252245 ?annotation dcterms:source ?lexicon .
246+ ?annotation rdfs:label ?palabra
253247
254248
255249 """
0 commit comments