Commit 2df1cfe3 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

refactor(orderbyPostProcess): properly finish the rdfsLabelPostProcess triples

End the generated triples from rdfsLabelPostProcess by a point.
Therefore, we do not need to try and figure which labelPostProcess
case is called for each type of entity to add an extra point
parent 67390cca3462
......@@ -175,9 +175,16 @@
return queryString;
}
if (
queryString.indexOf(
"?this rdf:type <http://rcfexpense.logilab.fr/Page>"
) !== -1
) {
return queryString
}
queryString = queryString.replace(
new RegExp("}$"),
" ?this rdfs:label ?label FILTER(lang(?label) = 'fr') \n}"
" ?this rdfs:label ?label. FILTER(lang(?label) = 'fr'). \n}"
);
return queryString;
};
......@@ -212,7 +219,7 @@
) {
queryString = queryString.replace(
new RegExp("}$"),
". ?this <http://rcfexpense.logilab.fr/season>/rdfs:label ?seasonTemp.\
" ?this <http://rcfexpense.logilab.fr/season>/rdfs:label ?seasonTemp.\
?this <http://rcfexpense.logilab.fr/hasPage> ?page.\
?this <http://rcfexpense.logilab.fr/isInPeriod>/rdfs:label ?periodTemp.\
} GROUPBY ?this LIMIT 5000"
......@@ -229,7 +236,7 @@
) {
queryString = queryString.replace(
new RegExp("}$"),
". ?this <http://rcfexpense.logilab.fr/pageNumber> ?numeroPage.\
" ?this <http://rcfexpense.logilab.fr/pageNumber> ?numeroPage.\
?this ^<http://rcfexpense.logilab.fr/hasPage>/rdfs:label ?registre.\
?this <http://rcfexpense.logilab.fr/representationDate> ?dateRepresentation.\
?this <http://rcfexpense.logilab.fr/annotation> ?annotation.\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment