You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON-LD: a @json-typed term drops null and ignores a @list container #2357
Two edge cases of a term typed "@type": "@json", where the expander departs from JSON-LD 1.1:
null is dropped."p": null under a @json term writes nothing. In the expansion algorithm the @json step runs before the step that drops a null value, so the result is the JSON literal null. In parse_node_value (fluree-graph-json-ld/src/expand.rs) the JsonValue::Null arm runs before the @json arm. Moving the @json arm first also needs a Value::Null case in the rdf:JSON arm of process_literal (fluree-graph-json-ld/src/adapter.rs), which bulk import goes through.
A @list container is ignored. With "@type": "@json", "@container": "@list", "p": [1, 2] is stored as one JSON literal outside any list. The spec result is a list of one element holding the literal. The @json arm returns before the array arm's list wrapping.
Both are obscure. A where pattern under the same term should mirror whatever the insert side writes (parse_property in fluree-db-query/src/parse/node_map.rs).
Activity