From 74ea3eac2c123f56d8aad8a2491c79aef68b2fbc Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Fri, 8 Nov 2024 19:33:07 +0400 Subject: [PATCH] Reformat `Serialize RDF as JSON-LD Algorithm` section a bit --- index.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f860ab89..401bc588 100644 --- a/index.html +++ b/index.html @@ -5156,17 +5156,30 @@

Overview

and generating a JSON-LD document in expanded form for all RDF literals, IRIs and blank node identifiers. + If the useNativeTypes flag is set to true, RDF literals with a datatype IRI - that equals xsd:integer or xsd:double are converted - to a JSON numbers and RDF literals + that equals + + + + based on their lexical form as described in . + + + Unless the useRdfType flag is set to true, rdf:type predicates will be serialized as @type as long as the associated object is either an IRI or blank node identifier.