Questions tagged [json-ld]
JSON-LD is a generic linking convention for encoding links between arbitrary things.
935
questions
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.
...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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": &...
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-...
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": {
"...
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:...
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 ...
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": [
{
...
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 ...
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="...
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 ...
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 ...
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 ...
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:...
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
{
...
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 ...
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 ...
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 ...
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.
...
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
...
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://...
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 ...
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 ...
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 ...
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 ...
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="...
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 ...
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,...
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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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('...
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": "@...
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 ...
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....