Skip to content

Issues parsing url encoded json-ld @id #4025

Description

@fpotier

Version

v6.1.0

Question

RDFParser.create()
        .base("https://example.com")
        .fromString(
            """
              {
                "@id": "dir/filename%20with%20spaces",
                "@type": "http://schema.org/Dataset"
              }
            """)
        .lang(Lang.JSONLD11)
        .build()
        .toModel();

Produces the following warning:

2026-06-30 14:16:15,527 WARNING [com.apicatalog.jsonld.deseralization.JsonLdToRdf] (executor-thread-1) Non well-formed subject [https://example.com/dir/filename with spaces] has been skipped.

I'm not sure if this a bug or if this behavior is expected. jsonld.org playground doesn't seem to produce any error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions