afs commented on issue #1663: URL: https://github.com/apache/jena/issues/1663#issuecomment-1337167530
> XMP uses the empty IRI to indicate that the subject of triples is the PDF file itself It can do. The PDF is not on the web until you place it in a webserver (or filesystem) which is when the fiull URL is known. Relative URIs change when you move the resource around. This is URI resolution - same as in the browser. When the HTML say `href="#foo"` it means "the current URL#foo". `href="otherFile.html"` refers to a file in the same directory. `href=""` means _URL of this page_. Move the web page, the URL changes. Relative URIs are resolved with a base URL. There is always a base URI. This isn't RDF - this is URI resolution. If a web document is retrieved, to keep the meaning of the URIs, they are resolved - made absolute. Putting the data in `example.ttl` has moved the data. The base is the filename. You can set the base with `--base=`. This is also passed to the writer which in the case of RDF/XML (only) causes `about=""`. > However, the output isn't what I need and I haven't found an option to riot to get the desired output; i.e., with rdf:about="". `riot --base http://BASE/ --pretty RDF/XML example.ttl` Use any distinctive string for the base. Other formats don't do that. It is a simple matter to use text processing to replace the string "http://BASE/". -- 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]
