Questions tagged [json-ld]
JSON-LD is a generic linking convention for encoding links between arbitrary things.
867
questions
0
votes
0
answers
20
views
JSON-LD FAQ schema list in nextJS
I'm trying to use the google schema FAQ in the JSON-LD format with nextJs for the seo of a blog.
It's working, I just have one concern.
For a response I have a list. And I need to go back at the lign. ...
0
votes
0
answers
19
views
Json for Nuxt app to return null or valid object
I am setting up SEO for a Nuxt app.
The API can return address: null or a valid address. My question is how do I prevent the TypeError:
Cannot read property 'address' of undefined
when the API ...
0
votes
0
answers
24
views
Alternatives to Codemeta
Are there other standard/specifications that define meta information about a repository besides codemeta? Before committing to the first found option, I'd like to see what others exist or if there's ...
0
votes
1
answer
23
views
Can anyone explain the working of jsonld.compact() ? Wasn't able to find detailed documentation or examples for the compact() method
def process_all_imdb(cursor, imdb):
for i, mid in enumerate(get_movies_to_process(cursor)):
print "// %d movies processed." % i
movie = get_jsonld_from_imdb(imdb, mid)
...
0
votes
0
answers
14
views
Shoipfy Json data parsing error for google markup schema
I am getting this error
"Structured data with syntax errors detected
Invalid items are not eligible for Google Search's rich results." Unparsable structured data
here is the code structured-...
0
votes
0
answers
11
views
GraphQL typedef for JSONLD from mongodb not working
I'm working in jsonld data and it contains following data
'schema:description': some String value,
'schema:license': some String value,
'sosa:Platform': some String value,
'adiiot:MicrophoneID': ...
0
votes
0
answers
22
views
Problem with LiveBlogPosting Schema our article not appear in search like LIVE
We have implemented the LiveBlogPosting scheme in some of our articles with JSON-LD format, but doing many tests we fail to appear in the search results with the LIVE badge.
The Schema validator and ...
0
votes
0
answers
17
views
Google Email MarkUp not working with AWS Pinpoint
We are trying to deliver marked-up content via gmail and other email clients, currently we are trying to send emails from (x@gmail.com) to (x@gmail.com) using microdata format which means that the ...
1
vote
1
answer
43
views
Schema linking via @id results in "Unnamed item" error
I am trying to add Schema structured data to my website.
I have one page for my app with:
{
"@context": "https://schema.org",
"@type": "MobileApplication",
...
0
votes
0
answers
20
views
Do values set in parents propagate down to their children? (schema.org)
I've noticed that many sites duplicate information between parents & children properties in their structured data. Here's an example from Yoast's FAQ page where they specify the inLanguage ...
0
votes
0
answers
27
views
React circular dependency using npm module
I am trying to include Jsonld-streaming-parser in my react project but as soon as I install it using npm and import into my app.js this error occurs:
bootstrap:9 Uncaught TypeError: Class extends ...
2
votes
2
answers
52
views
Integrating Linked Data into the Fiware Ecosystem
I've been reading up on the NGSI-LD standard and its integration into Orion-LD and it all seems pretty straightforward. I've also delved, for other studies, into semantic web technologies (ontologies, ...
1
vote
0
answers
43
views
Generating a Json schema with Google Shopping custom label
I am trying to add a custom label 0 shopping attribute to my Json schema but I don't get the this new attribute on my products.
I tried:
<script type="application/ld+json">
{
...
0
votes
0
answers
29
views
Google Email RentalCarReservation Schema markup not showing up in Calendar
I added a RentalCarReservation schema markup to my email, which has passed all the tests for whitelisting by Google, except that it does not create the calendar event automatically. I do see the event ...
0
votes
0
answers
31
views
JobPosting Structured Data > how to add multiple apply links
I have a "JobPosting" type of structured data installed on a website.
Being the main location where the applicant can apply for the job, there is indeed a "directApply" property ...
0
votes
0
answers
13
views
GMail ConfirmAction not showing
I'm working on a signup system that sends an e-mail to confirm signup. I want to put a Confirm Action button, so I used the example in https://developers.google.com/gmail/markup/reference/one-click-...
0
votes
2
answers
41
views
JSON-LD framing specify ordering of rdfs
@prefix emp: <http://example.com/employee/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
emp:hasName rdf:...
0
votes
0
answers
13
views
specify JsonLdOptions in playground
How do I specify JsonLdOptions on https://json-ld.org/playground/?
Eg. I want to set compactArrays to true.
1
vote
1
answer
36
views
Alias a JSON-LD keyword and simultaneously provide a @context for it
I have the following JSON document (based on GitHub API output):
{
"@id": "https://github.com/octadocs/octadocs",
"license": {
"key": "mit",
...
0
votes
1
answer
70
views
Gatsby SEO using JSON+LD for FAQs page - How to avoid duplicating content?
I am trying to add FAQs structured data(JSON+LD) for one of my blog pages. My blog is powered by Gatsby. I referred to gatsby-plugin-next-seo's guide page. Here is the example presented:
import React ...
1
vote
0
answers
45
views
Specifying type of list objects in the json-ld context
Working with JSON-LD, and trying to create a @context that can be external to the main dataset.
I am trying to specify that all elements in a list are of a specified type, something along the lines of ...
0
votes
1
answer
73
views
Different ld-json LocalBusiness schema on each subpage
I have a company with different local services.
Is it a good practice to put LocalBusiness schema for each service subpage like this:
"@context" : "http://schema.org",
"@type&...
0
votes
0
answers
51
views
Conditional step in json-ld how-to pages
I need to create a json-ld block for a HowTo page. Here's a simple example:
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": &...
0
votes
0
answers
76
views
Converting JSON to JSONLD
I am trying to convert JSON to RDF graphs. For this, I have to initially convert JSON to JSONLD. I am trying to do this by using JSONLD-JAVA. The problem is that I get only empty object as result. I ...
0
votes
1
answer
29
views
IRIs: Shall http or https be used?
While reading the JSON-LD specification I noticed that a lot of vocabularies have http as a protocol instead of https (see section 2. Conformance). This seems odd to me. When opening in a browser ...
0
votes
0
answers
43
views
Parsing error: Missing ',' or '}' on Shopify Store Product Page
I ran my website through a 'Rich Results Test' on Google and it came back with this parsing error. This is the link that was tested: Bike Rack Light
I'm having troubles understanding what part of the ...
0
votes
1
answer
61
views
Quora's HTML doesn't show schema.org, but google shows them in the question/answer section, how?
I'm making a scraper to read question / answer data for students that supports RDFa, Json LD, and Microdata, but Quora confuses me. I need to understand how it's read so that I can read it in my HTML ...
0
votes
1
answer
156
views
ASP.NET Core should not encode attribute value in TagBuilder when rendering Json+Ld script
I wrote an HtmlHelper extension to render Json+Ld script tags.
The reason why I ask you for help is, the type attribute value "application/ld+json" is encoded and looks like "...
0
votes
1
answer
64
views
how to create loop function in schema with google tag manager
"name":"{{post eletitle}}",
"url":"{{Page URL}}",
"sameAs":[],
"dateCreated":["{{post modified time}}&...
1
vote
1
answer
59
views
Detect questions and answer in rich text and add class using JS
I would like to automatically add an FAQ schema depending on the content of a div with id #content in a webpage.
I'm not a developper, I'm building in webflow and learning on the go whenever I need a ...
0
votes
0
answers
51
views
How can I convert CSV files to NGSI-LD format
I need to convert CSV files to NGSI-LD format but I dont know how to. I couldnt really find info either, it seems like you can convert CSV to JSON-LD, but i couldnt find anything regarding NGSI-LD
0
votes
1
answer
45
views
JSON-LD: What is the correct syntax for the Report schema type?
I've used several JSON-LD formatting tools (Example 1, Example 2, Example 3), but none are so specific as to list the schema type Report, and its property reportNumber. The schema type is documented ...
0
votes
0
answers
20
views
how to create dynamic scripts from a script using Jquery?
I have a script where I am using Jquery foreach loop to fetch data, every thing is working good now I want to create a JSON-LD data for google to read it.
so I want to create a script and pass my ...
0
votes
1
answer
38
views
How to match on non-existence of property and not output a default value in JSON-LD framing?
I have a graph of schema:ProductGroup and schema:ProductModel nodes, and I've written a frame to output it in a nested structure, conceptually similar to the library-book-chapter examples. Everything ...
1
vote
1
answer
77
views
Googlebot fails to recognize JSON-LD in the rich results test utility
In my .NET Core Web App I use the library (NuGet package) Schema.NET which appends the following JSON-LD (the library doesn't really matter because it's clearly not its fault):
<script type="...
1
vote
0
answers
47
views
How best to describe material of parts of a schema.org/Product in JSON-LD?
The schema.org/Product type has a material property for “[the] material that something is made from.” I'd like to describe the materials that each part of a product is made from.
For example, suppose ...
0
votes
0
answers
23
views
Schema.org HTML markup vs JSON-LD
Is there a difference between putting the metadata via html or json-js? And, does having duplicate information generate errors?
1
vote
1
answer
224
views
Google Rich Results Test - Item does not support reviews
I was trying out a bunch of things on Google's Rich Results Test, and ran into this issue.
<html>
<head>
<title>Test SEO</title>
<script type="application/ld+...
2
votes
1
answer
68
views
Using structured data markup javascript
In structured data markup, I want to insert publish date with java script.is there a way to do this?
example schema;
<script type="application/ld+json">
{
"@context"...
0
votes
0
answers
64
views
How to add time series data stored in a csv column to rdf graph
I have a set of multiple files that store time series data.
The time series data is stored as a CSV file with multiple large columns.
E.g.:
Time
Force
1
0.1
2
0.2
3
0.2
4
0.3
...
...
I would ...
1
vote
1
answer
38
views
How to compact an @id?
Is it possbile to compact iris in @id via the context?
I didn't found a solution for that, without using @base.
{
"@context": {
"MaxMustermann": "http://...
0
votes
0
answers
125
views
In API Platform: how to abbreviate context when serializing a non-resource to JSON-LD?
I want to serialize an array of entity objects of various classes. They come from a fetch from the abstract repository of single-table inheritance group of entities.
Using API-Platform's serializer, ...
-1
votes
1
answer
59
views
What is the correct structure to represent a list of movie showtimes on the same page?
I am building a website to reference movie showtimes.
The site shows a now playing page with a list of movies, each movie has a page with the upcoming showtimes.
I added some structured data to ...
0
votes
0
answers
62
views
Schema.org/Rich Snippets: Multiple ListItem elements defined on page
While I understand that Schema.org is all about the structure and that nothing prevents me from having multiple elements of the same @type I can't get the following Structured Data to pass on the Rich ...
4
votes
1
answer
213
views
Implementing paywall: to avoid cloaking issues with paywall notice, should I specify it in the HTML or in the JSON-LD?
Question
The "paywall notice" does not seem to be recognized in Google's documentation. I am trying to make it visible to all, yet excluded from the page topic and content, without causing ...
0
votes
1
answer
57
views
Parse application/ld+json in java/android studio
I'm trying to access "datePublished" from here. It is visible in source code as:
<script type="application/ld+json">
{
"@context": "https://...
0
votes
0
answers
52
views
How can I get Eclipse internal browser to display json text?
I am using Eclipse 2020-06. When I give the Eclipse internal browser a URL that returns a json document (content-type mix of application/ld+json and application/json), it wants to save it as a file ...
0
votes
1
answer
258
views
Parsing error: Missing '}' or object member name
When validating my website json-ld tag using the google web console the following parsing error is emitted:
Parsing error: Missing '}' or object member name
Here is my code, because when I tried to ...
1
vote
1
answer
119
views
Can you use HTML entities in JSON-LD?
I am planning to add JSON-LD on some web pages and some have the letter enye (ñ). I had previously replaced the letter with the HTML entity ñ, but later realized the ñ in the JSON-LDwas also ...
-1
votes
1
answer
46
views
When adding a Local Business Schema, is it wrong to have the same @type of business in different Markups of the same page?
I was recently adding some Markups to a Wix website and got a weird recommendation. The site told me that I shouldn't add the same @type (the type field of my JSON-LD format) in two Markups that are ...