src/p4l/settings.py
changeset 86 4effe076e087
parent 84 caafe38298d7
child 90 33a7b2a4af87
--- a/src/p4l/settings.py	Fri Sep 13 16:24:31 2013 +0200
+++ b/src/p4l/settings.py	Fri Sep 13 18:33:07 2013 +0200
@@ -208,6 +208,7 @@
     FILTER (lang(?label) = %s). 
     FILTER NOT EXISTS { [skos:member ?uri] }
 }
+ORDER BY ?label
 """,
 "childs" : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -223,6 +224,7 @@
   ?uri skos:prefLabel|rdfs:label ?label.
   FILTER (lang(?label) = %s).
 }
+ORDER BY ?label
 """,
 "child-count" : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -269,6 +271,7 @@
     FILTER (lang(?label) = %s). 
     FILTER NOT EXISTS { [skos:member ?uri] }
 }
+ORDER BY ?label
 """,
 'childs' : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -284,6 +287,7 @@
   ?uri skos:prefLabel|rdfs:label ?label.
   FILTER (lang(?label) = %s).
 }
+ORDER BY ?label
 """,
 'child-count' : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -330,6 +334,7 @@
     FILTER (lang(?label) = %s). 
     FILTER NOT EXISTS { [skos:narrower ?uri] }
 }
+ORDER BY ?label
 """,
 'childs' : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -345,6 +350,7 @@
   ?uri skos:prefLabel|rdfs:label ?label.
   FILTER (lang(?label) = %s).
 }
+ORDER BY ?label
 """,
 'child-count' : """
 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
@@ -391,6 +397,7 @@
     FILTER (lang(?label) = %s). 
     FILTER NOT EXISTS { [skos:narrower ?uri] }
 }
+ORDER BY ?label
 """
 }
 SPARQL_PROJECT_QUERIES = {
@@ -422,6 +429,7 @@
     skos:inScheme <http://www.iiep.unesco.org/plan4learning/scheme/Projects> ;    
     skos:prefLabel ?label .
 }
+ORDER BY ?label
 """
 }
 SPARQL_ORGANIZATION_QUERIES = {
@@ -453,6 +461,7 @@
     skos:inScheme <http://www.iiep.unesco.org/plan4learning/scheme/Organizations> ;    
     skos:prefLabel ?label .
 }
+ORDER BY ?label
 """
 }
 SPARQL_TYPE_QUERIES = {
@@ -488,6 +497,7 @@
     FILTER (lang(?label) = %s). 
     FILTER NOT EXISTS { [skos:narrower ?uri] }
 }
+ORDER BY ?label
 """
 }