schemaorg-coda :: Example

4658

From v30.0

JSON-LD

{
  "@context": [
    "https://schema.org",
    {
      "uncefact": "https://service.unece.org/trade/uncefact/"
    }
  ],
  "@graph": [
    {
      "@id": "urn:example:product:battery-x001",
      "@type": "Product",
      "name": "Laptop Battery Replacement",
      "description": "A consumable battery for Model X",
      "gtin": "5901234123457",
      "category": "Consumable",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "Product Type Code",
          "description": "UN/CEFACT UNCL 1001 code for Consumable",
          "propertyID": "https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm",
          "value": "711"
        },
        {
          "@type": "PropertyValue",
          "name": "Product Role",
          "value": "Consumable"
        }
      ]
    },
    {
      "@id": "urn:example:product:pump-twin-001",
      "@type": "Product",
      "name": "Virtual Pump Twin",
      "description": "Digital Twin of the physical water pump for simulation",
      "identifier": {
        "@type": "PropertyValue",
        "propertyID": "DID",
        "value": "did:web:example.com:product:pump-twin-001"
      },
      "category": "Digital Twin",
      "additionalProperty": {
        "@type": "PropertyValue",
        "name": "Product Role",
        "value": "Digital Twin"
      }
    },
    {
      "@id": "urn:example:product:crm-module-001",
      "@type": "SoftwareApplication",
      "name": "CRM Module",
      "description": "Software module for customer relationship management",
      "identifier": {
        "@type": "PropertyValue",
        "propertyID": "DID",
        "value": "did:web:example.com:product:crm-module-001"
      },
      "applicationCategory": "BusinessApplication"
    }
  ]
}

RDFa

<div vocab="https://schema.org/" typeof="Product">
  <h2 property="name">Laptop Battery Replacement</h2>
  <p property="description">A consumable battery for Model X</p>
  <span property="gtin">5901234123457</span>
  <span property="category">Consumable</span>
  <div property="additionalProperty" typeof="PropertyValue">
    <span property="name">Product Type Code</span>
    <span property="description">UN/CEFACT UNCL 1001 code for Consumable</span>
    <meta property="propertyID" content="https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm">
    <span property="value">711</span>
  </div>
  <div property="additionalProperty" typeof="PropertyValue">
    <span property="name">Product Role</span>
    <span property="value">Consumable</span>
  </div>
</div>

<div vocab="https://schema.org/" typeof="Product">
  <h2 property="name">Virtual Pump Twin</h2>
  <p property="description">Digital Twin of the physical water pump for simulation</p>
  <div property="identifier" typeof="PropertyValue">
    <meta property="propertyID" content="DID">
    <span property="value">did:web:example.com:product:pump-twin-001</span>
  </div>
  <span property="category">Digital Twin</span>
  <div property="additionalProperty" typeof="PropertyValue">
    <span property="name">Product Role</span>
    <span property="value">Digital Twin</span>
  </div>
</div>

<div vocab="https://schema.org/" typeof="SoftwareApplication">
  <h2 property="name">CRM Module</h2>
  <p property="description">Software module for customer relationship management</p>
  <div property="identifier" typeof="PropertyValue">
    <meta property="propertyID" content="DID">
    <span property="value">did:web:example.com:product:crm-module-001</span>
  </div>
  <meta property="applicationCategory" content="BusinessApplication">
</div>

Microdata

<div itemscope itemtype="https://schema.org/Product">
  <h2 itemprop="name">Laptop Battery Replacement</h2>
  <p itemprop="description">A consumable battery for Model X</p>
  <span itemprop="gtin">5901234123457</span>
  <span itemprop="category">Consumable</span>
  <div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
    <span itemprop="name">Product Type Code</span>
    <span itemprop="description">UN/CEFACT UNCL 1001 code for Consumable</span>
    <meta itemprop="propertyID" content="https://service.unece.org/trade/untdid/d19b/tred/tred1001.htm">
    <span itemprop="value">711</span>
  </div>
  <div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
    <span itemprop="name">Product Role</span>
    <span itemprop="value">Consumable</span>
  </div>
</div>

<div itemscope itemtype="https://schema.org/Product">
  <h2 itemprop="name">Virtual Pump Twin</h2>
  <p itemprop="description">Digital Twin of the physical water pump for simulation</p>
  <div itemprop="identifier" itemscope itemtype="https://schema.org/PropertyValue">
    <meta itemprop="propertyID" content="DID">
    <span itemprop="value">did:web:example.com:product:pump-twin-001</span>
  </div>
  <span itemprop="category">Digital Twin</span>
  <div itemprop="additionalProperty" itemscope itemtype="https://schema.org/PropertyValue">
    <span itemprop="name">Product Role</span>
    <span itemprop="value">Digital Twin</span>
  </div>
</div>

<div itemscope itemtype="https://schema.org/SoftwareApplication">
  <h2 itemprop="name">CRM Module</h2>
  <p itemprop="description">Software module for customer relationship management</p>
  <div itemprop="identifier" itemscope itemtype="https://schema.org/PropertyValue">
    <meta itemprop="propertyID" content="DID">
    <span itemprop="value">did:web:example.com:product:crm-module-001</span>
  </div>
  <meta itemprop="applicationCategory" content="BusinessApplication">
</div>

Pre-Markup

<div>
  <h2>Laptop Battery Replacement</h2>
  <p>A consumable battery for Model X</p>
  <p>GTIN: 5901234123457</p>
  <p>Category: Consumable</p>
</div>

<div>
  <h2>Virtual Pump Twin</h2>
  <p>Digital Twin of the physical water pump for simulation</p>
  <p>DID: did:web:example.com:product:pump-twin-001</p>
  <p>Category: Digital Twin</p>
</div>

<div>
  <h2>CRM Module</h2>
  <p>Software module for customer relationship management</p>
  <p>DID: did:web:example.com:product:crm-module-001</p>
  <p>Category: Software Component</p>
</div>