Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rdf4j-dev] JSON-LD option to ignore datatypes from context ?
  • From: "Bart Hanssens (BOSA)" <bart.hanssens@xxxxxxxxxxxx>
  • Date: Thu, 8 May 2025 09:46:27 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bosa.fgov.be; dmarc=pass action=none header.from=bosa.fgov.be; dkim=pass header.d=bosa.fgov.be; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ANJ11jVSHZPNwnAr0EaNue2ma/i1Ud1yR7bVePq5WVA=; b=LLjDK45nB0mqBjSt5GVD5ZJEkKPl1AUDjTUIh6ME3cdDVacGmJmPAQNmmoLfbi7FiuMewOrcXhNpDqtq75NHhn7chE12YJkYof3eG8h0OtUx9xLn5c48jSdpGFAmQc3v0Pzm3gW+JCvaFqkUEniQBI8MJlFLdkq/LjZjJumsKkcv/gN2qDHDJNfi0Voha3prm93ZwS1DM0zbTrr5kjjNOqTbeXIz8khE3MKykmGoJRXCy+wJxhTy1ftxk1Pq9N3BcbFK3IX+FPJLx/Gn400MqkR/vJS4D4EQfKbKLKYm794RXwFaT9AjosmhWLkgGDcMO2590OHzs7abeefL7lt4Ag==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VnepEq883V8CJyOF/sp0t45F8F3F1hX3o5tw1acea4GdbCromsFRMBv1zr9Bdl9j62POT6uP/Dhp9ca8W0R8h3N2No1fEPBV5ZF/6C8+kBayDtAvyrP3AR/M1aq0qvD364v6HrQXSdEXSFjDX95HV8FwJhneEyLUWrtFM8lR1AKUs2tPtk7mAScieQVAdqcKdzgjqTj+9C4TjrEe/c2OpUMILjQadWdFVl2MHGGx2BezmVfrJoN10vTK/WyvLEKEllsTRCXyQf3xfcjUkmyN7c/CaMOlN65L7Shyy51h4JqAOs7lJDzy5KV580wRU2X8W3pSVjhUaLkFwGyy2ZXgiA==
  • Delivered-to: rdf4j-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rdf4j-dev/>
  • List-help: <mailto:rdf4j-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adu//hFg5wm8hnv8TzeBVMge5GNzqg==
  • Thread-topic: JSON-LD option to ignore datatypes from context ?

Hi,

 

as I’m working on a CSVW parser, which uses JSON-LD metadata (default values, URI templates…) to convert CSV to RDF,
it seems that the new JSON-LD parser is pretty smart in converting slightly incorrect JSON values, when a context declares the datatype.

E.g.  string value “5” becomes integer 5 when the context says the datatype is xsd:integer

 

Now, the W3C CSVW spec (and conformance test suite) has some rules on what to do when the JSON-LD metadata contains invalid values.

So my question is, is there an option on the JSON-LD parser to not correct the datatypes based on context, or to remove incorrect values altogether ?

Or should I e.g. create a custom DocumentLoader ?

 

Thanks

 

Best regards

 

Bart


Back to the top