diff options
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 60be66e..6623508 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -280,7 +280,7 @@ CONSTRUCT { ] } WHERE { { - SELECT ?dataset ?label ?inbredSetName ?datasetType ?title WHERE { + SELECT DISTINCT ?dataset ?label ?inbredSetName ?datasetType ?title WHERE { ?dataset rdf:type dcat:Dataset ; rdfs:label ?label ; ?datasetPredicate ?datasetObject ; @@ -301,7 +301,7 @@ CONSTRUCT { } { - SELECT (COUNT(*)/$limit+1 AS ?totalCount) WHERE { + SELECT (COUNT(DISTINCT ?dataset)/$limit+1 AS ?pages) (COUNT(DISTINCT ?dataset) AS ?hits) WHERE { ?dataset rdf:type dcat:Dataset ; ?p ?o . ?o bif:contains "'$term'" . |