service links don't work for many-valued properties
Closed, ResolvedPublic


Author: info

It would be nice to grab pieces of a many-valued property in service links. For example, a document with a Property:Version composed of filename + revision number could link to the right version in a VCS.

But it seems many-valued properties don't implement getServiceLinkParams(), so even if you specify [[Provides service::xyz]], no service link shows up.

The simplest approach might be for SMW_DV_NAry.php to invoke getServiceLinkParams() for each element. That file notes " * TODO: support outputformat", maybe that's the same as this bug.

Version: unspecified
Severity: normal

bzimport set Reference to bz14426.
bzimport created this task.Via LegacyJun 6 2008, 5:04 AM
bzimport added a comment.Via ConduitJun 6 2008, 6:10 AM

info wrote:

implement getServiceLinks() for NAry, seems to work

Attached: SMW_DV_Nary_service_links.txt

Kghbln added a comment.Via ConduitJun 8 2012, 7:08 PM

I am sure that this patch was implemented upon creation of datatype "Record" in 2010. Thus closing this as RESOLVED FIXED. Please reopen in case this was not considered.

Add Comment