{"id":24872,"date":"2015-03-09T00:00:00","date_gmt":"2015-03-09T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/easier-website-development-with-web-components-and-json-ld\/"},"modified":"2015-03-09T00:00:00","modified_gmt":"2015-03-09T00:00:00","slug":"easier-website-development-with-web-components-and-json-ld","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/easier-website-development-with-web-components-and-json-ld\/","title":{"rendered":"Easier website development with Web Components and JSON-LD"},"content":{"rendered":"<p class=\"gargardate\">Monday, March 09, 2015<\/p>\n<p>\n  <a href=\"https:\/\/www.w3.org\/TR\/json-ld\/\" class=\"external-link\">JSON-LD<\/a> is a JSON-based data format<br \/>\n  that can be used to implement<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/structured-data-intro\/\">structured data<\/a><br \/>\n  describing content on your site to Google and other search engines. For example, if you have a<br \/>\n  list of events, cafes, people or more, you can include this data in your pages in a structured way<br \/>\n  using the <a href=\"https:\/\/schema.org\/\" class=\"external-link\">schema.org<\/a> vocabulary embedded in<br \/>\n  webpages as a JSON-LD snippet. The structured data helps Google understand your pages better and<br \/>\n  highlight your content in search features, such<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/event-event-structured-data\/\">events in the Knowledge Graph<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/structured-data-types\/\">rich snippets<\/a>.\n<\/p>\n<p>\n  <a href=\"https:\/\/webcomponents.org\/\" class=\"external-link\">Web Components<\/a> are a nascent set of<br \/>\n  technologies to define custom, reusable user interface widgets and their behavior. Any web<br \/>\n  developer can build a Web Component. You start by defining a<br \/>\n  <a href=\"https:\/\/webcomponents.org\/articles\/introduction-to-template-element\/\" class=\"external-link\">template<\/a><br \/>\n  for a distinct part of the user interface, which you<br \/>\n  <a href=\"https:\/\/webcomponents.org\/articles\/introduction-to-html-imports\/\" class=\"external-link\">import into the pages<\/a><br \/>\n  on which you want to use the Web Component. A<br \/>\n  <a href=\"https:\/\/webcomponents.org\/articles\/introduction-to-custom-elements\/\" class=\"external-link\">Custom Element<\/a><br \/>\n  is used to define the behavior of the Web Component. Because you&#8217;re bundling the display and logic<br \/>\n  for part of the user interface into the Web Component, you can share and reuse the bundle on other<br \/>\n  pages and with other developers, thus simplifying web development.\n<\/p>\n<p>\n  JSON-LD and Web Components work really well together. The Custom Element functions as the<br \/>\n  presentation layer and the JSON-LD functions as the data layer that the custom element and search<br \/>\n  engines consume. This means you can build custom elements for any schema.org type, such as<br \/>\n  <a href=\"https:\/\/schema.org\/Event\" class=\"external-link\"><code>Event<\/code><\/a> and<br \/>\n  <a href=\"https:\/\/schema.org\/LocalBusiness\" class=\"external-link\"><code>LocalBusiness<\/code><\/a>.\n<\/p>\n<p>\n  Your architecture would then look like this. Your structured data is stored in your database, for<br \/>\n  example, the store locations in your chain. This data is embedded into your webpage as a JSON-LD<br \/>\n  snippet, which means it&#8217;s available to be consumed by the Custom Element to display to a human<br \/>\n  visitor and for Googlebot to retrieve for Google indexing.\n<\/p>\n<p>To learn more and get started with your own custom elements, please see:<\/p>\n<ul>\n<li>\n    Our latest article on<br \/>\n    <a href=\"https:\/\/updates.html5rocks.com\/2015\/03\/creating-semantic-sites-with-web-components-and-jsonld\" class=\"external-link\">HTML5 Rocks<\/a><br \/>\n    and<br \/>\n    <a href=\"https:\/\/github.com\/PolymerLabs\/structured-data-web-components\" class=\"external-link\">the accompanying code examples<\/a>.\n  <\/li>\n<li>\n    The <a href=\"https:\/\/json-ld.org\/\" class=\"external-link\">JSON-LD website<\/a>, and<br \/>\n    <a href=\"https:\/\/www.w3.org\/TR\/json-ld\/\" class=\"external-link\">the W3C spec<\/a>\n  <\/li>\n<li>\n    <a href=\"https:\/\/www.w3.org\/wiki\/WebComponents\/\" class=\"external-link\">Web Components wiki<\/a> and the<br \/>\n    Web Components community on<br \/>\n    <a href=\"https:\/\/webcomponents.org\/\" class=\"external-link\">webcomponents.org<\/a>\n  <\/li>\n<li><a href=\"https:\/\/schema.org\" class=\"external-link\">schema.org<\/a><\/li>\n<li>\n    Google&#8217;s<br \/>\n    <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/structured-data-intro\/\">structured data documentation<\/a>\n  <\/li>\n<\/ul>\n<p class=\"byline-author\">\n  Posted by<br \/>\n  <a href=\"https:\/\/plus.google.com\/+EwaGasperowicz\" class=\"external-link\">Ewa Gasperowicz<\/a>, Developer<br \/>\n  Programs Engineer, <a href=\"https:\/\/plus.google.com\/+ManoMarks\" class=\"external-link\">Mano Marks<\/a>,<br \/>\n  Developer Advocate, <a href=\"https:\/\/developers.google.com\/search\/blog\/authors\/pierre-far\" class=\"external-link\">Pierre Far<\/a>,<br \/>\n  Webmaster Trends Analyst<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monday, March 09, 2015 JSON-LD is a JSON-based data format that can be used to implement structured data describing content on your site to Google and other search engines. For example, if you have a list of events, cafes, people or more, you can include this data in your pages in a structured way using [&hellip;]<\/p>\n","protected":false},"menu_order":83497,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-24872","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/27056"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=24872"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=24872"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=24872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}