• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 17852532121

19 Sep 2025 08:10AM UTC coverage: 13.568% (-0.3%) from 13.87%
17852532121

push

github

tkuhn
feat: Switch to QueryRef provided by nanopub, using multimap

428 of 4008 branches covered (10.68%)

Branch coverage included in aggregate %.

1104 of 7283 relevant lines covered (15.16%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/page/ResultTablePage.java
1
package com.knowledgepixels.nanodash.page;
2

3
import org.apache.wicket.markup.html.basic.Label;
4
import org.apache.wicket.request.mapper.parameter.PageParameters;
5
import org.nanopub.extra.services.QueryRef;
6

7
import com.knowledgepixels.nanodash.component.QueryResultTable;
8
import com.knowledgepixels.nanodash.component.TitleBar;
9

10
/**
11
 * ResultTablePage displays the result of a query in a table format.
12
 */
13
public class ResultTablePage extends NanodashPage {
14

15
    /**
16
     * The mount path for this page.
17
     */
18
    public static final String MOUNT_PATH = "/resulttable";
19

20
    private final String query;
21

22
    /**
23
     * {@inheritDoc}
24
     */
25
    @Override
26
    public String getMountPath() {
27
        return MOUNT_PATH;
×
28
    }
29

30
    /**
31
     * Constructor for ResultTablePage.
32
     *
33
     * @param parameters Page parameters containing the query to be executed.
34
     */
35
    public ResultTablePage(final PageParameters parameters) {
36
        super(parameters);
×
37

38
        query = parameters.get("query").toString();
×
39
        add(new TitleBar("titlebar", this, null));
×
40
        final String shortName = query.replaceFirst("^.*/", "");
×
41
        add(new Label("pagetitle", shortName + " (result table) | nanodash"));
×
42

43
        add(QueryResultTable.createComponent("table", new QueryRef(query), false));
×
44
    }
×
45

46
    /**
47
     * <p>hasAutoRefreshEnabled.</p>
48
     *
49
     * @return a boolean
50
     */
51
    protected boolean hasAutoRefreshEnabled() {
52
        return true;
×
53
    }
54

55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc