Tridion Sites 9.5 Semantic Content Models

Semantic Content Models

.

Semantic Content Models’ allows you to define a mapping between the Tridion content fields and how they are queried through the GraphQL API.

This abstraction mechanism removes dependencies between the two, so that future changes to your content model don’t directly impact your front-end applications. As a result, your front-end developers can build engaging digital experiences more easily, without needing to know the inner workings of SDL Tridion

  • Customers can define their own semantic content models using GraphQL Schema Definition Language
type Post {
     id: String!
     title: String!
     publishedAt : DateTime!
     likes: Int! @default(value: 0)
     blog: Blog @relation(name:"Posts")
}

Allow customers to query filter using familiar concepts ( for example : Article , News,Post,Blog etc.)

type Blog {
  id: String!
  name: String!
  description:String
  posts: [Post!]! @relation(name: "Posts")
}

Semantic Content Models in DXD

Semantic content models exposed natively in the content API

page(namespaceId: 1, publicationId:2 , pageId:76 {
 content {
     ... on UntypedContent {
          data {
          }
        }
    }

Refined GraphQL API to support custom schema types within existing root queries ( Items,component,page

page(namespaceId: 1, publicationId:2 , pageId:76 {
 content {
     ... on Post {
          id
          title
        }
    }