json-ld

Can we make structured page data for any type of entities?

别来无恙 提交于 2020-01-16 09:11:10
问题 I have an encyclopedia website for plants care (flowers, trees, vegetables etc.). Each plant has a table of environment requirements like: how much light need per day what kind of soil needed how much water and moisture needed temperature range that can grow Can I make an structured page to show this table on Google Search? Something like this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Plant", "plantCare": {"@type": "PlantCare","sun": "medium","soil":

Can we make structured page data for any type of entities?

不想你离开。 提交于 2020-01-16 09:11:05
问题 I have an encyclopedia website for plants care (flowers, trees, vegetables etc.). Each plant has a table of environment requirements like: how much light need per day what kind of soil needed how much water and moisture needed temperature range that can grow Can I make an structured page to show this table on Google Search? Something like this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Plant", "plantCare": {"@type": "PlantCare","sun": "medium","soil":

Html tags inside json/ld articleBody value?

余生长醉 提交于 2020-01-05 04:05:13
问题 If I want to create an Article schema.org type with a json/ld format, should I have to put the html tags inside the articleBody 's value? Because I saw that if I use microdata, in the Structured Data Tool it appears the articleBody as a plain text without html tags. Thanks 回答1: Just plain text: "articleBody": "You can paste your entire post in here, and yes it can get really really long." Sources: http://jsonld.com/article/ https://developers.google.com/search/docs/data-types/articles 来源:

Any way to specify the default URI for the @id of a @type or the values of a property?

一笑奈何 提交于 2020-01-02 07:38:33
问题 (I've already asked this on the W3/JSON mailing list, I'll try here too.) I'm fairly new to JSON-LD, although I have significant experience with Semantic Web technologies. I've read the guideline document (https://www.w3.org/TR/json-ld/) and I haven't get if the feature at issue is supported: Suppose you have JSON objects of @type Person and @type Address , both having the @id property. Typical API-coming data will have values like integers or some internal, context-dependant IDs. It's pretty

How to mark data using schema.org and JSON-LD on a website's home page

ⅰ亾dé卋堺 提交于 2020-01-01 21:16:25
问题 Recently i read a lot about marking structured data using schema.org, the first question is , is it recommended to use json-ld at all? because it seems to be new and is not fully supported yet. My second question is on a home page or archive pages ( generally the pages that we have more than 1 article or product or blog post in them ) how do i use schema.org? for example for a page like this : <!DOCTYPE html> <html> <head> <title>Blog Home Page</title> </head> <body> <h1>Blog title</h1> <!--

How to mark data using schema.org and JSON-LD on a website's home page

亡梦爱人 提交于 2020-01-01 21:12:08
问题 Recently i read a lot about marking structured data using schema.org, the first question is , is it recommended to use json-ld at all? because it seems to be new and is not fully supported yet. My second question is on a home page or archive pages ( generally the pages that we have more than 1 article or product or blog post in them ) how do i use schema.org? for example for a page like this : <!DOCTYPE html> <html> <head> <title>Blog Home Page</title> </head> <body> <h1>Blog title</h1> <!--

A code example of serialization JSON to JSON-LD in Java?

末鹿安然 提交于 2019-12-31 01:56:13
问题 I need to convert a some mass of data represented in the form of JSON to JSON-LD. I want to do this with this JSON-LD Java implementation, but I don't understand, what should I do. I watched several tutorials and read something about JSON-LD on the Internet, but do not understand the simplest thing: how do I convert JSON to JSON LD? For example, I have this code in JSON: { "name" : "Andreas", "age" : 20, "profession" : "student", "personalWebsite" : "example.com" } What should I do now?

JSON to JSON-LD

本秂侑毒 提交于 2019-12-30 10:53:16
问题 I want to convert JSON file into JSON-LD. Can anyone tell me, what are the procedures/steps should be done to do that? or Is there any tools for doing that conversion done? Thanks 回答1: In most cases, the only thing you need to do is to create a JSON-LD context and add it to your JSON documents. You can either embed it directly or put it in a different file and simply reference it. Depending on the structure of your JSON documents and the vocabulary you are using, you might need to change the

JSON to JSON-LD

纵饮孤独 提交于 2019-12-30 10:53:10
问题 I want to convert JSON file into JSON-LD. Can anyone tell me, what are the procedures/steps should be done to do that? or Is there any tools for doing that conversion done? Thanks 回答1: In most cases, the only thing you need to do is to create a JSON-LD context and add it to your JSON documents. You can either embed it directly or put it in a different file and simply reference it. Depending on the structure of your JSON documents and the vocabulary you are using, you might need to change the

Repeat whole JSON-LD structure or only the ID?

安稳与你 提交于 2019-12-25 05:46:06
问题 I maintain a webpage that contains information about my organisation. I have embedded JSON-LD as shown below. { "@context" : "http://schema.org", "@id" : "http://example.com" "@type" : "Organization", "location": { "@type": "Place", "address": { "@type": "PostalAddress", "addressLocality": "Shivalik City, Kharar-Landran Road,", "addressRegion": "Distt. Mohali, Punjab", "addressCountry":"IN", "postalCode":"140307", "streetAddress" : "SCF No. 5" } } } If I want to use "Organisation" in "WebSite