FAQ Database Discussion Community


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...

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...

How to model directories and files using schema.org types with JSON-LD syntax?

schema.org,json-ld
I'm trying to model the concept of folders (or directories) and files. Folders can contain files, or other folders (arbitrary nested recursive structure, like on your typical filesystem). I would ideally like to start with a schema.org context and base type, and extend that to represent these entities. For various...

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",...

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" }...

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":...

Why does Thunderbird add “” to an html E-Mail?

html,email,microdata,thunderbird,json-ld
I have been searching for an answer to my question on google and on stackoverflow. Haven't found anything.. I try to send the following JSON-LDand Microdata schemas as an E-Mail to my Gmail-account: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Person", "name": "Max Mustermann", "affiliation": "Musterfirma", "telephone": "01234/56789", "url": "http://example.com/" }...

How to cleanly specify predicate-specific URI scopes in JSON-LD?

json-ld
I'm starting with this JSON-LD document (json-ld playground), where the meat looks like this: "from": [ "protein:15718680", "protein:157427902" ], "protein_gene": [ "gene:522311", "gene:3702" ] Now, the "protein_gene" predicate always takes gene identifiers as values. Since there can be hundreds of these, what I really want in the JSON is this:...

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" },...

Best JSON-LD practices: using multiple