Uploaded image for project: 'Stanbol'
  1. Stanbol
  2. STANBOL-1399

Allow target fields for wildcard field mappings

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 1.0.0, 0.12.1
    • Component/s: Entityhub
    • Labels:
      None

      Description

      Currently FieldMappings the do use a wildcard are not allowed to be mapped to an target field.

      The main reason for this is that things like the following example

          dc:* > dct:*
      

      that would copy all fields from the dc elements namespace to the dc terms namespace are not implemented.

      However copying multiple fields to a single one are already supported but not accepted by the FieldMappings constructor. A possible usage scenario is to collect all references or literal values to create an disambiguation context. See the following listing for an example.

      * | d=entityhub:text > dis:textContext
      * | d=entityhub:reference > dis:refContext
      

      The change is really trivial as one needs only comment the check in the constructor of FieldMapping that explicitly disallows those things.

        Attachments

          Activity

            People

            • Assignee:
              rwesten Rupert Westenthaler
              Reporter:
              rwesten Rupert Westenthaler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: