rhdunn / cainteoir-engine

The Cainteoir Text-to-Speech core engine
http://reecedunn.co.uk/cainteoir/
GNU General Public License v3.0
43 stars 8 forks source link

make the N3/Turtle serialiser more flexible #25

Closed rhdunn closed 11 years ago

rhdunn commented 12 years ago

The current N3 serialiser writes out prefixes and curie notation. It should be possible to control it to enable/disable different notation features:

  1. use curie notation for uris with specified prefixes and <> notation for the rest [1];
  2. use A a B notation for A rdf:type B triples;
  3. group statements on the same subject together;
  4. inline blank nodes used in one location with a statement using the [] notation (implies (3));
  5. inline list nodes with a statement using the () notation (implies (3));
  6. additional N3/Turtle features;
  7. additional TRiG features?

[1] This feature would always be enabled. To turn it off you simply don't specify any prefixes for the serialiser. If no other N3 features are enabled, this is the same as the N-Triple serialisation.

NOTE: The N-Triple and N3 serialisers should be merged together,

rhdunn commented 12 years ago

N-Triples: http://www.w3.org/TR/2004/REC-rdf-testcases-20040210/#ntriples N-Quads: http://sw.deri.org/2008/07/n-quads/ Turtle: http://www.w3.org/TeamSubmission/turtle/ N3: http://www.w3.org/TeamSubmission/n3/ TRiG: http://www.w3.org/2010/01/Turtle/Trig

N-Triple => N-Quads
N-Triple => Turtle => N3
Turtle => TRiG
rhdunn commented 11 years ago

Support for the different metadata format outputs is now tracked by http://reecedunn.co.uk/cainteoir/formats/metadata.html, therefore this issue is now superceeded by that information.