Query By Name

Query all content by name in your Graphlit project.

By specifying the name field in the GraphQL filter object, you can find your content by name.

"name": "Unstructured"

For files, the name field defaults to the ingested file name (without file extension), but can be updated via API.

Query:

query QueryContents($filter: ContentFilter!) {
  contents(filter: $filter) {
    results {
      id
      name
      creationDate
      state
      owner {
        id
      }
      originalDate
      finishedDate
      workflowDuration
      uri
      text
      type
      fileType
      mimeType
      fileName
      fileSize
      masterUri
      mezzanineUri
      transcriptUri
    }
  }
}

Variables:

{
  "filter": {
    "name": "Unstructured",
    "offset": 0,
    "limit": 100
  }
}

Response:

{
  "results": [
    {
      "type": "MESSAGE",
      "text": "The metadata of unstructured data provide a starting point for working with unstructured data. They can be classified into three levels: First Order Metadata is the data in the header of a file. It is the bare minimum of metadata that one can get out of a file i.e., you can read the EXIF data of an image, but if you are unable to read the image, you will not know what was actually captured. Second Order Metadata is the data that helps in reading the file and identifying its contents. In the case of images, models are used to detect objects and identify what was captured. Bounding boxes and their tags, often used in training machine learning models, are perfect examples of second-order metadata in images. Third Order Metadata is data pulled from making inferences across a bunch of related data and linked databases. This data provides a framework for contextualization that creates edges, like in a knowledge graph, that connect something to something else. This can be thought of as the spider web that grows bigger as more edges are created, as more inferences are pulled.",
      "id": "3f232eee-f553-49e3-871d-27989bffcbf8",
      "name": "Metadata in Unstructured Data",
      "state": "FINISHED",
      "creationDate": "2023-07-02T23:24:16Z",
      "finishedDate": "2023-07-02T23:24:34Z",
      "workflowDuration": "PT18.2117837S",
      "owner": {
        "id": "9422b73d-f8d6-4faf-b7a9-152250c862a4"
      }
    },
    {
      "type": "FILE",
      "mimeType": "audio/mpeg",
      "fileType": "AUDIO",
      "fileName": "Bring Order To The Chaos Of Your Unstructured Data Assets With Unstruk-Data Engineering Podcast.mp3",
      "fileSize": 31189423,
      "masterUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/b5bd4f0b-c4a7-4deb-a4cb-0185d79c087e/Bring%20Order%20To%20The%20Chaos%20Of%20Your%20Unstructured%20Data%20Assets%20With%20Unstruk-Data%20Engineering%20Podcast.mp3",
      "mezzanineUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/b5bd4f0b-c4a7-4deb-a4cb-0185d79c087e/Mezzanine/Bring%20Order%20To%20The%20Chaos%20Of%20Your%20Unstructured%20Data%20Assets%20With%20Unstruk-Data%20Engineering%20Podcast.mp3",
      "transcriptUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/b5bd4f0b-c4a7-4deb-a4cb-0185d79c087e/Transcript/Bring%20Order%20To%20The%20Chaos%20Of%20Your%20Unstructured%20Data%20Assets%20With%20Unstruk-Data%20Engineering%20Podcast.json",
      "uri": "https://graphlitplatform.blob.core.windows.net/samples/Bring%20Order%20To%20The%20Chaos%20Of%20Your%20Unstructured%20Data%20Assets%20With%20Unstruk-Data%20Engineering%20Podcast.mp3",
      "id": "b5bd4f0b-c4a7-4deb-a4cb-0185d79c087e",
      "name": "Bring Order To The Chaos Of Your Unstructured Data Assets With Unstruk-Data Engineering Podcast.mp3",
      "state": "FINISHED",
      "creationDate": "2023-07-02T23:16:27Z",
      "finishedDate": "2023-07-02T23:17:25Z",
      "workflowDuration": "PT58.4568017S",
      "owner": {
        "id": "9422b73d-f8d6-4faf-b7a9-152250c862a4"
      }
    },
    {
      "type": "FILE",
      "mimeType": "audio/mpeg",
      "fileType": "AUDIO",
      "fileName": "Unstructured Data is Dark Data Podcast.mp3",
      "fileSize": 33008244,
      "masterUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/cc4f2a1f-b103-4cab-8a98-2b8cd84b691c/Unstructured%20Data%20is%20Dark%20Data%20Podcast.mp3",
      "mezzanineUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/cc4f2a1f-b103-4cab-8a98-2b8cd84b691c/Mezzanine/Unstructured%20Data%20is%20Dark%20Data%20Podcast.mp3",
      "transcriptUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/cc4f2a1f-b103-4cab-8a98-2b8cd84b691c/Transcript/Unstructured%20Data%20is%20Dark%20Data%20Podcast.json",
      "uri": "https://graphlitplatform.blob.core.windows.net/samples/Unstructured%20Data%20is%20Dark%20Data%20Podcast.mp3",
      "id": "cc4f2a1f-b103-4cab-8a98-2b8cd84b691c",
      "name": "Unstructured Data is Dark Data Podcast.mp3",
      "state": "FINISHED",
      "creationDate": "2023-07-02T23:10:56Z",
      "finishedDate": "2023-07-02T23:11:52Z",
      "workflowDuration": "PT55.8371387S",
      "owner": {
        "id": "9422b73d-f8d6-4faf-b7a9-152250c862a4"
      }
    }
  ]
}

Last updated