construct / turtle

16 views
Skip to first unread message

Samuel Morello

unread,
Feb 8, 2012, 5:18:56 AM2/8/12
to 4store-support
Hi,

When using CONSTRUCT, is it possible to return "pretty print" turtle like this :

@prefix foo: <http://example.org/ns#> .
@prefix : <http://other.example.org/ns#> .
foo:r1 foo:p1 'test' .
foo:r1 foo:p2 'test2' .


instead of :


<http://example.org/ns#r1> <http://example.org/ns#p1> 'test' .
<http://example.org/ns#r1> <http://example.org/ns#p2> 'test2' .


DESCRIBE return "pretty print" turtle.

Thanks,

Samuel


Steve Harris

unread,
Feb 8, 2012, 5:50:34 AM2/8/12
to 4store-...@googlegroups.com
That should happen if you give the PREFIXes in the CONSTRUCT query.

If not, it's a bug.

- Steve

> --
> You received this message because you are subscribed to the Google Groups "4store-support" group.
> To post to this group, send email to 4store-...@googlegroups.com.
> To unsubscribe from this group, send email to 4store-suppor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/4store-support?hl=en.
>

--
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203 http://www.garlik.com/
Registered in England and Wales 0535 7233 VAT # 849 0517 11
Registered office: Landmark House, Experian Way, Nottingham, Notts, NG80 1ZZ

Samuel Morello

unread,
Feb 8, 2012, 5:53:23 AM2/8/12
to 4store-...@googlegroups.com
I used prefixes in the query
so it seems to be a bug
do i add an issue on github ?
thanks

Steve Harris

unread,
Feb 8, 2012, 7:26:10 AM2/8/12
to 4store-...@googlegroups.com
Yes, please create a ticket.

But, it could be that the serialiser which supports abbreviated Turtle was causing performance problems for people trying to CONSTRUCT very large documents. That may be why it has different behaviour to DESCRIBE.

- Steve

Samuel Morello

unread,
Feb 8, 2012, 7:36:37 AM2/8/12
to 4store-...@googlegroups.com
Ok thanks,

May be i will try with raptor to prettify the results before sending it to the browser.
I found that using turtle on the client side with rdf.js is pretty simple and very powerful compared to json.
And when the format is prettify the document is very lightweight.
Thanks

Samuel

> > > > To post to this group, send email to 4store-...@googlegroups.com (mailto:4store-...@googlegroups.com).
> > > > To unsubscribe from this group, send email to 4store-suppor...@googlegroups.com (mailto:4store-suppor...@googlegroups.com).


> > > > For more options, visit this group at http://groups.google.com/group/4store-support?hl=en.
> > >
> > >
> > >
> > > --
> > > Steve Harris, CTO, Garlik Limited
> > > 1-3 Halford Road, Richmond, TW10 6AW, UK
> > > +44 20 8439 8203 http://www.garlik.com/
> > > Registered in England and Wales 0535 7233 VAT # 849 0517 11
> > > Registered office: Landmark House, Experian Way, Nottingham, Notts, NG80 1ZZ
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups "4store-support" group.

> > > To post to this group, send email to 4store-...@googlegroups.com (mailto:4store-...@googlegroups.com).
> > > To unsubscribe from this group, send email to 4store-suppor...@googlegroups.com (mailto:4store-suppor...@googlegroups.com).


> > > For more options, visit this group at http://groups.google.com/group/4store-support?hl=en.
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "4store-support" group.

> > To post to this group, send email to 4store-...@googlegroups.com (mailto:4store-...@googlegroups.com).
> > To unsubscribe from this group, send email to 4store-suppor...@googlegroups.com (mailto:4store-suppor...@googlegroups.com).


> > For more options, visit this group at http://groups.google.com/group/4store-support?hl=en.
>
>
>
> --
> Steve Harris, CTO, Garlik Limited
> 1-3 Halford Road, Richmond, TW10 6AW, UK
> +44 20 8439 8203 http://www.garlik.com/
> Registered in England and Wales 0535 7233 VAT # 849 0517 11
> Registered office: Landmark House, Experian Way, Nottingham, Notts, NG80 1ZZ
>
> --
> You received this message because you are subscribed to the Google Groups "4store-support" group.

> To post to this group, send email to 4store-...@googlegroups.com (mailto:4store-...@googlegroups.com).
> To unsubscribe from this group, send email to 4store-suppor...@googlegroups.com (mailto:4store-suppor...@googlegroups.com).

Reply all
Reply to author
Forward
0 new messages