On Fri, Nov 24, 2023 at 11:46 AM Laura Morales <laure...@mail.com> wrote: > > > > in the case that I want to use these URLs with a web browser. > > > > I don't understand what the trouble with the above example is? > > The problem with # is that browsers treat them as the start of a local > reference. When you open http://example.org/book#1 the server only receives > http://example.org/book. In other words it would be an error to create nodes > for n different books (#1 #2 #3 #n) if my goal is also to use these URLs with > a browser (for example if I want to show one page for every book). It's not a > problem with Jena, it's a problem with the way browsers treat the fragment.
If you want a page for every book, don't use fragment URIs. Use http://example.org/book/1 or http://example.org/book/1#this instead of http://example.org/book#1.