# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. @prefix rdf: . @prefix rdfs: . @prefix mf: . @prefix mfx: . @prefix qt: . <> rdf:type mf:Manifest ; rdfs:label "GROUP BY" ; mf:entries ( # Complete data [ mf:name "Group By - 1" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 2" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 3 (Group var does not occur)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 4 (Group expression)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 5 (Named group expression)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 6 (Named group expression)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## Partial data [ mf:name "Group By - 10" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 11" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Group By - 12" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## No data [ mf:name "Group By - 20 / Zero data" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## Count. [ mf:name "Count - 1 - No Group" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 2 - No Group" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 3" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 4" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 5 - count(*) / count(distinct *)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 6 - count(?var) / count(distinct ?var)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 7 - count(*) / count(*)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## Empty pattern [ mf:name "Count - 10 - count(*) / no matches" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 11 - count(distinct *) / group / no matches" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 12 - count(?z) / no matches" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 13 - count(distinct ?z) / group / no matches" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## Partial data [ mf:name "Count - 20 - No group" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 21 - No group - count(distinct ?var)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 22 - count(?var)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Count - 23 - count(?var) - empty" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Sum - 1 - sum(?v)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Min - 1 - min(?v)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Max - 1 - max(?v)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] [ mf:name "Avg - 1 - avg(?v)" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ## HAVING [ mf:name "Having - 1" ; rdf:type mfx:TestQuery ; mf:action [ qt:query ; qt:data ] ; mf:result ] ).