I have this query
SELECT ?s WHERE {?a <http://xmlns.com/foaf/0.1/topic_interest> ?s}
which returns
aaa
aaa
aaa
bbb
bbb
ccc
However, I want to display it as
aaa | 3
bbb | 2
ccc | 1
I am using dotnetrdf. This is what i tried
SELECT (COUNT(*) AS ?s) WHERE {?a <http://xmlns.com/foaf/0.1/topic_interest> ?s}
and this just gives me the number of rows there are which is 3080.
Can you tell me how to make it right?
Thanks