Skip to content

Commit

Permalink
fix allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Jan 14, 2025
1 parent cf98cd8 commit 2a179d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oda_api/ontology_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def get_limits(self, param_uri):
def get_allowed_values(self, param_uri):
param_uri = self._normalize_uri(param_uri)

query = """ SELECT DISTINCT ?item (count(?list) as ?midcount) WHERE {
query = """ SELECT ?item (count(?list) as ?midcount) WHERE {
?list rdf:rest*/rdf:first ?item .
Expand All @@ -367,6 +367,7 @@ def get_allowed_values(self, param_uri):
]
]
}
GROUP BY ?item
ORDER BY DESC(?midcount)
""" % param_uri

Expand Down

0 comments on commit 2a179d0

Please sign in to comment.