HomePhabricator

Add support for qualifiers

Authored by JeanFred on Oct 25 2019, 11:47 AM.

Description

Add support for qualifiers

The Wikibase data model not only supports properties,
but also qualifiers ('properties on properties').

It makes sense for inteGraality to also support qualifiers.

  • Extend PropertyConfig object to support additional fields qualifier and value
  • Add methods get_qualifier_info, get_qualifier_info_no_grouping and get_totals_for_qualifier which run slightly different SPARQL queries.
  • Add syntax support in the template configuration parser: we just reuse the Listeria syntax:
    • Pxxx/Pzzz, for property Pxxx with a Pzzz qualifier
    • Pxxx/Qyyy/Pzzz, for Pxxx linking to an item Qyyy with a Pzzz qualifier,

Bug: P670

Details

Committed
JeanFredOct 25 2019, 12:42 PM
Parents
R2566:6ef1c88f177c: Extract method make_column_header from get_header
Branches
Unknown
Tags
Unknown
ChangeId
None