paulmillar commented on issue #1663:
URL: https://github.com/apache/jena/issues/1663#issuecomment-1337253569

   Thanks for the feedback @afs.
   
   Your suggestion of using the `--base` option worked well.
   
   Earlier, I had mistakenly used `@base` within the Turtle, but it looks like 
that value isn't available to the RDF/XML output.
   
   Here's `riot` working:
   
   ```console
   paul@celebrimbor:~/Test$ input=example.ttl; riot --base $(python -c 'import 
sys,pathlib; print(pathlib.Path(sys.argv[1]).resolve().as_uri())' "$input")  
--pretty RDF/XML "$input"
   <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="">
       <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've included a short bit of python to generate the corresponding `file:` 
URL, in case someone else finds this recipe useful.


-- 
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]

Reply via email to