summaryrefslogtreecommitdiffstats
path: root/src/syntax.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-12Add base_uri parameter to sord_read_file.David Robillard1-29/+70
Add sord_write_writer. Use command line base URI in sordi if given. Use correct output style options for output syntax in sordi. Use sord_write_writer in sordi instead of manual writing code. Abbreviate serialised model output for Turtle. Preserve UTF-8 length information for nodes from Serd. Use string lengths not including terminator (match new Serd). Add test suite. git-svn-id: http://svn.drobilla.net/sord/trunk@111 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-12Expose sord_node_from_serd_node.David Robillard1-99/+16
Remove _counted node constructor methods. Use SerdNode directly for equivalent fields in SordNode. git-svn-id: http://svn.drobilla.net/sord/trunk@110 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-11Pass environment to sord write methods for CURIE abbreviation.David Robillard1-7/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@108 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-11Preserve serd node flags for pretty serialisation.David Robillard1-3/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@107 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-06Update for new Serd APIDavid Robillard1-15/+14
git-svn-id: http://svn.drobilla.net/sord/trunk@106 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-05TidyDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@104 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-30Update for new Serd APIDavid Robillard1-12/+12
git-svn-id: http://svn.drobilla.net/sord/trunk@102 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-30Consistent error messagesDavid Robillard1-9/+9
git-svn-id: http://svn.drobilla.net/sord/trunk@101 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-28Const-correct node API.David Robillard1-11/+13
git-svn-id: http://svn.drobilla.net/sord/trunk@98 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Fix uninitialized value crash when reading syntax.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@94 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Don't hide pointers behind typedefs.David Robillard1-25/+25
git-svn-id: http://svn.drobilla.net/sord/trunk@91 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Fix memory leaks.David Robillard1-4/+9
git-svn-id: http://svn.drobilla.net/sord/trunk@88 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Update for new Serd API.David Robillard1-24/+24
git-svn-id: http://svn.drobilla.net/sord/trunk@86 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-22Fix license header (awk oops).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@81 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-22Switch to ISC license (legally equivalent to MIT license but with less ↵David Robillard1-20/+11
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/sord/trunk@77 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-16Update copyright headersDavid Robillard1-5/+4
git-svn-id: http://svn.drobilla.net/sord/trunk@75 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-28Fix sord_file_uri_to_path on Windows.David Robillard1-1/+8
Print error messages on various parsing failures. git-svn-id: http://svn.drobilla.net/sord/trunk@72 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Remove node free that crashes SLV2. Kludge, probably a leak...David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@53 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Fix reference counting error.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@52 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Sane reference counting semantics.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/sord/trunk@51 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Fix memory leak.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@49 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-03-07Fix memory leak.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@48 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-25Use new SerdReadState to simplify code.David Robillard1-53/+18
git-svn-id: http://svn.drobilla.net/sord/trunk@42 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-25Update style and switch to 2-clause BSD license.David Robillard1-16/+24
git-svn-id: http://svn.drobilla.net/sord/trunk@41 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-19String reading/writing.David Robillard1-30/+113
git-svn-id: http://svn.drobilla.net/sord/trunk@39 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Sord::Resource => Sord::URI (consistency with C API).David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/sord/trunk@37 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Make serd.h C++ safe.David Robillard1-39/+162
Add C++ API (serdmm.hpp). Add serialisation API (easily write models to files). git-svn-id: http://svn.drobilla.net/sord/trunk@36 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Sord => SordModel.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/sord/trunk@35 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Add world object (to intern nodes and sanely support several models per ↵David Robillard1-5/+8
library instance). git-svn-id: http://svn.drobilla.net/sord/trunk@34 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Simpler and more typical node creation API.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@33 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-16Remove pointless SordID type.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/sord/trunk@31 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-10Update for new Serd API.David Robillard1-39/+30
git-svn-id: http://svn.drobilla.net/sord/trunk@24 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04SordTuple => SordQuad.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@21 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04Use uint8_t for API char type for UTF-8 friendliness.David Robillard1-5/+4
Fix literal languages. git-svn-id: http://svn.drobilla.net/sord/trunk@20 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04Fix memory leaks.David Robillard1-4/+8
git-svn-id: http://svn.drobilla.net/sord/trunk@18 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-04Fix iterating over ranges within a graph.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@17 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-03Add ability to set blank node prefix for parsing multiple files without ↵David Robillard1-3/+10
conflict. git-svn-id: http://svn.drobilla.net/sord/trunk@16 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-02-03Add SordTupleIndex enumeration for more readable Tuple code.David Robillard1-16/+58
Add sord_node_equals. Add sord_read_file_handle and add graph URI parameter to sord_read_file. Resolve relative URIs when parsing into a model. Read literal datatype or language when parsing into a model. Bettern debug printing. Add GOPS index by default. Add export_indluces to library in wscript for building against sord locally. git-svn-id: http://svn.drobilla.net/sord/trunk@15 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-01-29Proper marshaling of Serd nodes to Sord nodes.David Robillard1-14/+11
git-svn-id: http://svn.drobilla.net/sord/trunk@11 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-01-28(More) proper marshaling between Serd and Sord nodes.David Robillard1-1/+32
git-svn-id: http://svn.drobilla.net/sord/trunk@10 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-01-28Syntax support via Serd.David Robillard1-0/+176
Preliminary syntax-using command line program. git-svn-id: http://svn.drobilla.net/sord/trunk@9 3d64ff67-21c5-427c-a301-fe4f08042e5a