977 questions
0
votes
1
answer
66
views
How to write rdf4j Model to a string while preserving the original structure?
I have a plain java application that consumes a jsonld structured file, converts it to a Model class from rdf4j framework and then writes it as a string. The demo code is as so:
public static void ...
1
vote
1
answer
79
views
Using JSON-LD with multi offers that each have multi addons
When using google's Rich Results Test cant get past these errors:
I am getting Parsing error: Missing '}' or object member name error with the code here.
if I add " "offers" : {"
...
2
votes
1
answer
99
views
What's the proper JSON-LD Syntax for an Array of Objects?
The app I'm developing has an API to fetch a single object that I describe in JSON-LD like so:
{
"@context": {
"@vocab": "https://schema.org/",
"head":...
0
votes
1
answer
55
views
JSON-LD value objects with native JSON types in @value
I am trying to represent a typed value (numeric in this case, but it is the same for boolean) in JSON-LD in such a way that would allow my JavaScript code to work with it easily. If I declare the ...
0
votes
0
answers
51
views
Google’s Rich Results Test
I have a blog on Blogger. (https://www.newmyroyals.com). When I test the homepage using Google’s Rich Results Test tool, it shows a 'BlogPosting' structured data result. However, when I test any ...
0
votes
1
answer
62
views
rdflib removes duplicate values for a jsonld property which is an array of values
I have a jsonld representation of triples :
{"@id": "some-id",
"@type": "Row",
"attendance": 74439,
"...
1
vote
1
answer
190
views
Issue with Schema.org snippet in Google Search Console: Either 'offers', 'review' or 'aggregateRating' should be specified
I have an issue in Google Search Console that says that my schema is not valid for rich snippets cause of the upcoming issue (but schema is valid across validators):
Either 'offers', 'review' or '...
0
votes
0
answers
39
views
Can the same valid code show Review Snippet on Google for homepage but not for other pages?
I am not able to understand why the same valid code shows Review Snippet on Google for homepage but not for all other pages and there's no resources out there explaining why this happens.
If you ...
1
vote
2
answers
115
views
Why there is no add to calendar option pop up when I added json-ld markup for reservation
I am testing schema.org Json-ld markup for email using self mailing as mentioned, This is the sample schema I'm using along with html content sent in mail. I'm sending mail using gmail smtp, and ...
1
vote
0
answers
152
views
Where to Add JSON-LD Schema Markup Code in Shopify Theme?
{
"@context": "https://schema.org",
"@type": "Store",
"name": "Mosami",
"url": "https://mosami.in",
"...
0
votes
0
answers
42
views
why isn't json-ld used for rdf vocabularies other than schema
I am relatively new to rdf and semantic web in general. I am seeing that there are a few different syntaxes for embedding rdf data in web pages/expressing rdf in general: microdata, idfa and json-ld. ...
-1
votes
1
answer
268
views
RatingCount and ReviewCount "should be the same" advice wrong?
I am working on a web page whose visibility for Google is very important to the client. I have included a JSON-LD section on the page that contains a number of reviews and a number of ratings in an ...
1
vote
1
answer
391
views
Rich Results Test URL crawled successfully but no Items detected
I pasted a URL to the Rich Results test, and it was successfully crawled but returns No Items Detected.
If I copied the html content and pasted that in it shows the JobPosting correctly.
Example web ...
1
vote
0
answers
63
views
Invalid integer in property "price" (in "offers")
I've created structured data for Car (car rental website) and Google Search Console is throwing this error:
Invalid integer in property "price" (in "offers")
for this piece of ...
0
votes
1
answer
53
views
Designing and Registering a Command in FIWARE NGSI-LD for Data Download from a URL
I am working with FIWARE, specifically with NGSI-LD. My objective is to create an actuator to which I can send a command to download information from a URL.
To achieve this, I want to design the ...
0
votes
1
answer
70
views
Error creating an Actuator device in an IoT Agent (FIWARE | NGSI-LD)
As mentioned in the title, I am working with FIWARE, specifically with NGSI-LD. To do this, I have deployed a series of containers using Docker Compose: ld-context (this is the container to provide ...
0
votes
1
answer
44
views
How can I remove parent component's script tag in child component layout.tsx?
I'm using app router from next.js.
I'd like to add jsonLd datas for both pages, "/blog" and "/blog/[searchKeyword]".
but I met some problems about this process.
blog > layout....
1
vote
2
answers
121
views
When to Include URLs in Structured Data Markup?
I'm having trouble figuring out when to add https://schema.org/ in the json-ld.
Issue
For structured data properties, such as @type or itemCondition, which is the correct format:
"@type": &...
0
votes
2
answers
111
views
How to encode diacritics in JSON-LD?
In JSON-LD values I have german characters öäüß - company name, address and so on.
Should they be encoded on any way? Like with RFC1738, öäüß -> %C3%B6%C3%A4%C3%BC%C3%9F
Or no need?
2
votes
0
answers
733
views
How to Handle Product Schema When No Price is Available
One problem I’m facing, which many others are also struggling with and there isn’t a clear source to resolve it, is regarding products that don’t have a listed price (the product is available but the ...
1
vote
0
answers
52
views
JSON-LD in MarkLogic SPARQL Query
How can I "Accept" JSON-LD as the output format of a CONSTRUCT or DESCRIBE query in MarkLogic?
The documentation doesn't seem to specify anything about JSON-LD.
0
votes
0
answers
59
views
How to find the top level objects
Give I have JSON-LD with an array of objects or a "@graph" of objects.
How can I find the list of objects at the top level?
The array of objects may be connected (referencing each other) or ...
0
votes
1
answer
50
views
Imposing a specific structure for building IRIs in JSON-LD schema
I am fairly new to JSON-LD and currently getting familiar with the concept of IRI. I have a schema, saying a very simple one:
{
"@context": {
"ex": "http://example.com/&...
1
vote
0
answers
72
views
How to include base64-encoded PDF content in JSON-LD?
I'm working on a project where I need to include base64-encoded PDF content as part of a JSON-LD document. I have a basic structure for my JSON-LD, but I'm unsure how to properly format the "...
0
votes
2
answers
424
views
Specify [shipping] in JSON-LD Product for Google
I am implementing JSON-LD product data on an e-commerce website and having trouble specifying product level shipping cost. Google's Merchant Center document states that a [shipping] attribute may be ...
1
vote
1
answer
95
views
How do correct my JSON-LD syntax to give me the desired expansion?
Context
I am trying to collect a set of requirements and record them in JSON-LD format. The JSON-LD document will serve as a configuration file to drive automated data analysis in the short term. In ...
1
vote
0
answers
474
views
How do I correctly define JSON-LD shippingDetails -> shippingDestination to exclude a list of states?
We have a business that can only ship product within California due to licensing restrictions. I am trying to define a JSON-LD Product that states that we ship to California and do not ship in all ...
0
votes
1
answer
38
views
Usage of @ in JSON LD data
While seeing examples of JSON-LD Documents, I see some keys that start with @. Is there any rule that dicatates which of the keys should start with @ ?
In this example, why might one choose to use @...
1
vote
0
answers
83
views
Is the implementation of the medical specialty property in json-ld schema markup correct?
Is the use of medicalSpeciality property in Physician type schema correct? If it is not correct can someone tell me what is the correct method?
Also, what to do if the medical speciality is not ...
0
votes
0
answers
70
views
JSON-LD automatic StartDate and EndDate
my site have following JSON-LD code:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name&...
1
vote
0
answers
90
views
schema.org FAQPage and google
I'd like to add FAQPage json+ld to my website, but i found that the definition for this tag on google examples and schema.org documentation are different:
https://developers.google.com/search/docs/...
0
votes
0
answers
147
views
How to convert the JSONLD schema to Class objects in JavaScript application?
I would like to convert a JSONLD document into a Class and properties in JavaScript. Something similar to Java where we have a class with variables and I want to achieve the similar thing for my ...
0
votes
0
answers
143
views
How to structure json-ld for export/import
I am working on FlashCards app and I want to use json-ld for importing/exporting data from the app. I created simple structure but I am not sure if what I have done is valid and the links between the ...
0
votes
0
answers
66
views
Does the language used in schema need to match the HTML lang attribute?
I have a multi-language site. Each language has its own language specific url with the HTML lang attribute set to match the language the content is written in.
Do I need to use schema that matches the ...
1
vote
0
answers
84
views
Is the application of medicalSpeciality and additionalProperty in schema of type Physician correct?
In the below schema of type Phycisian is the use of medicalSpeciality and additionalProperty correct?
In the Physician schema type there is no Qualification property.
If not what should I do to ...
1
vote
1
answer
69
views
Why is the url property invalid in schema?
I am trying to create an organization schema for the company given below
However, I am getting an error
I have tested the below code on Google Rich Results Testing Tool
<script type="...
1
vote
0
answers
144
views
RDFlib serlialization in json-ld without blank node ids
To construct the graph with rdflib I use blank nodes, the IDs of which I do not want to serialize. I
To construct a graph:
from rdflib import URIRef, Graph, XSD, BNode, Literal, RDF
g = Graph()
bnode ...
0
votes
1
answer
668
views
Safari parsing JSON-LD error on 'telephone' ('Object.prototype.hasOwnProperty.call(e,"telephone")')
Since we enabled Sentry for our application front-end, which we build with TALL stack, we get a lot of errors from Safari browsers. Which I cannot replicate.
First we got the error like this Safari ...
0
votes
0
answers
66
views
JSONLD Issue: Works via IP but Fails with Domain/Sub-domain IN next JS 14
Encountering a peculiar scenario with JSONLD: functions fine via IP address, but not through domain. Details: accessing via IP (e.g., http://xxx.xxx.xxx.xxx/) works, but fails with domain (e.g., http:/...
0
votes
1
answer
110
views
Python - rdflib - json-ld - why does it not parse the nested triples
I have the following code, parsing the JSON-ld file below. However, it only outputs the top-level triples and not the other, such as the name of the WebPage
from rdflib import Dataset
from rdflib....
1
vote
1
answer
46
views
How to represent multiple steps in howPerformed property in SurgicalProcedure schema type in JSON-LD?
I am writing a schema of type SurgicalProcedure in which there are steps on how to perform surgery.
How should it be represented in JSON-LD format?
The property I want to use is howPerformed.
Here are ...
0
votes
2
answers
60
views
Can only use @graph keyword for schemas of same type?
I have a webpage that has three things:
1.A medical condition
2.A doctor
3.Review Section
4.Three Videos
I want to write a schema for the page
I have written the schema below but left information ...
0
votes
1
answer
122
views
Is it possible to directly run SPARQL query against webpages with JSON-LD data?
For example, this page https://www.bobdc.com/blog/json-ld/ , when viewing page source, there is:
<html>
<head>
<script type="application/ld+json">
{
&...
1
vote
1
answer
79
views
Why does google rich snippets show: "Item does not support reviews"? Is the the implementation of "@graph" keyword correct?
Is the following schema correct?
Should I make any changes?
If I do have to make any changes how should I make them?
<script type="application/ld+json">
{
"@context": &...
1
vote
1
answer
57
views
How to use procedureType in schema of SurgicalProcedure type?
The type MedicalProcedureType is minimally noninvasive.
How should the code be added?
<script type="application/ld+json">
{
"@context": "http://schema.org",
...
-1
votes
1
answer
212
views
Multiple JSON-LD nodes for the same page
I'm trying to do a proper JSON-LD markup for my page. I'm working on NextJS (injecting JSON-LD via dangerouslySetInnerHTML), so I inject raw stringified JSON into the render.
Let's say my page wants ...
1
vote
0
answers
53
views
Expressing in json-ld the type of a value embedded within an id
In the following example the trailing part of @id is computed from the data:
{
"@context": "http://vocab.example/0.1/",
"@type": "Foo",
"foo": &...
1
vote
0
answers
59
views
How to add Person to ContactType?
I have an array of multiple contactTypes with the same telephone number, like this:
"contactPoint": {
"@type": "ContactPoint",
"areaServed": "DE&...
0
votes
2
answers
1k
views
Implementation of "@graph" keyword in JSON-LD markup-schema
Is the application of "@graph" keyword in the code below correct?
What I am trying to do here is to establish a relation between the product "Wire Rope" and the types of wire ropes....
0
votes
1
answer
98
views
Schema.org markup json-ld for product and types of product
Does the below code consists of two structured data or one? Can I write the code using schema type "Product Group" and "hasVariant" because "SS wire rope", "PVC ...