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

Allow target fields for wildcard field mappings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.12.0
    • 1.0.0, 0.12.1
    • Entityhub
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: