Forum Posts

Omar Faruk
Jun 23, 2022
In General Discussions
Looking at the structured data type example above, it's Real Estate Photo Editing clear that it has a capitalized structure. advertisement Continue reading below The first letter of each word in a structured data type is uppercase. It is called Pascal Case. PascalCase is a way to name things by using compound words (two words combined) and capitalizing the first letter of each word. So if you look at a JSON-LD structured data script and look at what is spelled out in PascalCase (NewsArticle, etc.), you'll see that it's a structured data type. Examples of structured data types showing PascalCase: Creative Work paper blog News articles review Critic Review UserReview event BusinessEvent ChildrensEvent MusicEvent What are Structured Data Properties? According to Schema Real Estate Photo Editing .org, the definition of structured data properties is as follows: "Properties used to indicate the attributes and relationships of something When we talk about types, we generally Real Estate Photo Editing talk about things. However, services can be typed. The way to describe a type is by its attributes and relationships called properties. advertisement Continue reading below Returning to the person's analogy as a type, you can describe a person by attributes such as his or her educational background, work, or address. In structured data, these "attributes" are called structured data properties. Properties describe the attributes of a type, or the relationship between a type and something else. Properties Real Estate Photo Editing describe or provide information about the type. Structured data properties and cases Structured data types are spelled in PascalCase. Structured data properties are spelled differently. If the property is a compound word (two words combined), the first letter of the first word is lowercase and the first letter of the second word is uppercase. This method of spelling compound Real Estate Photo Editing words is called camelcase . Even if the structured data property is a single word, the first letter of the word is spelled in lowercase. Diagram showing PascalCase and camelCase Real Estate Photo Editing of structured data Diagram of how structured data types and structured data properties are spelled in a unique case style The following is an example of a two-word compound property. advertisement Continue reading below articleBody This is an example of a single word property. image JSON-LD Structured Data Script Example Let's look at an example of a structured data script for a news article. In the example below, you can see that the two items with the code are types. Colon: means that it is part of the code and everything that follows is of that type. In this example, the first structured data type is described as: type": "NewsArticle", The script is next to the type, indicated by the code type, and the colon Real Estate Photo Editing next to it indicates that the next is a structured data type. In this case, there are two types. One is NewsArticle and the other is Organization . The script is:
0
0
1
 

Omar Faruk

More actions