SemanticMediaWiki/SemanticResultFormats

Tree format: Add max depth parameter

Aperta

#468 aperta il 19 feb 2019

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (87 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (52 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor