977 questions
1
vote
0
answers
187
views
Add dynamic JSON LD to a script tag in Vue 3 using v-html
I have a function that returns dynamically generated JSON-LD as a string. I want to embed it in a script tag in my template.
This works:
<component :innerHTML="myJsonLdFunction(mySearchResult) ...
2
votes
0
answers
497
views
Why Rich-Results doesn't catch generate structured data with javascript
Generate structured data with javascript. But structured data testing tool doesn't catch any data.
Why Rich-Results doesn't catch generate structured data with javascript.
Google Doc Said:
Google can ...
0
votes
0
answers
420
views
Discrepancy in rich results in Google's rich results testing tool vs Google Search Console
I've a added structured data to articles on my website, and for some reason Google's Rich Results test recognizes the JSON LD structure I have in place as valid, but the same article that I do a live ...
2
votes
1
answer
783
views
python rdflib doesn't export @context and @graph when serializing with json-ld
I have created a Graph() in rdflib 6.2.0 and attempting to export it as JSON-LD. My expectation was that I would end up with a @context containing all the namespace prefixes and a @graph containing ...
2
votes
1
answer
592
views
How do I define a custom @context for a verifiable credential?
Here is an example of a verifiable credential I want to create
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"credentialSubject": {
"id": &...
0
votes
1
answer
274
views
schema.org with two domains/websites: main site and shop site
I have two websites: www.mycompany.com and shopmycompany.com (not a subdomain) and would like to publish the relationship between them using schema.org. At present the www.mycompany.com identifies ...
0
votes
2
answers
1k
views
When my server receives a request with the header "Accept: application/ld+json", return a specific file
I want to be able to do the following:
When my Apache server receives a request with the header:
Accept: application/ld+json
I want to return the file "./jsonld", with the header
...
-1
votes
1
answer
107
views
How apply a JS function when some variables names contain same text?
I have some variables in GTM (json-ld script) named « product-price-item-1», « product-price-item-2», «product-price-item-3»…
For each I need to apply a function
function(){
var price = {{product-...
1
vote
1
answer
287
views
xml2 read_html removes closing tags from JSON-LD when using options
xml2::read_html(x) returns the HTML within a linked data JSON object as expected:
library(xml2)
library(magrittr)
library(rvest)
test_ld <- '<script type="application/ld+json">{&...
1
vote
0
answers
521
views
ld+json validator Ajv that examines multiple items in an array if necessary
I'm now trying to create the webpage that checks the syntax validation of ld+json. If a user give a url from the client side, it will be sent to the server side where the program gets its and ...
1
vote
0
answers
83
views
JSON ID validation with default key:value pairs
(language:javascript, backend: node.js)
Hi, I'm currently creating the web-application that receives url in a textarea and get JSON LD(<script type=“application/d+json”) form its website. These ...
0
votes
1
answer
532
views
copyright information for image repositories (schema.org, json-ld)
This is not exactly a technical question, it's about understanding the elements of CreativeWork and ImageObject in schema.org.
When creating structured data for an image, there are some attributes I ...
0
votes
1
answer
217
views
Json LD - Breadcrumbs - Logic for 3 or more path-levels in url
i have this component for add Json LD schema to my pages.
Works great for urls like mysite.com/page or mysite.com/page/subpage... but, if i access to mysite.com/page/subpage/another-page, last schema ...
3
votes
1
answer
1k
views
How do you define and use a schema in JSON-LD?
First, Is there any relation between JSONSchema and JSON-LD?
How do you create a schema in JSON-LD, and use it to validate some JSON-LD instances/records implementing each schema? Like how is schema....
1
vote
1
answer
2k
views
How to reference properties and values in JSON-LD?
I found a few examples of JSON-LD code, such as this blog article:
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "...
1
vote
4
answers
3k
views
Merging multiple JSON Lines files into a single JSON object
I'm trying to merge / reduce many JSON objects and somehow I'm not getting the expected result.
I'm only interested in getting all keys, the values and the number of items inside arrays are irrelevant....
0
votes
1
answer
484
views
Order and nesting of entities in JSON-LD Framing
Given a JSON-LD containing entities of different types, can JSON-LD framing allow to control the order of these entities in the output ? and is it possible to nest (using @nest) some entities to group ...
0
votes
0
answers
346
views
Adding and storing json-ld to an existing website / database
I've seen that there is a vote for a close request because the question is too broad. Let me rewrite the question:
There is a need to add metadata to different database tables (and thus records) which ...
0
votes
1
answer
325
views
Is it possible to reference by @id without Schema.org inlining the object?
I am trying to set up Schema.org on a website, but I have trouble understanding how to use the @id attribute.
I want to specify a Corporation and a WebSite. Here is the code without a reference ...
1
vote
2
answers
4k
views
How to fix "Bad escape sequence in string" in schema description
I have use GTM to tag the schema variables.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
&...
0
votes
0
answers
168
views
How to replace Schema «availability» string with multiple values?
I am noob with structured data implementation and don't have any code knowledge. I have been looking for a week how to solve my problem with "availability" in Google structured data testing ...
0
votes
1
answer
514
views
How to replace comma with a dot in GTM for JSON structured data?
I am noob with structured data implementation and don't have any code knowledge.
I have been looking for a week how to solve a warning with price in Google structured data testing tool.
My prices are ...
0
votes
1
answer
57
views
How to make proper schema.org with many intentions using single page?
I would like to know if there are possible solutions for this matter;
Currently I have a landing page that I want to put several intentions within a page.
Recommendation for best game 2022
Tips and ...
1
vote
1
answer
108
views
Need Schema Microdata example of how to list 'required documention' of a organization or business?
Hello and thank you for the opportunity to post a question. I have searched the Internet, Schema.org and Stackoverflow for an answer to my question. Maybe I am not asking my question correctly... I ...
1
vote
1
answer
531
views
How to read in file with dict objects not separated by commas into dataframe and is this data JSON-LD format?
I have a JSON file (file1.json) that looks this:
{"key":"value","key":"value"}
{"key":"value","key":"value"}
I cant ...
1
vote
2
answers
1k
views
How to apply canonicalization before signing JSON-LD Verifiable Credential?
I want to sign Verifiable Credential in JSON structure with Linked Data (JSON-LD) like below:
{
"@context":[
"https://www.w3.org/2018/credentials/v1",
"...
1
vote
1
answer
136
views
Fiware Upload Image
I want to know how to use NSGI-LD to upload an image even though these static files are not stored in Orion Context Broker or Mongo. I want to know if there is a way to configure the NSGI-LD to ...
2
votes
1
answer
351
views
Standard json ld package with all (generated) java objects from schema.org
I've just started a project where I try to use schema definitions from schema.org like https://schema.org/PostalAddress as a blue print for classes and database tables.
It's not straight forward with ...
0
votes
0
answers
67
views
Unlimited integer value for JSON-LD schema
How would you write an AggregateOffer schema JSON-LD to display an unlimited offerCount parameter?
https://schema.org/offerCount
0
votes
2
answers
733
views
How to extract content between CDATA tags in Java
I managed to get the JSON-LD structured data of a page using Java matcher and pattern -- between
<script type="application/ld+json">
....
</script>
The result I received is a ...
1
vote
1
answer
577
views
WSO2 Micro Integrator throws an error when content type is application/ld+json
I want to call an API that I created with Integration Studio. There are headers that this API uses. API returns ld+json data.When I make a request to the API I created via Postman,gives the following ...
0
votes
2
answers
1k
views
How to get a typed response from json-ld and hydra in Angular 13?
I'm trying to make a paginated table in Angular. For that I'm using a backend which returns a json-ld and hydra context response. I want to map that to a model. Typed responses with regular json works ...
1
vote
1
answer
298
views
JSON-LD for multiple pages (Course Intro page & Lesson pages) that make up a course
I'm unsure how to mark-up my pages that make up a course. Let's say I have the following pages, where the first in each group is a Course Introduction page, and each of the following is a single ...
0
votes
1
answer
177
views
Aliasing "Type" entry of normal JSON to "@type", when value of "Type" is a JSON object
I want to store a normal JSON to a triple store. The normal JSON has its own format for Ids and Types:
{
"Id": "123456",
"Type": {
"Id": "7890"...
1
vote
1
answer
430
views
How do i add Likes Received to Structured Data in JSON-LD for Product Type
I've been trying to figure out a way to add how many likes were received to a product using structured data. Is what I have below correct? Or would the second example be more correct?
Is my usage of [&...
0
votes
1
answer
346
views
How to access element within a structured json-ld or microdata list?
I am trying to access items within a json-ld list/dictionary via Python.
If possible, I would like to know if there is a product and if so, what is the URL, price and availability auf this product.
...
1
vote
1
answer
1k
views
Making Valid JSON-LD Schema & Object Instance
I'm trying to create a graph database for describing power systems and this is my first time using JSON-LD.
Steps so far:
Created a schema according to the following guide
Saved the schema to this ...
3
votes
1
answer
847
views
How to markup (using JSON-LD) a Service to show price within a LocalBusiness in Schema.org?
When I test this code in validator, I am getting WARNING for the property price and the property priceCurrency. How do I fix this?
Thank you.
The property price is not recognized by the schema (e.g. ...
2
votes
1
answer
242
views
Why does Activity Pub make servers wrap "Note" objects into "Create" activities?
What I've gathered is that new posts are published by POSTing a JSON-LD Activity Streams object of type Note to an actor's outbox.
{"@context": "https://www.w3.org/ns/activitystreams&...
0
votes
2
answers
693
views
FIWARE, NGSI-LD - Understand the @context
I am creating a data model for a particular application and I did not start from any base model; since I did not start from any base model, the context below is sufficient, correct?
"@context&...
1
vote
0
answers
2k
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. ...
1
vote
1
answer
691
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)
...
1
vote
1
answer
817
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",
...
1
vote
0
answers
221
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
2
answers
210
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:...
1
vote
1
answer
239
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
381
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 ...
4
votes
1
answer
1k
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
372
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
127
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": &...