paulmillar commented on issue #1663: URL: https://github.com/apache/jena/issues/1663#issuecomment-1337235396
Thanks @rvesse for the feedback and correcting my terminology! On your point that: > Note that the documentation explicitly states that relative URIs are generally "bad data" because of the issues that you outline about their resolution varying It seems that XMP encourages this "bad data" (although I haven't checked this against the XMP spec.). Assuming that XMP requires the subject to be the empty relative URI, one possible solution might be to include a placeholder absolute URI within the Turtle and replace this placeholder absolute URI with the empty string as a post-processing step. Some kind of post-processing is needed anyway, as the RDF/XML needs to be embedded within a `<x:xmpmeta xmlns:x="adobe:ns:meta/">` element. I quickly gave the second idea a try and it didn't work for me, although I may have done something wrong. Here's the modified Turtle file: ```turtle @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @base <file:///home/paul/Test/example.ttl> . <> dc:description "An example that demonstrates a problem."@en; dc:title "An example title"@en; dc:creator "Jane Doe"; dc:date "2022-12-04"; dc:language "en-GB"; . ``` (note, the file is now in a different directory) The RDF object is (unfortunately) still resolved: ```console paul@celebrimbor:~/Test$ riot --formatted=RDF/XML example.ttl <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="file:///home/paul/Test/example.ttl"> <dc:language>en-GB</dc:language> <dc:date>2022-12-04</dc:date> <dc:creator>Jane Doe</dc:creator> <dc:title xml:lang="en">An example title</dc:title> <dc:description xml:lang="en">An example that demonstrates a problem.</dc:description> </rdf:Description> </rdf:RDF> paul@celebrimbor:~/Test$ ``` I'll try giving the first idea a go, when I get a spare moment. Cheers, Paul. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
