On 06/11/13 13:44, Joshua TAYLOR wrote:
On Wed, Nov 6, 2013 at 8:36 AM, Maria Jackson
<[email protected]> wrote:
Just like .n3 format allows for namespaces of the following form:

Base URI resolution.  Not quite the same as prefixes.


     @base <http://example.org/alice/foaf.rdf#>
     <a> <b> <c>.

Is it also possible to write namespaces in .nq format such that jena
accepts them. I mean is the following format valid for  jena (in .nq
format).

     @base <http://example.org/alice/foaf.rdf#>
     <a> <b> <c> <d>.


Notation3 (N3) is a human readable and writable format with lots of
syntactic sugar to make RDF authoring easy.

N-Quads [1] is "a line-based syntax for an RDF datasets", and more
closely related to N-Triples [2].  These just one have triple per
line, and don't support @prefix or @base.  They're very quick to read
and write (by machine), split and combine, though.

[1] http://www.w3.org/TR/n-quads/#n-quads-language
[2] http://www.w3.org/TR/n-triples/



You can use TriG:

@base <http://example.org/alice/foaf.rdf#>
@prefix : <http://example.org/alice/foaf.rdf#>

<d> { <a> <b> :c }

        Andy

Reply via email to