SemanticMediaWiki/SemanticResultFormats

Tree format: Add max depth parameter

Offen

#468 geöffnet am 19.02.2019

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (87 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (52 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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