Query All Content

Query all content in your Graphlit project.

To query the content in your Graphlit project, you can use the contents query. By default it returns the first page of search results, sorted by the newest content first. Newest, meaning the original date of when a document was created, or when an image was taken, not by the upload or ingestion date.

Graphlit uses a paging model for queries, where you can request the offset into the query results, and the limit of results to be returned.

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": {
    "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": "It's All About the Data-Kirk Marple-Earley AI Podcast with Seth Earley-Chris Featherstone-Episode 031.mp3",
      "fileSize": 29183350,
      "masterUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/0b9ac6ea-8e84-4c5a-a396-163455fb685b/It's%20All%20About%20the%20Data-Kirk%20Marple-Earley%20AI%20Podcast%20with%20Seth%20Earley-Chris%20Featherstone-Episode%20031.mp3",
      "mezzanineUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/0b9ac6ea-8e84-4c5a-a396-163455fb685b/Mezzanine/It's%20All%20About%20the%20Data-Kirk%20Marple-Earley%20AI%20Podcast%20with%20Seth%20Earley-Chris%20Featherstone-Episode%20031.mp3",
      "transcriptUri": "https://graphlit20230701d31d9453.blob.core.windows.net/files/0b9ac6ea-8e84-4c5a-a396-163455fb685b/Transcript/It's%20All%20About%20the%20Data-Kirk%20Marple-Earley%20AI%20Podcast%20with%20Seth%20Earley-Chris%20Featherstone-Episode%20031.json",
      "uri": "https://graphlitplatform.blob.core.windows.net/samples/It's%20All%20About%20the%20Data-Kirk%20Marple-Earley%20AI%20Podcast%20with%20Seth%20Earley-Chris%20Featherstone-Episode%20031.mp3",
      "id": "0b9ac6ea-8e84-4c5a-a396-163455fb685b",
      "name": "It's All About the Data-Kirk Marple-Earley AI Podcast with Seth Earley-Chris Featherstone-Episode 031.mp3",
      "state": "FINISHED",
      "creationDate": "2023-07-02T23:16:09Z",
      "finishedDate": "2023-07-02T23:17:04Z",
      "workflowDuration": "PT54.9376359S",
      "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