FAQ Database Discussion Community


Creating a JSON-LD Context: Properties missing

jsonschema,json-ld
I try to create my own Context for a project. However, after using Compact some Properties will be missing. Please see this example: { "@context": { "myvocab": "http://localhost:8080/schema.json#", "Information": { "@id": "myvocab:Information", "@type": "@id", "name": "http://schema.org/name", "active": "http://schema.org/Boolean" } }, "Information": [ { "@type": "myvocab:Information", "name": "myCustomName", "active": "true" }...

Is this a correct use of JSON-LD Index Maps?

json-ld
I want to create a collection of people in json-ld format but I need to keep some keys instead of using arrays so I tried this first: { "@context" : { "@base" : "http://www.example.com/data/", "@vocab" : "http://www.example.com/vocab#", "name" : "schema:name", "people" : { "@container" : "@index", "@id" : "people" },...

How to specify supported http operation for a resource in json-ld?

rest,http-method,json-ld
I'm new to JSON-LD and I was wondering if there is any way of specifying supported operation of a resource in JSON-LD without using Hydra's supportedOperation or supportedProperty. Is there any way to specify the context something like : { "@context" : { "@vocab" : "http://www.schema.org/", "data" : "object", "id"...

What are the advantages and disadvantages of pretty printing JSON? [closed]

json,pretty-print,json-ld
Pretty printing JSON will tend to make it heavier than those rendered without pretty print. Beyond that I can't think else of something between pretty printing or not. Let's say you want to provide web services for a public RESTful Web API, will it affect server performance, round-trip time, etc.?...

Can't get Google Now card to trigger from email

html,email,schema.org,google-now,json-ld
I've followed the tutorial here: https://developers.google.com/schemas/tutorials/google-now-cards and I cannot get an event card to show up in my google now. I have noticed that some of the test emails I sent yesterday using this link http://gmail-actions.appspot.com/ (as suggested by the tutorial) have correctly showed the "Modify Reservation" button in Gmail...

Does JSON-LD have to be embedded?

html,google-search,json-ld
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...

Why is the schema.org JSON-LD representation so small?

schema.org,json-ld
When requesting the schema.org vocabulary in JSON-LD form (which can be accomplished via the following request headers): Accept: application/ld+json, application/json;q=0.9, application/javascript;q=0.5, text/javascript;q=0.5, text/plain;q=0.2, */*;q=0.1 The response document (snipped included at the bottom) appears to be very small and incomplete at first blush. It only lists a few attributes, and does...

Schema.org - JSON-LD - Where to Place?

schema.org,json-ld
I am looking to use JSON-LD for schema on a website. (Schema meaning schema.org data.) I know how to write the data but my question is is there a prefered location in my code to insert this data? In other words, should the JSON-LD always be in the head, body,...

Two properties, one type

json-ld
When author and publisher of an article are one and the same, with Microdata it’s possible to markup in the following manner: <span itemprop="author publisher" itemscope="" itemtype="http://schema.org/Organization"> <span itemprop="name">Name of the Organization</span> </span> Is there another option other than the following when using JSON-LD? "author" : { "@type" : "Organization",...

Enabling Google Sitelinks Search Box

schema.org,google-rich-snippets,json-ld
I want to enable Google Sitelinks Search Box for a website. The point is its custom search page is implemented by hash fragment so the JSON-LD data snippet is like this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "name" : "my site", "alternateName" : "example.com", "url": "http://www.example.com/", "potentialAction": { "@type":...

Best JSON-LD practices: using multiple