History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: RIO-63
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Henry Story
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Rio

beatiful Turtle writer

Created: 04/Jun/08 01:43 PM   Updated: 04/Jun/08 02:17 PM
Component/s: Turtle writer
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File henry.n3 (8 kb)

Environment: using Sesame 2.1


 Description   
I am writing a foaf editor/explorer [1] and I need it to create foaf files that are somewhat humanly readable at least, so that developers can help debug things.
to publish a foaf I create a SPARQL CONSTRUCT query [2] and write the triples to a special temporary context. Using a (set of) CONSTRUCT query should makes it easy to fine tune the triples that one wishes to make public in one's foaf file. I then serialise that foaf file to a (local or remote) file.

It would be nice if the serialiser could group the statements together by subject more. Currently there are a lot of statements about me in the output.
Also relations with the same predicate should be linked together by ","

I will attach the current output of my SPARQL query.

[1] http://blogs.sun.com/bblfish/entry/bof_5911_building_a_web
[2] https://sommer.dev.java.net/source/browse/sommer/trunk/misc/AddressBook/src/net/java/sommer/addressbook/resources/publishfoaf.sparql?rev=384&view=markup
[3] https://sommer.dev.java.net/source/browse/sommer/trunk/misc/AddressBook/src/net/java/sommer/addressbook/FoafPublisher.java?rev=384&view=markup

 All   Comments   Change History      Sort Order:
Comment by Henry Story [04/Jun/08 01:44 PM]
The output of the SPARQL CONSTRUCT query.

Comment by Henry Story [04/Jun/08 01:58 PM]
The above request for enhancement follows on the thread "HOWTO remove CONSTRUCT query duplicates?"

http://www.openrdf.org/forum/mvnforum/viewthread?thread=1685

Comment by James Leigh [04/Jun/08 02:17 PM]
See OrganizedRDFWriter for help on organizing the RDF output.

http://www.openrdf.org/doc/elmo/1.0/apidocs/org/openrdf/rio/helpers/OrganizedRDFWriter.html