forked from ProfessionalWiki/SemanticWikibase
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
in semanticWikibase, qualifiers are saved as smw subobjects . This is done at src/Translation/StatementTranslator.php
The datamodel structure is as following:
Item1
- Item1#Statement1
- Item1#Statement1-Qualifier1
- Item1#Statement1-Qualifier2
Each of the entries (item, statement, qualifier) can be accessed via its unique id. if we query for all subobjects of type qualifier for an item we get complete results. but if we query for statements and then show the qualifieres via printout, only one qualifier per table is shown!
{{#ask:
[[-Has subobject::Item:Item1]] <!-- select all child objects of Item1 (statements) -->
|?property name
|?value
|?qualifier.property_name
|link=none
|format=datatables
|datatables-searching=false
|datatables-paging=false
|limit=500
}}
temporal solution
links to the qualifiers are shown correctly. you may use a template to show the qualifier details
{{#ask:
[[-Has subobject::Item:Item1]]
|?property name
|?value
|?qualifier|+template=QualifierDetail
|link=none
|format=datatables
|datatables-searching=false
|datatables-paging=false
|limit=500
}}
example definition of Template:QualifierDetail:
<includeonly>
{{#show: {{{1}}}|?property_name |link=none }} ( {{#show: {{{1}}}|?property_wb.wikibase label |link=none }} ): {{#show: {{{1}}}|?value |link=none }}
</includeonly>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels