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
When exectuing a mapping with serialization set to jsonld and with a rr:predicateObjectMap that has rr:predicate rdf:type, the resulting jsonld uses http://www.w3.org/1999/02/22-rdf-syntax-ns#type as a key instead of @type.
For example with the mapping:
<#Mapping> a rr:TriplesMap ;
rr:logicalSource [ ... ] ;
rr:subjectMap [
a rr:SubjectMap ;
rr:constant "https://example.com/test/id" ] ;
rr:predicateObjectMap [
a rr:PredicateObjectMap ;
rr:predicate rdf:type ;
rr:objectMap [
a ns2:ObjectMap ;
rr:refernece "somejsonfield" ] ] ;
Thanks for your issue! This is a consequence of using the RDF4J writers, see eclipse-rdf4j/rdf4j#3643. There's not much we can do at this moment (I also cannot find a way, e.g., via JSONLD compacting, to fix this).
When exectuing a mapping with serialization set to
jsonld
and with arr:predicateObjectMap
that hasrr:predicate rdf:type
, the resulting jsonld useshttp://www.w3.org/1999/02/22-rdf-syntax-ns#type
as a key instead of@type
.For example with the mapping:
The jsonld I get as response is:
I would expect this to give me:
The text was updated successfully, but these errors were encountered: