longturtle doesn't handle RDF-Star because RDFLib itself doesn't yet.

A student of mine has actually added RDF-Start support to RDFLib and longturtle 
could be used for output but the PR's not accepted yet 
(https://github.com/RDFLib/rdflib/pull/2115).

As a format, longturtle is just turtle with a few more linebreaks and 
outdenting for nested objects. It doesn't do anything fancy regarding Blank 
Node deterministic serialisation but it's good for things like Git diffing, 
most of the time! I use it for 100s of SKOS vocabs that are all stored in Git 
for management and  thenloaded into Fuseki for use.

Nick


------- Original Message -------
On Tuesday, June 20th, 2023 at 23:13, Ryan Shaw <[email protected]> 
wrote:


> > On Jun 19, 2023, at 9:37 PM, Nicholas Car [email protected] wrote:
> > 
> > It's not a direct solution, but please have a look at the "LongTurtle" 
> > format used in Python's RDFLib library to see if that style of formatting's 
> > good/bad etc.
> 
> 
> 
> Yes, I like the LongTurtle format.
> 
> Up to now I’ve been piping arq output into `rdfpipe -o longturtle`. But 
> rdflib serializers don’t handle RDF-star (maybe this has changed recently?), 
> so I was hoping to get Jena to produce longturtlish formatted RDF that also 
> handles RDF-star quoted triples.
> 
> Andy, thanks for the pointers to the code in TurtleShell.
> 
> Cheers,
> Ryan

Reply via email to