Skip to content

Commit f0c912a

Browse files
authored
Add examples for issue 4658 in examples.txt (#4663)
* Add examples for issue 4658 in examples.txt Add Product Role examples (UNCL codes & Digital Twin) for issue #4658 * Refactor JSON structure in issue-4658-examples.txt Removed the 'TYPES' line and updated 'inDefinedTermSet' to include a structured object with name and URL. * Enhance JSON-LD examples with additional context Updated JSON-LD examples to include additional context and structured data for products. * Update property details in issue-4658-examples.txt * Add examples for issue 4658 Added examples for issue 4658 including product and software application details in various formats. * Refactor product schema markup for consistency Updated the schema markup for product details to use 'gtin' directly instead of an identifier div. Adjusted the structure for consistency across various product types. * Clean up issue-4658-examples.txt Removed redundant 'Software Component' category and additional property from examples.
1 parent ebe73db commit f0c912a

File tree

1 file changed

+176
-0
lines changed

1 file changed

+176
-0
lines changed
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
TYPES: #4658 Product, SoftwareApplication
2+
3+
PRE-MARKUP:
4+
5+
<div>
6+
<h2>Laptop Battery Replacement</h2>
7+
<p>A consumable battery for Model X</p>
8+
<p>GTIN: 5901234123457</p>
9+
<p>Category: Consumable</p>
10+
</div>
11+
12+
<div>
13+
<h2>Virtual Pump Twin</h2>
14+
<p>Digital Twin of the physical water pump for simulation</p>
15+
<p>DID: did:web:example.com:product:pump-twin-001</p>
16+
<p>Category: Digital Twin</p>
17+
</div>
18+
19+
<div>
20+
<h2>CRM Module</h2>
21+
<p>Software module for customer relationship management</p>
22+
<p>DID: did:web:example.com:product:crm-module-001</p>
23+
<p>Category: Software Component</p>
24+
</div>
25+
26+
MICRODATA:
27+
28+
<div itemscope itemtype="https://schema.org/Product">
29+
<h2 itemprop="name">Laptop Battery Replacement</h2>
30+
<p itemprop="description">A consumable battery for Model X</p>
31+
<span itemprop="gtin">5901234123457</span>
32+
<span itemprop="category">Consumable</span>
33+
<div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
34+
<span itemprop="name">Product Type Code</span>
35+
<span itemprop="description">UN/CEFACT UNCL 1001 code for Consumable</span>
36+
<meta itemprop="propertyID" content="https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm">
37+
<span itemprop="value">711</span>
38+
</div>
39+
<div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
40+
<span itemprop="name">Product Role</span>
41+
<span itemprop="value">Consumable</span>
42+
</div>
43+
</div>
44+
45+
<div itemscope itemtype="https://schema.org/Product">
46+
<h2 itemprop="name">Virtual Pump Twin</h2>
47+
<p itemprop="description">Digital Twin of the physical water pump for simulation</p>
48+
<div itemprop="identifier" itemscope itemtype="https://schema.org/PropertyValue">
49+
<meta itemprop="propertyID" content="DID">
50+
<span itemprop="value">did:web:example.com:product:pump-twin-001</span>
51+
</div>
52+
<span itemprop="category">Digital Twin</span>
53+
<div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
54+
<span itemprop="name">Product Role</span>
55+
<span itemprop="value">Digital Twin</span>
56+
</div>
57+
</div>
58+
59+
<div itemscope itemtype="https://schema.org/SoftwareApplication">
60+
<h2 itemprop="name">CRM Module</h2>
61+
<p itemprop="description">Software module for customer relationship management</p>
62+
<div itemprop="identifier" itemscope itemtype="https://schema.org/PropertyValue">
63+
<meta itemprop="propertyID" content="DID">
64+
<span itemprop="value">did:web:example.com:product:crm-module-001</span>
65+
</div>
66+
<meta itemprop="applicationCategory" content="BusinessApplication">
67+
</div>
68+
69+
RDFA:
70+
71+
<div vocab="https://schema.org/" typeof="Product">
72+
<h2 property="name">Laptop Battery Replacement</h2>
73+
<p property="description">A consumable battery for Model X</p>
74+
<span property="gtin">5901234123457</span>
75+
<span property="category">Consumable</span>
76+
<div property="additionalProperty" typeof="PropertyValue">
77+
<span property="name">Product Type Code</span>
78+
<span property="description">UN/CEFACT UNCL 1001 code for Consumable</span>
79+
<meta property="propertyID" content="https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm">
80+
<span property="value">711</span>
81+
</div>
82+
<div property="additionalProperty" typeof="PropertyValue">
83+
<span property="name">Product Role</span>
84+
<span property="value">Consumable</span>
85+
</div>
86+
</div>
87+
88+
<div vocab="https://schema.org/" typeof="Product">
89+
<h2 property="name">Virtual Pump Twin</h2>
90+
<p property="description">Digital Twin of the physical water pump for simulation</p>
91+
<div property="identifier" typeof="PropertyValue">
92+
<meta property="propertyID" content="DID">
93+
<span property="value">did:web:example.com:product:pump-twin-001</span>
94+
</div>
95+
<span property="category">Digital Twin</span>
96+
<div property="additionalProperty" typeof="PropertyValue">
97+
<span property="name">Product Role</span>
98+
<span property="value">Digital Twin</span>
99+
</div>
100+
</div>
101+
102+
<div vocab="https://schema.org/" typeof="SoftwareApplication">
103+
<h2 property="name">CRM Module</h2>
104+
<p property="description">Software module for customer relationship management</p>
105+
<div property="identifier" typeof="PropertyValue">
106+
<meta property="propertyID" content="DID">
107+
<span property="value">did:web:example.com:product:crm-module-001</span>
108+
</div>
109+
<meta property="applicationCategory" content="BusinessApplication">
110+
</div>
111+
112+
JSON:
113+
114+
<script type="application/ld+json">
115+
{
116+
"@context": [
117+
"https://schema.org",
118+
{
119+
"uncefact": "https://service.unece.org/trade/uncefact/"
120+
}
121+
],
122+
"@graph": [
123+
{
124+
"@id": "urn:example:product:battery-x001",
125+
"@type": "Product",
126+
"name": "Laptop Battery Replacement",
127+
"description": "A consumable battery for Model X",
128+
"gtin": "5901234123457",
129+
"category": "Consumable",
130+
"additionalProperty": [
131+
{
132+
"@type": "PropertyValue",
133+
"name": "Product Type Code",
134+
"description": "UN/CEFACT UNCL 1001 code for Consumable",
135+
"propertyID": "https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm",
136+
"value": "711"
137+
},
138+
{
139+
"@type": "PropertyValue",
140+
"name": "Product Role",
141+
"value": "Consumable"
142+
}
143+
]
144+
},
145+
{
146+
"@id": "urn:example:product:pump-twin-001",
147+
"@type": "Product",
148+
"name": "Virtual Pump Twin",
149+
"description": "Digital Twin of the physical water pump for simulation",
150+
"identifier": {
151+
"@type": "PropertyValue",
152+
"propertyID": "DID",
153+
"value": "did:web:example.com:product:pump-twin-001"
154+
},
155+
"category": "Digital Twin",
156+
"additionalProperty": {
157+
"@type": "PropertyValue",
158+
"name": "Product Role",
159+
"value": "Digital Twin"
160+
}
161+
},
162+
{
163+
"@id": "urn:example:product:crm-module-001",
164+
"@type": "SoftwareApplication",
165+
"name": "CRM Module",
166+
"description": "Software module for customer relationship management",
167+
"identifier": {
168+
"@type": "PropertyValue",
169+
"propertyID": "DID",
170+
"value": "did:web:example.com:product:crm-module-001"
171+
},
172+
"applicationCategory": "BusinessApplication"
173+
}
174+
]
175+
}
176+
</script>

0 commit comments

Comments
 (0)