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

   If the data is about the PDF file, can't you provide the URL of the PDF
   file as --base?
   
   On Mon, Dec 5, 2022 at 1:10 PM Paul Millar ***@***.***> wrote:
   
   > Thanks @rvesse <https://github.com/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:
   >
   > @prefix dc:  <http://purl.org/dc/elements/1.1/> .@prefix rdf: ***@***.*** 
<file:///home/paul/Test/example.ttl> .
   > <>
   >     dc:description  "An example that demonstrates a ***@***.***;
   >     dc:title        "An example ***@***.***;
   >     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:
   >
   > ***@***.***:~/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>  ***@***.***:~/Test$
   >
   > I'll try giving the first idea a go, when I get a spare moment.
   >
   > Cheers,
   > Paul.
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/jena/issues/1663#issuecomment-1337235396>, or
   > unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AAGPM5QOZGXEUZGSF4R7TUTWLXLSNANCNFSM6AAAAAASTTXGDQ>
   > .
   > You are receiving this because you are subscribed to this thread.Message
   > ID: ***@***.***>
   >
   


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