json-ld

JSON-LD blank node to nested object in Apache Jena

送分小仙女□ 提交于 2019-12-19 21:54:35
问题 I have the following example Turtle document: @prefix dct: <http://purl.org/dc/terms/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix example: <http://example.com/vocabulary/> . @prefix dcat: <http://www.w3.org/ns/dcat#> . <http://example.com/datasets/1> a dcat:Distribution ; example:props [ example:prop1 "hello" ; example:prop2 "1" ] ; dct:description "test data" . I converted it into JSON-LD with the Apache Jena (RDFDataMgr with JSONLD_COMPACT_PRETTY) to JSON-LD: { "

Mixing JSON-LD CollectionPage and Microdata `hasPart` of Schema.org

*爱你&永不变心* 提交于 2019-12-19 08:20:09
问题 The microdata markup below works perfectly, Google's structured data testing tool shows one CollectionPage and WebSite/WebPage as children. <body itemscope itemtype="https://schema.org/CollectionPage"> <span itemscope itemtype="https://schema.org/WebSite" itemprop="hasPart"> <a href="https://springfield-xxxx.us" itemprop="url">Official site of Springfield</a> </span> <span itemscope itemtype="https://schema.org/WebPage" itemprop="hasPart"> <a href="https://facebook.com/group/XXXX" itemprop=

Mixing JSON-LD CollectionPage and Microdata `hasPart` of Schema.org

走远了吗. 提交于 2019-12-19 08:20:01
问题 The microdata markup below works perfectly, Google's structured data testing tool shows one CollectionPage and WebSite/WebPage as children. <body itemscope itemtype="https://schema.org/CollectionPage"> <span itemscope itemtype="https://schema.org/WebSite" itemprop="hasPart"> <a href="https://springfield-xxxx.us" itemprop="url">Official site of Springfield</a> </span> <span itemscope itemtype="https://schema.org/WebPage" itemprop="hasPart"> <a href="https://facebook.com/group/XXXX" itemprop=

How to connect homepage and blog using cross-site structured data with Schema.org?

爷,独闯天下 提交于 2019-12-18 09:36:49
问题 I have a website, a blog, and several social media profiles. I want to explain the relation between these online presences to search engines using Schema.org. From the documentation and from examples on Google, I know that the following code connects the website and the social media profiles to my name: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Person", "name": "your name", "url": "http://www.your-site.com", // <= homepage "sameAs": [ "http://www

Inline Microdata content displays different from same markup in JSON-LD

喜夏-厌秋 提交于 2019-12-18 09:34:22
问题 I have an issue about Microdata. Usually I insert Microdata as inline attributes in pages, but I decided to separate HTML code and structured data, so I starting creating inline JSON-LD. When testing pages with Google testing tool I noticed some differences between what Google shows depending on structuring Microdata. The itemscope is WebPageElement and the itemprop is text : text is fetched from database and so it can contain HTML tags because it is generated using text editor. HTML code

Google does not correctly merge microdata and json+ld in the same page using same URI id

人盡茶涼 提交于 2019-12-17 21:17:49
问题 I have a product page with "microdata" and "json+ld" codes. Both of the codes refers to the same @id URI object (http://www.example.org/product#this) so I would expect to "mix/merge" both properties, but instead structured data testing tool shows 2 "individual" products so.... 1- Does Google support using two syntax in the same page? 2- Is this well implemented? Can I refer two codes to the same object using itemId for microdata and @id for json+ld? 3- Can this damage my page in terms of

Does JSON-LD have to be embedded?

﹥>﹥吖頭↗ 提交于 2019-12-17 10:34:27
问题 We are currently using the Microdata format to expose data to search engines and we are looking at exposing more info to be able to support some more advanced Google Search features. As I'm working my way through the fields I'm finding I need information that we currently load asynchronously so it is not a part of the initial response. JSON-LD looks like its what Google prefers but all the examples I've seen have it embedded in the page. Could you have a link to a JS file so it gets loaded as

Best JSON-LD practices: using multiple <script> elements?

↘锁芯ラ 提交于 2019-12-17 07:14:11
问题 I'm curious about the best practice for applying JSON-LD onto a site for schema.org. If I have a page with an Article and I also want to define WebSite on my page, I would have this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.example.com/", "potentialAction": { "@type": "SearchAction", "target": "http://www.example.com/search?&q={query}", "query-input": "required" } } </script> <!- … --> <script type="application/ld+json"> { "

Best practice for large site

柔情痞子 提交于 2019-12-13 20:16:54
问题 I am working on a large site and want to implement JSON-LD . The site has a large social media following and a lot of artist profiles and articles. This is what I currently have, (the following code is from Google's guidelines) Front page <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Organization", "name": "Organization name", "url": "http://www.your-site.com", "sameAs": [ "http://www.facebook.com/your-profile", "http://instagram.com/yourProfile", "http:/

Google sitelinks search box snippet doesn't work

喜夏-厌秋 提交于 2019-12-13 14:52:57
问题 I'm trying to implement the snippet for the sitelinks search box on Google, according to the documentation in https://developers.google.com/webmasters/richsnippets/sitelinkssearch. My implementation is the following: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.petmd.com/", "potentialAction": { "@type": "SearchAction", "target": "http://www.petmd.com/search?Q={Q}", "query-input": "required name=Q" } } </script> The target works