marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tk...@apache.org
Subject [2/3] git commit: simplify query in dataviews
Date Wed, 15 Oct 2014 15:37:19 GMT
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 <tkurz@apache.org>
Authored: Wed Oct 15 17:07:14 2014 +0200
Committer: tkurz <tkurz@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");
                 }


Mime
View raw message