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

knowledgepixels / nanodash / 24400638397

14 Apr 2026 01:06PM UTC coverage: 15.878% (-0.008%) from 15.886%
24400638397

push

github

tkuhn
feat: add "show view display query" entry to entity dropdown menus

Lets users jump directly to the get-view-displays query (pre-filled with
the entity IRI) from the ID dropdown on user, space, maintained resource
and resource part pages, mirroring the "show query" option available on
individual view displays.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

789 of 6130 branches covered (12.87%)

Branch coverage included in aggregate %.

1978 of 11297 relevant lines covered (17.51%)

2.4 hits per line

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

0.0
src/main/java/com/knowledgepixels/nanodash/component/menu/ExploreDisplayMenu.java
1
package com.knowledgepixels.nanodash.component.menu;
2

3
import com.knowledgepixels.nanodash.QueryApiAccess;
4
import com.knowledgepixels.nanodash.page.ExplorePage;
5
import com.knowledgepixels.nanodash.page.QueryPage;
6
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
7
import org.apache.wicket.request.mapper.parameter.PageParameters;
8
import org.eclipse.rdf4j.model.IRI;
9

10
public class ExploreDisplayMenu extends BaseDisplayMenu {
11

12
    /**
13
     * Constructs a ExploreDisplayMenu.
14
     *
15
     * @param id           the Wicket component ID
16
     * @param exploreUri   the URI of the resource to explore
17
     * @param exploreLabel the label of the resource to be rendered in the explore page
18
     * @param sourceUri    the uri of the source nanopublication defining the resource
19
     */
20
    public ExploreDisplayMenu(String id, String exploreUri, String exploreLabel, IRI sourceUri) {
21
        super(id);
×
22

23
        addEntry("explore", new BookmarkablePageLink<Void>("explore", ExplorePage.class, new PageParameters().set("id", exploreUri).set("label", exploreLabel)));
×
24
        addEntry("viewDeclaration", new BookmarkablePageLink<Void>("viewDeclaration", ExplorePage.class, new PageParameters().set("id", sourceUri)));
×
25
        addEntry("showViewDisplayQuery", new BookmarkablePageLink<Void>("showViewDisplayQuery", QueryPage.class,
×
26
                new PageParameters()
27
                        .set("id", QueryApiAccess.GET_VIEW_DISPLAYS)
×
28
                        .add("queryparam_resource", exploreUri)));
×
29
    }
×
30

31
}
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