W3C home > Mailing lists > Public > semantic-web@w3.org > July 2015

default prefix without using base/BASE in turtle document

From: Satrajit Ghosh <satra@mit.edu>
Date: Mon, 20 Jul 2015 12:57:54 -0400
Message-ID: <CA+A4wOkokLnrZxH-z199cjF9Grm4k3g64izZsGwBBorKgAHfzw@mail.gmail.com>
To: semantic-web@w3.org

is there a way to write a turtle document that uses its own location as the
base prefix?

say on the server i have:


is there a specification in the language that allows the following
statement in the doc.ttl file

:id :location <some_file>

to expand to:

:id :location <base_url>/some_file

without having the *base* keyword in the document.

basically i'm looking for a way to use relative IRIs such that doc.ttl and
some_file can be moved to any server and still be linked to each other
through the graph.

according to this:


it looks like the specification of base is mandatory.


Received on Monday, 20 July 2015 16:58:41 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:43 UTC