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

Refactor EnhancementEngine to support contents with multiple related parts

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0-incubating
    • Component/s: Enhancer, Rules
    • Labels:
      None

      Description

      Some notes from a discussion with Rupert and Olivier

      ContentItem

      • getBlob() returns a blob of type multipart/mime iff the ContentItem was created from a multipart/mime content
      • ci.getBlob() eq ci.getPart(0, Blob.class)
      • ci.getUri()+"_main" eq ci.getPartUri(0)

      Rest
      /enhancer
      /enhancer/engine/<engineId>
      /enhancer/chains/<chaiId>

      • query params:
        Optional inputWithMetadata -> expects multipart/mime with 2 sections of which the first is rdf
        Optional outputWithContentParts[=<section-ordinal>] -> the result is multipart (instead of rdf) containing rdf as the first section and the parts in the second section, if there is more than one part this second section is itself multipart, this argument might be repated to have different sections
        Optional omitMetada -> no metadate in the result, makes only sense with outputContentParts argument, the result will correspond to the second section of the malipart returned without this argument

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                reto Reto Gmür
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: