SemanticMediaWiki/SemanticResultFormats

Tree format: Add max depth parameter

Open

#468 opened on Feb 19, 2019

 (1 comment) (0 reactions) (0 assignees)JavaScript (87 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (52 stars)
PR merge metrics
 (PR metrics pending)

Description

Setup

  • SMW version: 3.0.1
  • SRF version: 3.0.0

Issue

The tree format currently does not provide a way to limit the queried depth.

For example if format=tree gives the following output:

  • foo
    • bar
      • baz
        • buz

Setting max depth=3 would only return:

  • foo
    • bar
      • baz

Contributor guide