Hi all,
[Sorry for duplicate]
As part of one of our projects, we are using Jena 1.3 to process RDF
content in different serialization. When creating a RDF/XML output from a
JSON-LD output (created by another process using Jena 1.3), we have
identified an issue with the encoding. More specifically, the encoding of
resources in JSON-LD leads to the information being represented as a
literal in RDF/XML.
Let us assume that we have the following JSON-LD object:
{
"@id" : "http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004#CGLS10",
"@type" : "http://onto.wolterskluwer.com/pci/cpe/ProfileItem",
"source" : "rvctc3.02.02#DE3233",
"identifier" : "CGLS10",
"isPartOf" : "http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004",
"notation" : "GZM",
"prefLabel" : {
"@language" : "en",
"@value" : "Tax losses, excluding film losses, transferred after
consolidation from a trust."
}
}
when we process the RDF statement and output it as RDF/XML, we have
the following:
<rdf:Description
rdf:about="http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004#CGLS10">
<dcterms:identifier>CGLS10</dcterms:identifier>
<skos:notation>GZM</skos:notation>
<dc:source>rvctc3.02.02#DE3233</dc:source>
<dcterms:isPartOf>http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004</dcterms:isPartOf>
<rdf:type rdf:resource="http://onto.wolterskluwer.com/pci/cpe/ProfileItem"/>
<skos:prefLabel xml:lang="en">Tax losses, excluding film losses,
transferred after consolidation from a trust.</skos:prefLabel>
</rdf:Description>
In the Java code, we are encoding
http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004 as a
resource and would have expected rdf:resource to be used to express
the link between the two resources. Looking online, we replaced
model.write($os, "JSON-LD"); by RDFDataMgr.write($os, $model,
RDFFormat.JSONLD) ; thinking that it could resolve the issue (but to
no avail). I saw an issue on JIRA [1] that seem to relate to the same
issue, but I'm not a 100%.
Please advise.
Quentin
[1] https://issues.apache.org/jira/browse/MARMOTTA-306