Skip to content

Commit 1b3a971

Browse files
committed
Attempt to fix #447
1 parent 2ef9cbe commit 1b3a971

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/apicatalog/jsonld/fromrdf/QuadsToJsonLd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,9 @@ Map<String, Object> toObject(String object, String datatype, String langTag, Str
573573
Object convertedValue = null;
574574

575575
// 2.4.
576-
if (!nativeTypes.isEmpty()) {
576+
// avoid cases where the native types mapping does not know about the datatype,
577+
// typically in cases where the datatype is rdf:langString
578+
if (!nativeTypes.isEmpty() && nativeTypes.get(datatype) != null) {
577579

578580
if (datatype != null) {
579581

0 commit comments

Comments
 (0)