diff --git a/htroot/Triple_p.html b/htroot/Triple_p.html index f00d2cfa4..0765ebd0f 100644 --- a/htroot/Triple_p.html +++ b/htroot/Triple_p.html @@ -63,6 +63,15 @@

Query

+ + + + +
+
+ diff --git a/htroot/Triple_p.java b/htroot/Triple_p.java index 2662cbf28..c50df2067 100644 --- a/htroot/Triple_p.java +++ b/htroot/Triple_p.java @@ -40,13 +40,13 @@ public class Triple_p { prop.put("display", 1); // Fixed to 1 prop.putHTML("mode_output", "no query performed"); - String q = "PREFIX lln: \n"+ + String q = "PREFIX lln: \n"+ "PREFIX rdf: \n"+ "PREFIX xsd: \n"+ "SELECT ?resource ?pa\n"+ "WHERE {\n"+ - "?resource lln:percentageofarea ?pa .\n"+ -"FILTER (xsd:float (?pa) > 3.000)\n"+ + "?resource lln:hasvalue ?pa .\n"+ +"FILTER (xsd:float (?pa) > 21.000)\n"+ "}"; if (post != null) { @@ -106,17 +106,29 @@ public class Triple_p { prop.putHTML("mode_rdfdump", sos.toString()); - + int scount = 0; + while (resultSet.hasNext()) { + QuerySolution s = resultSet.next(); + prop.put("entries_"+scount+"_s", s.getResource(null).getURI()); + prop.put("entries_"+scount+"_p", s.getResource(null).getURI()); + prop.put("entries_"+scount+"_o", s.getResource(null).getURI()); + scount ++; + } + prop.putHTML("entries", ""+scount); for (String s: resultSet.getResultVars()) { prop.putHTML("mode_output_"+count+"_caption", s); count ++; } + + } catch (Exception e) { prop.putHTML("mode_rdfdump", "error"); } + + prop.putHTML("mode_output", ""+count); diff --git a/htroot/interaction/OverlayInteraction.html b/htroot/interaction/OverlayInteraction.html index da7dee359..d3fea7278 100644 --- a/htroot/interaction/OverlayInteraction.html +++ b/htroot/interaction/OverlayInteraction.html @@ -52,9 +52,32 @@ border-bottom: 1px solid #ffffff; -