Skip to content

source MMIF generation bug when using --scheme option #334

@keighrim

Description

@keighrim

doc.properties.location = f"{location_uri.scheme}://{location if not location.startswith(location_uri.scheme) else location[len(location_uri.scheme)+3:]}"

Something is wrong here...

$ mmif source --scheme baapb video:${id}:video  
{
  "metadata": {
    "mmif": "http://mmif.clams.ai/1.1.0"
  },
  "documents": [
    {
      "@type": "http://mmif.clams.ai/vocabulary/VideoDocument/v1",
      "properties": {
        "mime": "video",
        "id": "d1",
        "location": "cpb-aacip-507-v40js9j432://deo"
      }
    }
  ],
  "views": []

The location value should be "baaps://cpb-aacip-507-v40js9j432.video"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions