Advertisement
localblitz

Advanced Schema 1

May 7th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="application/ld+json">                                 //The code starts by mentioning its language
  2.  
  3. {"@context": "http://schema.org",                                   //Mention that it is about schema markup
  4.     "@type": "Person",                                              //The schema type
  5.            
  6.         "additionalName": "Brad",                                   //An additional name for a Person (nickname), can be used for a middle name too.
  7.        
  8.         "address": {                                                //Physical Address; it can also be inside a single line (txt type) but not recommended
  9.             "@type": "PostalAddress",                               //Using this type is recommended
  10.                 "addressCountry": "USA",                            //Name of the country or you can use ISO 3166-1 alpha-2 country code for USA- “US”
  11.                 "addressLocality": "Colorado Springs",              //Name of the city
  12.                 "addressRegion": "CO",                              //Region code for the state (Colorado-CO)
  13.                 "postalCode": "80840",                              //The postal code
  14.                 "postOfficeBoxNumber": "80840",                     //Ther post office box number for PO box addresses. The postal code. For example, 94043.
  15.                 "streetAddress": "100 Main Street"                  //the address of the street
  16.         },
  17.        
  18.         "affiliation": {                                            //An organization the person is affiliated with, NOT like "worksFor". Affiliation comes in various forms. A company has a minority interest in another company when it has partial ownership of the company but not enough ownership to control it. Through what's called affiliate marketing, a person or entity that markets another company's products may be categorized as an affiliate. An organization can become a separate company's affiliate without sharing its goals. For example, a paper clips company may have as their goal the aim of selling 500,000 paper clips by the end of the year. That organization can become an affiliate of a paper company. The paper clip company would not have to alter its goal to become an affiliate. The two companies' relationship may merely be beneficial in helping each further its separate goal.
  19.             "@type": "Organization",                                //Only type is organization
  20.                 "name": "Medicare"                                  //Name of the organization
  21.         },                                         
  22.        
  23.         "alumniOf": {                                               //An organization the person is alumni of, NOT like "worksFor". Affiliation comes in various forms. A company has a minority interest in another company when it has partial ownership of the company but not enough ownership to control it. Through what's called affiliate marketing, a person or entity that markets another company's products may be categorized as an affiliate. Example: An organization can become a separate company's affiliate without sharing its goals. For example, a paper clips company may have as their goal the aim of selling 500,000 paper clips by the end of the year. That organization can become an affiliate of a paper company. The paper clip company would not have to alter its goal to become an affiliate. The two companies' relationship may merely be beneficial in helping each further its separate goal.
  24.             "@type": "HighSchool",                                  //One type is EducationalOrganization; Organization can be used here too. More specific types can be used like CollegeOrUniversity, ElementarySchool, HighSchool, MiddleSchool, Preschool,School
  25.                 "name": "Palo Alto High School",                    //Name of the organization
  26.                 "url": "https://www.roymed.dk/",                    //URL of the organization
  27.                 "sameAs": "https://wikipedia.org/wiki/RoyMed"       //URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
  28.         },
  29.        
  30.         "award": "Doctor of the Year award",                        //Name of the award, NOT awards
  31.        
  32.         "birthDate": "1959-10-12",                                  //expected type is birthDate value has to be in ISO 8601 date format (year-month-date)
  33.        
  34.         "birthPlace": "Philadelphia, PA",                           //Name of Birthplace; the formait is "city, State addressRegion code"
  35.      
  36.         "brand": "Medical Packs DK",                                //the brand(s) maintained by a business person
  37.        
  38.         "children": {                                               //Children of the person
  39.             "@type": "Person",                                      //Type is person
  40.                 "name": "Juanita",                                  //Name of children
  41.                 "gender": "http://schema.org/Female",               //Gender of children
  42.                 "url":"http://www.example.com/Juanita.html"         //Url to reach the children
  43.         },
  44.        
  45.         "colleague": [                                              //Colleagues of the person; It can be of type person or url
  46.             "http://www.example.com/JohnColleague.html",           
  47.             "http://www.example.com/JameColleague.html"
  48.         ],
  49.        
  50.         "contactPoint": [                                           //A contact point, for example, a Customer Complaints department in case of business.
  51.             {
  52.             "@type":"ContactPoint",
  53.             "contactType":"mobile",
  54.             "telephone":"555"
  55.             },{
  56.             "@type":"ContactPoint",
  57.             "contactType":"work",
  58.             "email":"yolo@woot.com",
  59.             "telephone":"1(234)"
  60.             },{
  61.             "@type":"ContactPoint",
  62.             "contactType":"home",
  63.             "email":"foo@bar.com"
  64.             }
  65.         ],
  66.        
  67.         "deathDate": "2015-12-18",                                  //expected type is deathDate has to be in ISO 8601 date format (year-month-date)           
  68.        
  69.         "deathPlace": "Kopenhagen, Denmark",                        //Name of Deathplace; the formait is "city, State addressRegion code"
  70.        
  71.         "duns":"012345678",                                         //Type is text. Dun & Bradstreet DUNS number is used for identifying an organization or a business person
  72.        
  73.         "email": "mailto:info@example.com",                         //Simply put the email address like this
  74.        
  75.         "familyName": "Xoo",                                        //In USA, it's the last name of an Person. This can be used along with givenName instead of the name property.
  76.        
  77.         "faxNumber": "( 33 1) 42 68 53 01",                         //its the fax number to reach the person
  78.        
  79.         "follows": {                                                //Type:Person; The most generic uni-directional social relation
  80.             "@type": "Person",                                     
  81.                 "name": "Elon Musk",                                //Name of the followed person
  82.                 "gender": "http://schema.org/Male",                 //Gender of the followed person            
  83.                 "url":"http://www.example.com/Elonmusk.html"        //Url to reach the person
  84.         },
  85.        
  86.         "funder": "",                                               //Type is Organization or, Person. A person or organization that supports (sponsors) something through some kind of financial contribution.
  87.        
  88.         "gender": "http://schema.org/Female",                       //Gender can be txt like "male" or "female" (for people who don't identify as a binary gender) or, directly can be used as http://schema.org/Male and http://schema.org/Female
  89.        
  90.         "givenName": "Jane",                                        //In USA, the first name of a Person. It can be used along with familyName instead of the name property
  91.        
  92.         "globalLocationNumber":"0123456789123",                     //Type:text; Global Location Number (GLN), also referred to as International Location Number (ILN), of the respective person. It's a 13-digit number used to identify parties and physical locations.
  93.        
  94.         "hasOccupation":"Doctor",                                   //Type:Occupation; It means the person's occupation. For past professions, use Role for expressing dates.
  95.        
  96.         "hasOfferCatalog": {                                        //Type: OfferCatalog; Indicates an OfferCatalog listing for the Person
  97.             "@type": "OfferCatalog",
  98.                 "name": "Cleaning services",
  99.                 "itemListElement": [
  100.                     {
  101.                     "@type": "OfferCatalog",
  102.                         "name": "House Cleaning",
  103.                         "itemListElement": [
  104.                             {
  105.                             "@type": "Offer",
  106.                                 "itemOffered": {
  107.                                 "@type": "Service",
  108.                                     "name": "Apartment light cleaning"
  109.                             }
  110.                           },
  111.                           {
  112.                             "@type": "Offer",
  113.                             "itemOffered": {
  114.                               "@type": "Service",
  115.                               "name": "House light cleaning up to 2 bedrooms"
  116.                             }
  117.                           },
  118.                           {
  119.                             "@type": "Offer",
  120.                             "itemOffered": {
  121.                               "@type": "Service",
  122.                               "name": "House light cleaning 3+ bedrooms"
  123.                             }
  124.                           }
  125.                     ]
  126.                     },
  127.                     {
  128.                     "@type": "OfferCatalog",
  129.                         "name": "One-time services",
  130.                         "itemListElement": [
  131.                             {
  132.                             "@type": "Offer",
  133.                                 "itemOffered": {
  134.                                 "@type": "Service",
  135.                                     "name": "Window washing"
  136.                                 }
  137.                             },
  138.                             {
  139.                             "@type": "Offer",
  140.                                 "itemOffered": {
  141.                                 "@type": "Service",
  142.                                     "name": "Carpet cleaning"
  143.                                 }
  144.                             },
  145.                             {
  146.                             "@type": "Offer",
  147.                                 "itemOffered": {
  148.                                 "@type": "Service",
  149.                                     "name": "Move in/out cleaning"
  150.                                 }
  151.                             }
  152.                         ]
  153.                     }
  154.                 ]
  155.         },
  156.        
  157.        
  158.         "hasPOS":"",                                                //Type: Place; Points-of-Sales operated by the person.
  159.        
  160.         "height": "62 inches",                                      //
  161.        
  162.         "homeLocation":"",                                          //Type: ContactPoint/Place; A contact location for a person's residence
  163.  
  164.         "honorificPrefix": "Dr.",                                   //honorific prefix preceding a Person's name such as Dr/Mrs/Mr.
  165.            
  166.         "honorificSuffix": "PhD",                                   //honorific suffix preceding a Person's name such as M.D./PhD/MSCSW
  167.  
  168.         "isicV4":"",                                                //Type:Text. The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a business person.
  169.        
  170.         "jobTitle": "Research Assistant",                           //Job title of the person (for example, Financial Manager)
  171.        
  172.         "knows": "Margrethe II of Denmark",                         //Type:Person. The most generic bi-directional social/work relation.
  173.        
  174.         "knowsAbout": "Medical Surgery",                            //type:text/Thing/URL. Used to indicate a topic that is known about - suggesting possible expertise but not implying it
  175.        
  176.         "knowsLanguage": {                                          //Type:text/language. Used to indicate a known language. Here, reading/writing/speaking/signing skills are not distinguished. Use language codes from the IETF BCP 47 standard.
  177.             "@type": "Language",
  178.                 "name": "Spanish",
  179.                 "alternateName": "es"                               //Use language codes from the IETF BCP 47 standard
  180.                 },
  181.        
  182.         "makesOffer":"",                                            //Type:Offer. A pointer to products or services offered by the organization or person
  183.        
  184.         "memberOf": "Republican Party",                             //Type:Organization/ProgramMembership. An Organization (or ProgramMembership) to which this Person or Organization belongs.
  185.        
  186.         "naics":"919280",                                           //The North American Industry Classification System (NAICS) code for a business person
  187.    
  188.         "nationality": "Denmark",                                   //Nationality of the person
  189.        
  190.         "netWorth": {                                               //The total financial value of the person as calculated by subtracting assets from liabilities.
  191.             "@type": "MonetaryAmount",                              //Type can be PriceSpecification too. A monetary value or range. This type can be used to describe an amount of money such as $50 USD, or a range as in describing a bank account being suitable for a balance between £1,000 and £1,000,000 GBP, or the value of a salary, etc. It is recommended to use PriceSpecification types to describe the price of an Offer, Invoice, etc. PriceSpecification means a structured value representing a price or price range. Typically, only the subclasses of this type are used for markup. It is recommended to use MonetaryAmount to describe independent amounts of money such as a salary, credit card limits, etc.
  192.                 "value":"180000",
  193.                 "currency":"USD"
  194.                     },
  195.        
  196.         "owns": {                                                   //Products owned by the organization or person.
  197.             "@type":"OwnershipInfo",                                //A structured value providing information about when a person owned a certain product.
  198.                 "acquiredFrom":"abc company",                       //Type:Organization/Person. The organization or person from which the product was acquired.
  199.                 "ownedFrom":"2011-11-24T10:00:00",                  //Type:DateTime. The combination of date and time of obtaining the product. format: YYYY-MM-DDThh:mm:ss
  200.                 "ownedThrough":"2013-11-24T10:00:00",               //Type:DateTime. The date and time of giving up ownership on the product.
  201.                 "typeOfGood":"",                                    //Type:Product/Service. The product that this structured value is referring
  202.                 }
  203.        
  204.         "parent":{                                                  //A parent of the person
  205.             "@type": "Person",                                      //Type is person
  206.                 "name": "Jua",                                      //Name of children
  207.                 "gender": "http://schema.org/Female",               //Gender of children
  208.                 "url":"http://www.example.com/Jua.html"             //Url to reach the person
  209.         },
  210.        
  211.         "performerIn": {
  212.             "name": "The Royal Institute of Medicine Annual Opera",
  213.             "location": {
  214.               "@type": "Place",
  215.                     "name": "Kopenhagen Operahouse",
  216.                     "address": {
  217.                         "@type": "PostalAddress",
  218.                             "addressLocality": "Kopenhagen",
  219.                             "postalCode": "10209",
  220.                             "streetAddress": "7 Operavej"
  221.                     }
  222.             },
  223.             "offers": {
  224.               "name": "Commemorative Opera Ticket from 1945",
  225.               "availability": "In Stock",
  226.               "price": "995",
  227.               "priceCurrency": "DKK",
  228.               "validFrom": "2017-09-20",
  229.               "url": "https://janexoo.com/shop/commemorative/opera-ticket-1945-mint-condition"
  230.             },
  231.             "startDate": "1945-02-18",
  232.             "endDate": "1945-08-01",
  233.             "description": "A comical opera in 4 acts depicting life in the Danish countryside",
  234.             "image": "https://janexoo.com/archives/opera-opening-poster-1945.jpg",
  235.             "performer": [
  236.                 "Austin Svenson",
  237.                 "Karima Anara"
  238.             ]
  239.         },
  240.        
  241.         "publishingPrinciples":"",                                  //The publishingPrinciples property indicates (typically via URL) a document describing the editorial principles of an Organization (or individual e.g. a Person writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a CreativeWork (e.g. NewsArticle) the principles are those of the party primarily responsible for the creation of the CreativeWork. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a funder) can be expressed using schema.org terminology.
  242.        
  243.         "relatedTo":{                                               //Someone related to the person
  244.             "@type": "Person",                                      //Type is person
  245.                 "name": "Jua",                                      //Name of children
  246.                 "gender": "http://schema.org/Female",               //Gender of children
  247.                 "url":"http://www.example.com/Jua.html"             //Url to reach the person
  248.         },
  249.        
  250.         "seeks": "Fame"                                             //A pointer to products/services sought by the person (demand).
  251.        
  252.         "sibling":{                                                 //A sibling of the person
  253.             "@type": "Person",                                      //Type is person
  254.                 "name": "Jua",                                      //Name of children
  255.                 "gender": "http://schema.org/Female",               //Gender of children
  256.                 "url":"http://www.example.com/Jua.html"             //Url to reach the person
  257.         },
  258.        
  259.         "sponsor":{                                                 //A sponsor of the person
  260.             "@type": "Person",                                      //Type is person
  261.                 "name": "Jua",                                      //Name of children
  262.                 "gender": "http://schema.org/Female",               //Gender of children
  263.                 "url":"http://www.example.com/Jua.html"             //Url to reach the person
  264.         },
  265.        
  266.         "spouse":{                                                  //Spouse of the person
  267.             "@type": "Person",                                      //Type is person
  268.                 "name": "Jua",                                      //Name of children
  269.                 "gender": "http://schema.org/Female",               //Gender of children
  270.                 "url":"http://www.example.com/Jua.html"             //Url to reach the person
  271.         },
  272.        
  273.         "taxID":"123456789",                                        //Tax/Fiscal ID of the organization or person (TIN in USA or, CIF/NIF in Spain)
  274.        
  275.         "telephone": "(123) 456-6789",                              //Telephone number to reach the person
  276.        
  277.         "vatID": "123456789",                                       //Value-added Tax ID of the person.
  278.        
  279.         "weight": "62 kg",                                          //weight of the person
  280.        
  281.         "workLocation": {
  282.         "@type": "Place",
  283.             "name": "Kopenhagen Operahouse",
  284.             "address": {
  285.                 "@type": "PostalAddress",
  286.                     "addressCountry": "USA",                        //Name of the country or you can use ISO 3166-1 alpha-2 country code for USA- “US”
  287.                     "addressLocality": "Colorado Springs",          //Name of the city
  288.                     "addressRegion": "CO",                          //Region code for the state (Colorado-CO)
  289.                     "postalCode": "80840",                          //The postal code
  290.                     "postOfficeBoxNumber": "80840",                 //Ther post office box number for PO box addresses. The postal code. For example, 94043.
  291.                     "streetAddress": "100 Main Street"              //the address of the street
  292.             }
  293.         },
  294.        
  295.         "worksFor": {
  296.             "@type": "Organization",
  297.                 "name": "Edholm Foundation DK",
  298.                 "url": "http://www.edholdenmark.dk/",
  299.                 "address": {
  300.                     "@type": "PostalAddress",
  301.                         "addressLocality": "Kopenhagen",
  302.                         "postalCode": "11826",
  303.                         "streetAddress": "Vejleg 45"
  304.                         }
  305.         },
  306.        
  307.         "additionalType": "",
  308.        
  309.         "alternateName": "Aliasname",                               //Alias of the person
  310.        
  311.         "description": "Born in 1921 pediatrician Jane Xoo redefined how we view modern healthcare for children.",
  312.        
  313.         "disambiguatingDescription": "The 42nd president of Doctors Forum",
  314.  
  315.         "identifier":"",
  316.  
  317.         "image": "https://janexoo.com/images/jane-portrait.jpg",    //The image of the person
  318.        
  319.         "mainEntityOfPage": "https://nationalgeographic.com/profile/JaneXoo",//Type:CreativeWork/URL. Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details.
  320.        
  321.         "name": "Jane Doe",
  322.        
  323.         "potentialAction": {
  324.             "@type":"SearchAction",
  325.                 "target":"https:\/\/barbacki.com\/?s={search_term_string}",
  326.                 "query-input":"required name=search_term_string"}
  327.        
  328.         "sameAs" : [
  329.             "https://www.facebook.com/jane",
  330.             "https://www.linkedin.com/jane",
  331.             "http://twitter.com/jane",
  332.             "http://instagram.com/jane",
  333.             "https://plus.google.com/jane"
  334.         ],
  335.        
  336.         "subjectOf": "",                                            //Type:CreativeWork/Event. A CreativeWork or Event about this Thing.
  337.  
  338.         "url": "https://www.janexoo.com"
  339. }
  340. </script>
  341.  
  342.  
  343.  
  344.  
  345. https://xoocode.com/json-ld-code-examples/person/
  346. https://technicalseo.com/seo-tools/schema-markup-generator/
  347. http://linter.structured-data.org/examples/schema.org/OfferCatalog/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement