Announcement

Collapse
No announcement yet.

RDFa, JSON-LD, Both, something else/neither?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • RDFa, JSON-LD, Both, something else/neither?

    Looking for specific reasons and experience to choose on, both, or neither formats.

    Scott
    What help do you need today!
    Interactive Design Solutions http://www.southbound.com
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    My T-shirt Collection is mostly MivaCon T-shirts!!
    Competitive Rates, Popular Modules, and Integrations:
    Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

  • I forgot I asked this. Well, at least we now know the fate of Rich Snippets?

    What help do you need today!
    Interactive Design Solutions http://www.southbound.com
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    My T-shirt Collection is mostly MivaCon T-shirts!!
    Competitive Rates, Popular Modules, and Integrations:
    Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

    Comment


    • Microdata and RDFa are conceptually similar: both syntax define attributes that get added to your existing HTML elements. JSON-LD is a syntax that gets added to a script element (used as data block, not as script), separately from your existing markup. So the primary difference between Microdata/RDFa and JSON-LD is that you have to repeat the content if using JSON-LD, while you can mark up your existing content if using Microdata/RDFa. RDFa and JSON-LD are both W3C Recommendations and both are RDF serializations.

      Google's stated preference is for JSON-LD. It may be in your best interest to consider switching over to JSON-LD structured data if you currently use microdata. But at this time it's not actually necessary because Google can still read it and interpret it. But sometimes, it's best to future proof content. It's up to you at this time because Google isn't actually requiring one format over another.

      You can include multiple structured data objects on a page, as long as they describe user-visible page content. However, if you mark up one item in a list you must mark up all items; marking up just one category entity from all listed on the page is against our guidelines.

      Here is a good reference to using JSON-LD: https://moz.com/blog/json-ld-for-beginners

      Matt Zimmermann
      Director of UI/UX
      / Miva, Inc.

      Comment


      • Just thinking out loud here...but couldn't you build up the json object in pieces inline with the template segments that generate that data and then patch it together later on? I do something similar with basic micro data so that whole micro data 'chunk' sits at the bottom of the page. (I like clean html layout code :) )
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


        • If you went that route, you would have to wrap the page contents in a script tag which I think would cause problems with the page in general.
          Matt Zimmermann
          Director of UI/UX
          / Miva, Inc.

          Comment


          • hmm, i'm thinking that the individual json elements get stored in a miva variable and then reconstructed at the end.
            Bruce Golub
            Phosphor Media - "Your Success is our Business"

            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
            phosphormedia.com

            Comment

            Working...
            X

            This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

            This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

            Accept