You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by tk...@apache.org on 2014/10/15 17:37:19 UTC

[2/3] git commit: simplify query in dataviews

simplify query in dataviews


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/484a79bc
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/484a79bc
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/484a79bc

Branch: refs/heads/develop
Commit: 484a79bcf023c29c50ebb1ebba46bc670edb89cb
Parents: 09157c5
Author: tkurz <tk...@apache.org>
Authored: Wed Oct 15 17:07:14 2014 +0200
Committer: tkurz <tk...@apache.org>
Committed: Wed Oct 15 17:07:14 2014 +0200

----------------------------------------------------------------------
 .../marmotta-core/src/main/resources/web/admin/dataview.html     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/484a79bc/platform/marmotta-core/src/main/resources/web/admin/dataview.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/resources/web/admin/dataview.html b/platform/marmotta-core/src/main/resources/web/admin/dataview.html
index 46facb9..59fcb23 100644
--- a/platform/marmotta-core/src/main/resources/web/admin/dataview.html
+++ b/platform/marmotta-core/src/main/resources/web/admin/dataview.html
@@ -152,8 +152,8 @@
                 $("#resources").empty().append(loader());
                 var target = $("#types").empty().append(loader()),
                     query = _graph ?
-                        "SELECT ?class (COUNT(?s) AS ?count) WHERE { GRAPH <"+_graph+"> {{?s a ?class} UNION {SELECT ?s WHERE { GRAPH <"+_graph+"> { ?s ?a ?b. FILTER NOT EXISTS{?s a ?class}}}GROUP BY ?s}}}GROUP BY ?class" :
-                        "SELECT ?class (COUNT(?s) AS ?count) WHERE {{?s a ?class} UNION {SELECT ?s WHERE{ ?s ?a ?b. FILTER NOT EXISTS{?s a ?class}}GROUP BY ?s}}GROUP BY ?class";
+                        "SELECT ?class (COUNT(?s) AS ?count) WHERE { GRAPH <"+_graph+"> {{?s a ?class} UNION { GRAPH <"+_graph+"> { ?s ?a ?b. FILTER NOT EXISTS{?s a ?class}}}}}GROUP BY ?class" :
+                        "SELECT ?class (COUNT(?s) AS ?count) WHERE {{?s a ?class} UNION { ?s ?a ?b. FILTER NOT EXISTS{?s a ?class}}}GROUP BY ?class";
                 function error() {
                     target.empty().text("Could not load classes");
                 }