Microdata
البيانات الجزئية
هي مواصفات لتضمين البيانات القابلة للقراءة آليًا في مستندات HTML. تتألّف البيانات الجزئية من أزواج اسم وقيمة (المعروفة باسم items
) يتم تحديدها وفقًا لقائمة المفردات. توفّر schema.org مجموعة من مفردات الترميز الشائعة الاستخدام.
تتضمّن البنية الأساسية سمة itemscope
لتحديد عنصر وسمة itemprop
لوصف إحدى خصائص العنصر. يتم تحديد الأنواع باستخدام سمة itemtype
ويمكن أن تتّخذ قيمًا محدّدة في المفردات المفضّلة. على سبيل المثال، تحدِّد schema.org
أنواعًا مثل http://schema.org/Person
أو http://schema.org/PostalAddress
.
يوضّح المثال التالي (من Wikipedia) كيفية استخدام البيانات الجزئية لوصف شخص:
<section itemscope itemtype="http://schema.org/Person">
Hello, my name is
<span itemprop="name">John Doe</span>,
I am a
<span itemprop="jobTitle">Graduate research assistant</span>
at the
<span itemprop="affiliation">University of Dreams</span>
My friends call me
<span itemprop="additionalName">Johnny</span>
You can visit my homepage at
<a href="http://www.example.com.com" itemprop="url">www.example.com</a>
<section itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
I live at
<span itemprop="streetAddress">1234 Peach Drive</span>
<span itemprop="addressLocality">Warner Robins</span>
<span itemprop="addressRegion">Georgia</span>.
</section>
</section>
يمكنك استخدام أداة مدقّق المخطط لتصحيح أخطاء الترميز والتحقّق من صحته وفقًا للمخطّط المتوافق.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Microdata is an HTML specification used to embed machine-readable data in webpages using name-value pairs called `items` which are defined within a vocabulary."],["Schema.org provides commonly used vocabularies to structure the data, and items are marked up with attributes like `itemscope`, `itemprop`, and `itemtype` for machines to understand."],["The syntax involves defining an `item` and its `properties` using these attributes, and specifying a vocabulary such as schema.org for types like `Person` or `PostalAddress`."],["You can validate your Microdata implementation using the Schema Validator tool to ensure correctness and compatibility with supported schemas."]]],["Microdata embeds machine-readable data in HTML using name-value pairs called items. `itemscope` defines an item, `itemprop` describes its properties, and `itemtype` specifies its type from a vocabulary (e.g., schema.org). For example, the `Person` type can include properties like `name`, `jobTitle`, and `address`. The Schema Validator tool is available for debugging and validating microdata markup against supported schemas.\n"]]