Mobile app version of vmapp.org
Login or Join
Deb1703797

: URL in JSON-LD Schema.org I have JSON-LD Schema in the <head> of my site which is applied to every page on the site. One of the fields is url, i.e.: "url": "http://example.com" Should

@Deb1703797

Posted in: #JsonLd #Microdata

I have JSON-LD Schema in the <head> of my site which is applied to every page on the site. One of the fields is url, i.e.:

"url": "http://example.com"


Should the URL be the domain of the site, regardless of the page OR should it be the page’s URL?

Note: The schema is for a LocalBusiness.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sherry384

I’m assuming you are using the vocabulary Schema.org and have something like this:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"url": "http://example.com/"
}
</script>


Here the url property belongs to the LocalBusiness item. So it should give the URI of the local business, no matter on which page you specify this markup.

This can be the URI of the official website, but you could also decide to have separate URIs for the website and for the business (representing the actual thing, not something about this thing).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme