SPARQL selecting MAX value of a counter
问题 I'm new to sparql and trying to fegure out what is the best way to select the max value of a counter of another query without creating a new table, only using sub-queries. I'm working on a relatively small dataset so the computation time is not a problem. SELECT ?p1 ?c1 (MAX(?cnt1) AS ?maxc) WHERE{ { SELECT ?p1 ?c1 (COUNT(?s1) AS ?cnt1) WHERE { ?s1 ?p1 ?o1; a ?c1. }Group by ?p1 ?c1 #ORDER BY ?p1 DESC(?cnt1) } }GROUP BY ?p1 so I'm expecting to get a row for every value of ?p1 with the max