You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Laura Morales <la...@mail.com> on 2021/09/10 23:47:49 UTC

riot --base option does not work with single letter URI schema

This command

    riot --base="x:" --syntax=ttl --output=nt <( echo "<alice> <knows> <bob> ." )

returns this triple

    <file:///home/user/alice> <file:///home/user/knows> <file:///home/user/bob> .

instead of

    <x:alice> <x:knows> <x:bob> .

Riot version 4.1.0.

Re: riot --base option does not work with single letter URI schema

Posted by Laura Morales <la...@mail.com>.
> What version of Jena are you using? They all seem to work for me with 3.15.0

$ riot --version
Jena:       VERSION: 4.1.0
Jena:       BUILD_DATE: 2021-05-31T20:32:25+0000

Re: riot --base option does not work with single letter URI schema

Posted by Martynas Jusevičius <ma...@atomgraph.com>.
OK, sorry, I see it now :)

What version of Jena are you using? They all seem to work for me with 3.15.0:

riot --base="isbn:" --syntax=ttl --output=nt <( echo "<0123>
<http://example.org/title> <http://example.org/Foobar> ." )
<isbn:0123> <http://example.org/title> <http://example.org/Foobar> .

riot --syntax=ttl --output=nt <( echo "base <isbn:> <0123>
<http://example.org/title> <http://example.org/Foobar> ." )
<isbn:0123> <http://example.org/title> <http://example.org/Foobar> .

riot --syntax=ttl --output=nt <( echo "base <n:> <0123>
<http://example.org/title> <http://example.org/Foobar> ." )
<n:0123> <http://example.org/title> <http://example.org/Foobar> .

riot --base="n:" --syntax=ttl --output=nt <( echo "<0123>
<http://example.org/title> <http://example.org/Foobar> ." )
<n:0123> <http://example.org/title> <http://example.org/Foobar> .

On Sat, Sep 11, 2021 at 10:31 AM Laura Morales <la...@mail.com> wrote:
>
> No no I mean "schema" indeed. Let me give a better example.
>
> These work:
>     riot --base="isbn:" --syntax=ttl --output=nt <( echo "<0123> <http://example.org/title> <http://example.org/Foobar> ." )
>     riot --syntax=ttl --output=nt <( echo "base <isbn:> <0123> <http://example.org/title> <http://example.org/Foobar> ." )
>     riot --syntax=ttl --output=nt <( echo "base <n:> <0123> <http://example.org/title> <http://example.org/Foobar> ." )
>
> This doesn't:
>     riot --base="n:" --syntax=ttl --output=nt <( echo "<0123> <http://example.org/title> <http://example.org/Foobar> ." )
>
>
> > Sent: Saturday, September 11, 2021 at 9:15 AM
> > From: "Martynas Jusevičius" <ma...@atomgraph.com>
> > To: users@jena.apache.org
> > Subject: Re: riot --base option does not work with single letter URI schema
> >
> > You probably mean “prefix” not “schema”?
> >
> > And the result should be
> >
> >     x:alice x:knows x:bob
> >
> > Prefixed URIs don’t get the <> brackets.

Re: riot --base option does not work with single letter URI schema

Posted by Laura Morales <la...@mail.com>.
No no I mean "schema" indeed. Let me give a better example.

These work:
    riot --base="isbn:" --syntax=ttl --output=nt <( echo "<0123> <http://example.org/title> <http://example.org/Foobar> ." )
    riot --syntax=ttl --output=nt <( echo "base <isbn:> <0123> <http://example.org/title> <http://example.org/Foobar> ." )
    riot --syntax=ttl --output=nt <( echo "base <n:> <0123> <http://example.org/title> <http://example.org/Foobar> ." )

This doesn't:
    riot --base="n:" --syntax=ttl --output=nt <( echo "<0123> <http://example.org/title> <http://example.org/Foobar> ." )


> Sent: Saturday, September 11, 2021 at 9:15 AM
> From: "Martynas Jusevičius" <ma...@atomgraph.com>
> To: users@jena.apache.org
> Subject: Re: riot --base option does not work with single letter URI schema
>
> You probably mean “prefix” not “schema”?
> 
> And the result should be
> 
>     x:alice x:knows x:bob
> 
> Prefixed URIs don’t get the <> brackets.

Re: riot --base option does not work with single letter URI schema

Posted by Martynas Jusevičius <ma...@atomgraph.com>.
You probably mean “prefix” not “schema”?

And the result should be

    x:alice x:knows x:bob

Prefixed URIs don’t get the <> brackets.

On Sat, 11 Sep 2021 at 01.47, Laura Morales <la...@mail.com> wrote:

> This command
>
>     riot --base="x:" --syntax=ttl --output=nt <( echo "<alice> <knows>
> <bob> ." )
>
> returns this triple
>
>     <file:///home/user/alice> <file:///home/user/knows>
> <file:///home/user/bob> .
>
> instead of
>
>     <x:alice> <x:knows> <x:bob> .
>
> Riot version 4.1.0.
>

Re: riot --base option does not work with single letter URI schema

Posted by Andy Seaborne <an...@apache.org>.

On 11/09/2021 18:09, Laura Morales wrote:
>> It looks like a MS Windows drive letter, which then isn't handled very
>> gracefully.
> 
> I'm not using Windows though.

It _looks like_ a MS Windows drive, then isn't handled properly.
Jena has file handling to cope MS Windows.

JENA-2160 - improved, though there simply isn't a perfect answer.

     Andy

Re: riot --base option does not work with single letter URI schema

Posted by Laura Morales <la...@mail.com>.
> It looks like a MS Windows drive letter, which then isn't handled very
> gracefully.

I'm not using Windows though.

Re: riot --base option does not work with single letter URI schema

Posted by Andy Seaborne <an...@apache.org>.
It looks like a MS Windows drive letter, which then isn't handled very 
gracefully.

     Andy

On 11/09/2021 00:47, Laura Morales wrote:
> This command
> 
>      riot --base="x:" --syntax=ttl --output=nt <( echo "<alice> <knows> <bob> ." )
> 
> returns this triple
> 
>      <file:///home/user/alice> <file:///home/user/knows> <file:///home/user/bob> .
> 
> instead of
> 
>      <x:alice> <x:knows> <x:bob> .
> 
> Riot version 4.1.0.
>