Questions tagged [json-ld]

JSON-LD is a generic linking convention for encoding links between arbitrary things.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

Why and how to use the @graph array?

I'm new to structured data along with schema.org and json-ld, and have been checking out examples and documentation the past few days. I came across the @graph array and it confuses me a lot. ...
Duddy67's user avatar
  • 884
0 votes
0 answers
47 views

Syntactically Correct Rich Data Not Returning Anything In Google Results Tester

I have a page that contains rich data that validates properly with the Schema.org validator. However, Google reports "No rich results detected in this URL." Can anyone tell me what might ...
jasonbourne's user avatar
0 votes
1 answer
26 views

Can I use a json ld schema as a sitemap for react

In react I can use helmet to create a json ld schema with links, is this actually good for seo purposes. Is there a different way to use json ld for this in back end with mongo db and express. Thanks.
dialac's user avatar
  • 21
0 votes
0 answers
17 views

Why is vuemeta not parsing my string into json

My current project is a Gridsome framework using vue-meta to manage my metadata. For the most part, this is working just fine, however, I am having a hard time getting my JSON+LD to render. All the ...
Paul Carlson's user avatar
0 votes
0 answers
45 views

How to combine multiple structured data into one script tag (ASP.NET, JS)

I have multiple JSON-LD markups that are generated by different components on a webpage. These components load at different times. I want to combine these JSON-LD markups into a single tag once all ...
kachi_kachi's user avatar
0 votes
0 answers
59 views

GTM formatting for "Convert null to..."

I use GTM for my schema.org data in JSON-LD. I have a dom element variable named "Product-category", but when the element isn't present it is returning "null" as a string and seems ...
vincents's user avatar
3 votes
2 answers
81 views

CONSTRUCT a DISTINCT set of triples by following paths in SPARQL

I am trying to write a SPARQL query that will extract all relevant triples from a triplestore, using Construct. Essentially, the triplestore is containing a bunch of JSON-LD documents that got parsed ...
qqq's user avatar
  • 1,390
1 vote
2 answers
66 views

JSON-LD SiteNavigationElement : itemListElement property was not recognized by the schema for subpages

I have a question, I am trying to make a JSON-LD code for my webpage using the "SiteNavigationElement" type scheme. However when I try to validate it. It gets rejected with 5 warnings. This ...
Alex's user avatar
  • 1,255
9 votes
1 answer
827 views

Safari throws when parsing JSON-LD

Create an HTML file with this simple code and open it in Safari. <html> <head> <script type="application/ld+json"> [ { "@context": &...
ProblemsOfSumit's user avatar
0 votes
0 answers
27 views

how to get jena to produce json-ld with embedded object, stripping out the blank node id?

How to get json json-ld serialization to produce clean embedded object that strip out blank node identifier such as instead of { "@id" : "biodata:20200005793263#relation-annotation-...
MaatDeamon's user avatar
  • 9,574
0 votes
2 answers
67 views

JSON-LD Expansion

The JSON-LD Playground (an example JSON-LD processor) doesn't expand content (property value) with a "compact IRI" ("example:dog") like this: { "@context": { "...
Biofloat's user avatar
  • 387
1 vote
0 answers
34 views

JSON-LD Frame : Expand on @type

I want to use a json-ld frame to expand on types: Document (or gist: https://gist.github.com/agustaf9/3c4884af3044b0a1508f7f0c6d4d15da): { "@graph": [ { "@id": "ex:...
agustaf's user avatar
  • 683
0 votes
0 answers
97 views

Schema.org 'sameAs' for 2 different types of company web site

I currently have one generic company web site and one product specific web site (for a product that is not featured on the generic web site). Both sites represent the same company. I am currently ...
Putte's user avatar
  • 51
1 vote
0 answers
41 views

How can I nest my list of blank nodes rather than have each one in a different graph

Fuseki returns this from my DESCRIBE query: { "@graph": [ { "@id": "ex:LE-propertyShape", "sh:or": { "@list": [ { ...
agustaf's user avatar
  • 683
0 votes
0 answers
48 views

Google reporting ISO 8601 error in JSON-LD

I am for the first time trying to create a JSON-LD snippet for an event. Google's Webmaster Tools (URL inspection) is reporting an error in the event date/time: Date/time not in ISO 8601 format in ...
Harry's user avatar
  • 11
0 votes
2 answers
78 views

"Error: parse error: trailing garbage" : How do I get content of <script type="application/ld+json"> using R

I'm trying to extract some data for a little research project in real estate economics and would like to get the price, the lot area, the description, the location, etc., out of <script type="...
chappe29's user avatar
1 vote
1 answer
38 views

Google event snippet doesn't show buy link

I have a web page to sell movie theatre tickets and I added Json LD metadata to publish events. Google search console is showing events correctly and I can see the snippet when searching for my movie ...
Tobia's user avatar
  • 9,295
0 votes
1 answer
101 views

Why is conversion from JSON-LD to Turtle in rdflib not working?

I am trying to make a simple script which converts JSON-LD to Turtle, and from Turtle to JSON-LD on demand. So far, I was using rdflib, and the Turtle -> JSON-LD part is working fine. I give some ...
Robin's user avatar
  • 135
0 votes
0 answers
55 views

Linked Data Signature using Javascript Verification Error

import { Ed25519VerificationKey2020 } from "@digitalbazaar/ed25519-verification-key-2020"; import { Ed25519Signature2020 } from "@digitalbazaar/ed25519-signature-2020"; import ...
Tanjin Alam's user avatar
  • 1,986
2 votes
1 answer
99 views

Idiomatic way to represent pagination in JSON-LD / semantic web?

I am working on an API that serves data that is represented as linked data. Currently responses are JSON-LD graphs. So far the API simply serves objects like this: { "@context": "https:...
qqq's user avatar
  • 1,390
1 vote
1 answer
72 views

Granular control over JSON-LD embeddings

Given the following JSON-LD { "@graph": [ { "@id": "Alice", "https://schema.org/givenName": "Alice", "https://schema.org/...
Oliver's user avatar
  • 57
0 votes
2 answers
265 views

how set dynamically jsonld in vue 3 ssr

When i try pass it by component is='script' type='application/ld+json' it has error: "TypeError: Cannot convert a Symbol value to a string", but when i pass it by teleport it works but only ...
Anton R's user avatar
  • 71
0 votes
0 answers
31 views

Structured data for chord progression

I want to add structured data for chord progression. [Chorus] F C Welcome to the Hotel California. E7 Such a lovely place, (such a ...
Nishantha's user avatar
  • 6,165
1 vote
0 answers
36 views

JSON-LD framing : Is it possible to use @nest in @context framing to wrap properties in a "section"?

(followup of Order and nesting of entities in JSON-LD Framing) I would like to use @nest in JSON-LD framing to group related properties inside a "section" in my output section. Input JSON-LD ...
ThomasFrancart's user avatar
0 votes
1 answer
107 views

How to skip JSON-LD Data Structure from Blogger Template and Use the Structure Present on Post Page

I have added a NewsArticle Data Structure JSON-LD in the Template file of my Blogger Site. I want that JSON-LD to not work if there is a JSON-LD already present on the Post Page. I have a blog based ...
Lucky Singh's user avatar
1 vote
1 answer
54 views

How to set up the ID of a json element in rdflib

Context I am loading a rdf file in rdflib, and am trying to export it in json-ld. The original rdf looks like: <cim:Substation rdf:ID="_1234"> <cim:IdentifiedObject.name>A ...
Guillaume's user avatar
  • 2,517
0 votes
2 answers
148 views

Google structured data - images with multiple aspect ratios 1:1, 16:9 and 4:3

How to handle multiple image sizes? In the Organization I have the same image with three different aspect ratios: 1:1, 16:9, 4:3 How is the correct way to add them in the JSON Linked Data format? { ...
clarkk's user avatar
  • 27.1k
0 votes
0 answers
28 views

How to create a page listing Schema.org news

As Schema.org "https://example.com/news" I have a page called card and in this page there are photos, title and short description of the news as card, there is also a read more button. There ...
kralyolda's user avatar
  • 115
1 vote
2 answers
78 views

Does @id in JSON-LD need to be globally unique?

Question Is it necessary for a provider of JSON-LD to make sure that the @id of a node is always globally unique or is it only necessary for @id to be unique inside a JSON-LD document? Example Let's ...
Stephan Kulla's user avatar
0 votes
2 answers
85 views

Missing '}' or object member name in JSON-LD

I have already tried solutions that were mentioned here I've already countless checked for trailing commas, white spaces, uneven curly bracket. But none of them worked. Can someone help what is wrong ...
linfiesto's user avatar
1 vote
0 answers
113 views

How to add event to calendar from an email automatically using json ld schema markup in the email?

Stack Overflow community! I'm currently working on a project where the event details should be added to the recipient's calendar when recieved the email with event details according to schema markup. ...
Mohan's user avatar
  • 11
2 votes
0 answers
58 views

Blazor server side HeadOutlet issues

I use HeadOutlet to have some components write metadata on the head section of my Server side app pages, but I am facing two issues: Trying to place json-ld Structured Data for SEO purposes on the ...
Matias Masso's user avatar
  • 1,730
1 vote
0 answers
43 views

Create a JSON-LD for a Chrome Web Store extension

How would one go about generating a JSON-LD block for a Chrome Web Store extension? The source is a regular website and the linked extension should be found on the store. The example found at https://...
Dude's user avatar
  • 131
0 votes
1 answer
33 views

How to hide the numeric array keys in generated JSON-LD?

I am trying to add JSON-LD to my website. I have the JSON array. But it is invalid because of the array keys. I am appending the array data as follow: $data[] = $extra_array_data; I would assume that ...
Alex's user avatar
  • 1,255
0 votes
1 answer
45 views

Is it possible to define a discriminated union in a SHACL schema?

Is it possible to define a discriminated union in a SHACL schema? Here is a contrived example; I only want to enforce the minCount: 1 constraint on the ex:tail property if the ex:type property has the ...
hally9k's user avatar
  • 2,473
1 vote
1 answer
133 views

Validating JSON-LD in Python (Thing Descriptions)

I'm developing a Thing Description Directory in Python (Web of Things) and i need to validate the Thing Descriptions that register to the directory, they are JSON-LD documents and i have to check if ...
Matteo Bellin's user avatar
0 votes
0 answers
56 views

Annotated emails in the Gmail Promotions tab not supporting dates in .toISOString() format

I'm using nodemailer and I'm trying to get my promotion emails annotated and highlighted in the Gmail promotions tab. Here's the example: 'use strict'; const nodemailer = require('nodemailer'); const ...
Luka Brkanić's user avatar
0 votes
0 answers
33 views

JSON-LD for Events - Automation?

is it possible to automate the JSON-LD Script? I want to fill some fields with data from a JSON file. Example for div or span ids this is working fine. <span class="tag" id="...
bkoenig's user avatar
  • 33
1 vote
1 answer
35 views

Specify subframe for elements of id-value property map in a JSON-LD frame

I am trying to write a JSON-LD frame that serializes some RDF documents in a consistent way. Currently, the RDF is being parsed out from JSON-LD that is correctly structured and I would like the frame ...
qqq's user avatar
  • 1,390
1 vote
1 answer
311 views

Schema.org snippet in JavaScript with JSON-LD syntax not detected

I wrote the schema.org of my website in JavaScript with JSON-LD syntax. When I test on Google's test site, it works... but on schema.org's test site, it doesn't. When I copy/paste my shema.org by hand,...
a_zero's user avatar
  • 71
1 vote
2 answers
295 views

Schema.org - an Organization schema that references the parent organization schema (of another website)

Our agency has a website where I implemented an Organization schema in the form of JSON-LD. I want to create an Organization schema for each of the websites we own, but also to add a reference (...
Nadnad's user avatar
  • 11
2 votes
1 answer
132 views

Can multiple JSON-LD Schema.org tags represent the same 'object'?

I have a site where the client is requesting JSON-LD (not microdata) schema.org tags. One of the ones they want is a base 'WebPage' tag on every page, with some information about the things we have on ...
ChristopherBass's user avatar
1 vote
0 answers
475 views

Converting JSON data to JSON-LD and creating an RDF graph using pyld and rdflib - issues with defining the context

I have a problem with handling JSON data from different sources. So, my plan was to use JSON-LD, and store the data from a source in RDF so that I can do some analysis work on them. But I don't know ...
Derk's user avatar
  • 11
0 votes
0 answers
46 views

Json-ld data does not help my website to be foound on google by name or email

I've been learning lately about json-ld data and its goods at the time of getting some attention from google. I had before simple websites with some html, js and css and google picked them up quickly ...
Marcos Di Paolo's user avatar
0 votes
0 answers
101 views

Problems with Dynamic Schema Markup

I'm having trouble with making my schema markup dynamic, I've formatted it with the guidelines but very time I validate the code, I get an error saying "JSON-LD Syntax error: value, object or ...
DevX's user avatar
  • 1
0 votes
1 answer
196 views

JSON-LD product page markup for multiple currencies?

I was wondering if there is a working example of a product page with multiple "priceCurrency" and "price". If we have two regions and prices for them and one domain is it possible ...
stephdev's user avatar
1 vote
0 answers
46 views

Rdflib and activitystreams

so I'm investigating rdflib to use with ActivityStreams. My current main goal is to input an Object and get the same one back! My current try looks like this import rdflib G = rdflib.Graph() G.parse('...
Helge's user avatar
  • 111
0 votes
0 answers
36 views

Create an interim blank node in JSON-LD

This JSON-LD document: { "@context": { "@base": "local://", "@vocab": "local://", "class": { "@type": "@...
Anatoly Scherbakov's user avatar
1 vote
3 answers
255 views

Parse json-ld generated by Apache Any23 into Java Pojo using Jackson

I want to map structured data (microdata, jsonld) extracted from html text into a Java POJO. For extraction I use the library Apache Any23 and configured a JSONLDWriter to convert the structured data ...
wero026's user avatar
  • 1,227
1 vote
0 answers
90 views

Is "Organization" schema recognized by Google?

Google doesn't support organization schema as far as I have seen. Local Business schema works but organiozation schema is just recognized as local business schema for some of the examples on schema....
Muhammad furqan Ahmed's user avatar

1
2 3 4 5
19