Physician类型Schema属性使用正确性及医师资质添加方案咨询
关于Physician类型Schema的问题解答
1. medicalSpecialty和additionalProperty的使用是否符合Schema规范?
- medicalSpecialty:完全符合规范。Physician继承自MedicalProfessional类型,而MedicalProfessional本身就定义了
medicalSpecialty属性,支持传入数组形式的MedicalSpecialty类型对象,你代码里的用法是标准的正确写法。 - additionalProperty:符合规范。Physician最终继承自Thing类型,Thing允许通过
additionalProperty结合PropertyValue类型来扩展自定义属性,用来存放Schema里没有定义的字段(比如这里的Qualification)是官方允许的扩展方式,但要注意这类自定义属性搜索引擎可能不会像标准属性那样进行结构化解析。
2. 如何添加医师的资质与医学专长?
医学专长
你现在用的medicalSpecialty就是Schema为医师这类医疗从业者专门设计的属性,完全适合用来标注医学专长,不需要调整,保持现有写法即可。
医师资质
因为Physician没有直接的Qualification属性,有两种推荐方式:
- 方式一:语义化更强的标准属性
利用Physician继承自Person的educationalBackground属性,这个属性可以接受EducationalOccupationalCredential类型的对象,能更精准地描述资质信息,示例如下:"educationalBackground": [ { "@type": "EducationalOccupationalCredential", "credentialCategory": "Medical Qualification", "name": "MBBS" }, { "@type": "EducationalOccupationalCredential", "credentialCategory": "Medical Qualification", "name": "DNB (Surgery)" } ] - 方式二:继续使用additionalProperty
保持你现在的写法也可以,这是官方允许的扩展方式,只是语义化稍弱,但胜在简单直接。
3. 是否需要改用Person类型Schema?
不需要。Physician是Person的子类型,它不仅继承了Person的所有属性(比如name、knowsLanguage、educationalBackground等),还额外提供了医疗行业专属的属性(比如medicalSpecialty),用Physician能更精准地告诉搜索引擎这个实体是医师,比用通用的Person类型更利于结构化识别,完全没必要替换。
优化后的完整JSON-LD示例
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Physician", "image" : "https://www.healinghandsclinic.co.in/images/campaign/Dr-suhas-patil.jpg", "telephone": "+91 7411951943", "priceRange":"INR 500 - INR 1000", "address":[ { "@type": "PostalAddress", "streetAddress": "Healing hands clinic Baner Rd, Laxman Nagar, Baner, Pune, Maharashtra 411045, India", "addressLocality": "Pune", "addressRegion": "Maharashtra", "postalCode": "411001", "addressCountry": "India" }, { "@type": "PostalAddress", "streetAddress": "Second floor, Premier Plaza,Near Big Bazar & Big Cinema,Above Mac Donald, Chinchwad, Pune - 411019", "addressLocality": "Pune", "addressRegion": "Maharashtra", "postalCode": "411019", "addressCountry": "India" }, { "@type": "PostalAddress", "streetAddress": "Gokul Complex,Near HDFC Bank,Wage VastiNashik Road,Chakan, Pune - 410501", "addressLocality": "Pune", "addressRegion": "Maharashtra", "postalCode": "410501", "addressCountry": "India" } ], "url" : "https://www.healinghandsclinic.co.in", "founders": { "@type": "Person", "name": "Dr Ashwin Porwal" }, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "1000" }, "areaServed": { "@type": "State", "name": "Maharashtra" }, "sameAs" : [ "https://www.facebook.com/HealingHandsClinic", "https://twitter.com/hhc_pune", "https://plus.google.com/u/0/+HealinghandsclinicCoIn", "https://www.linkedin.com/in/drashwinporwal", "https://www.youtube.com/user/hhcpune", "https://www.pinterest.com/healinghandsc/", "https://www.instagram.com/healinghandsclinic/" ], "name":"Dr Suhas Patil", "knowsLanguage":[ { "@type":"Language", "name":"English" }, { "@type":"Language", "name":"Hindi" }, { "@type":"Language", "name":"Marathi" } ], "medicalSpecialty":[ { "@type":"MedicalSpecialty", "name":"Hernia" }, { "@type":"MedicalSpecialty", "name":"Piles" }, { "@type":"MedicalSpecialty", "name":"Constipation" }, { "@type":"MedicalSpecialty", "name":"Pilonidal Sinus" }, { "@type":"MedicalSpecialty", "name":"Fistula" }, { "@type":"MedicalSpecialty", "name":"Varicose Veins" } ], "educationalBackground": [ { "@type": "EducationalOccupationalCredential", "credentialCategory": "Medical Qualification", "name": "MBBS" }, { "@type": "EducationalOccupationalCredential", "credentialCategory": "Medical Qualification", "name": "DNB (Surgery)" }, { "@type": "EducationalOccupationalCredential", "credentialCategory": "Medical Qualification", "name": "FMAS" }, { "@type": "EducationalOccupationalCredential", "credentialCategory": "Professional Title", "name": "Consultant Proctologist" } ] } </script>
内容的提问来源于stack exchange,提问作者ssc1234
相关产品推荐
相关产品推荐

