Last modified: 2012-08-10 19:51:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39446, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37446 - [SRF] 1.8; New SRF output format "incoming"
[SRF] 1.8; New SRF output format "incoming"
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-10 09:27 UTC by MWJames
Modified: 2012-08-10 19:51 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch against SRF.git (SRF_Messages.php, SRF_Settings.php, SemanticResultFormats.php) (2.14 KB, patch)
2012-06-10 09:29 UTC, MWJames
Details
Actual SRF printer (4.37 KB, application/octet-stream)
2012-06-10 09:30 UTC, MWJames
Details

Description MWJames 2012-06-10 09:27:25 UTC
Replaces [1]/[2] with a new SRF output format called "incoming". 

## Description 
This integration makes parser #iask obsolete while providing extended functionality such as using template functionality (in order to improve performance) or to display counted elements per assigned property (where when using #iask one had to use two calls to fetch those information).

The integration further allows to use the internal SMW QueryCache for identical results. 

Incoming properties are displayed as simple separated list using [sep] or through a [template] which add's flexibility and allows to implement a semi-drilldown capacity (for example by using #queryformlink [3] or #drilldownlink [4]) for assigned incoming properties.

## Parameters

[min] sets threshold
[sep] sets separator
[template] sets template name
[userparam] transfers {{{userparam}}} into the template
[count] transfers {{{count}}} into the template
[cache] true/false (displayed where SMWQueryCache does exists) to enable query cache

The count parameter works only in connection with a template. When using a template and [count] is set true the parameter {{{count}}} is reserved for displaying the count value.

Selection can be executed on a single page [[ ... ]] or a [[property::value]] pair.

## Example

{{#ask:[[ ... ]]
|format=incoming
|headers=none
|template=Incoming properties
|link=all
|userparam=...
|count=true
|sep=;
|min=1
|offset=
|limit=
}}

# Tests
MW 1.18 / 1.19; SMW 1.7/1.8alpha 

##Notes

[1] http://www.semantic-mediawiki.org/wiki/Semantic_Incoming_Properties
[2] http://www.mediawiki.org/wiki/Extension:Semantic_Incoming_Properties

[3] http://www.semantic-mediawiki.org/wiki/Help:Enhancing_query_forms
[4] http://www.semantic-mediawiki.org/wiki/Help:Accessing_drilldown_page
Comment 1 MWJames 2012-06-10 09:29:05 UTC
Created attachment 10718 [details]
Patch against SRF.git (SRF_Messages.php, SRF_Settings.php, SemanticResultFormats.php)
Comment 2 MWJames 2012-06-10 09:30:05 UTC
Created attachment 10719 [details]
Actual SRF printer
Comment 3 MWJames 2012-06-10 09:38:41 UTC
Don't get me started with gerrit. My request is open for over a month now and the guys don't seemed to be able to send me a simple email for getting access (my patience on this issue is really running low) that's why for the time being I can only post patches here.
Comment 4 MWJames 2012-06-13 19:59:55 UTC
https://gerrit.wikimedia.org/r/#/c/11205/
Comment 5 MWJames 2012-08-10 19:50:26 UTC
This points current commit

https://gerrit.wikimedia.org/r/#/c/17165/
Comment 6 MWJames 2012-08-10 19:51:56 UTC
I need some glasses of course it should read "... points to the current commit"

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links