summaryrefslogtreecommitdiffstats
path: root/src/sord.c
AgeCommit message (Collapse)AuthorFilesLines
2014-12-18Fix deleting statements with no graph.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@320 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-11-03Fix bugs with stores that contain both graphs and default graph statements.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@315 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Add sord_erase() for erasing statements via an iterator.David Robillard1-9/+49
git-svn-id: http://svn.drobilla.net/sord/trunk@310 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Reduce memory usage and increase performance with a better data structure.David Robillard1-78/+42
git-svn-id: http://svn.drobilla.net/sord/trunk@307 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@301 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@298 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Fix some const-correctness violations.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@297 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-07-15Fix iteration over an entire graph (* * * graph).David Robillard1-6/+10
git-svn-id: http://svn.drobilla.net/sord/trunk@296 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-02-18Fix reference counting semantics of sord_get().David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@286 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-02-18Update copyright year where appropriate.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@284 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-01-14Add sord_node_get() for easily getting single property values.David Robillard1-0/+25
git-svn-id: http://svn.drobilla.net/sord/trunk@280 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Shave 8 bytes off of SordNode.David Robillard1-39/+46
git-svn-id: http://svn.drobilla.net/sord/trunk@251 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Use a single node hash for all types of nodes.David Robillard1-144/+85
Inline nodes in hash table nodes and eliminate key+value pointer overhead. Use SSE 4.2 accelerated node and string hashing when available. git-svn-id: http://svn.drobilla.net/sord/trunk@250 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Get rid of language hash and store language inline with nodes.David Robillard1-38/+23
git-svn-id: http://svn.drobilla.net/sord/trunk@249 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Hide zix symbols (fix static builds with lilv).David Robillard1-4/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@248 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Fix some const correctness violations (found by -Wcast-qual).David Robillard1-13/+13
Alas, not all... being truly clean of this warning would mean an API change. git-svn-id: http://svn.drobilla.net/sord/trunk@245 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-16/+16
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-06Don't print nonexistent file/line information in error messages.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@228 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-06Fix uninitialized values.David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@227 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-05Add error callback to world for custom error reporting.David Robillard1-10/+41
git-svn-id: http://svn.drobilla.net/sord/trunk@226 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-30Add convenient sord_search(), sord_ask(), and sord_count().David Robillard1-0/+38
Add sord_validate tool for validating data against RDF/OWL schemas. git-svn-id: http://svn.drobilla.net/sord/trunk@211 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-18Fix rusty comment.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@208 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-09Add sord_new_relative_uri().David Robillard1-0/+20
git-svn-id: http://svn.drobilla.net/sord/trunk@204 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-08Refuse to intern relative URIs in sord_new_uri*().David Robillard1-1/+5
Make sord_iter_get_node() tolerate a NULL iterator. git-svn-id: http://svn.drobilla.net/sord/trunk@202 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-03Add sord_iter_get_node().David Robillard1-0/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@201 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@198 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-16Support compilation as C++ under MSVC++.David Robillard1-29/+35
git-svn-id: http://svn.drobilla.net/sord/trunk@194 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-14Lint.David Robillard1-34/+59
git-svn-id: http://svn.drobilla.net/sord/trunk@186 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-01-05Fix comparison of typed literals.David Robillard1-13/+17
Take advantage of interning in sord_node_equals(). Improve test coverage. git-svn-id: http://svn.drobilla.net/sord/trunk@185 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-12-12Fix crashes caused by serd passing NULL to the statement callback.David Robillard1-1/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@181 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-09-29Tidy.David Robillard1-41/+42
git-svn-id: http://svn.drobilla.net/sord/trunk@166 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-09-28Tidy.David Robillard1-9/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@164 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-09-28Remove glib dependencyDavid Robillard1-130/+120
git-svn-id: http://svn.drobilla.net/sord/trunk@163 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-06-11Fix potential use of uninitialized valueDavid Robillard1-5/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@150 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-06-09Add sord_contains (ticket #711).David Robillard1-0/+9
git-svn-id: http://svn.drobilla.net/sord/trunk@148 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-24Free all nodes on world destruction (fix memory leaks).David Robillard1-0/+13
git-svn-id: http://svn.drobilla.net/sord/trunk@132 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-24Fix removing.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@125 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-19Update for new Serd API.David Robillard1-7/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@122 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-13Save space by storing a single quad in each index and passing ordering to ↵David Robillard1-52/+53
comparator function rather than permuting the actual quads. git-svn-id: http://svn.drobilla.net/sord/trunk@116 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-13Tidy.David Robillard1-27/+34
git-svn-id: http://svn.drobilla.net/sord/trunk@114 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-13Remove pointless sord_id_compare function (cruft from disk days).David Robillard1-25/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@113 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-12Performance improvements for sord_node_from_serd_node.David Robillard1-19/+21
git-svn-id: http://svn.drobilla.net/sord/trunk@112 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-12Add base_uri parameter to sord_read_file.David Robillard1-11/+18
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-65/+140
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-12Abbreviate inline blank node objects.David Robillard1-29/+57
git-svn-id: http://svn.drobilla.net/sord/trunk@109 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-05-11Preserve serd node flags for pretty serialisation.David Robillard1-14/+26
git-svn-id: http://svn.drobilla.net/sord/trunk@107 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-28Const-correct node API.David Robillard1-16/+17
git-svn-id: http://svn.drobilla.net/sord/trunk@98 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-28Use size_t for node and triple counts.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@97 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-28Remove redundant search in sord_add.David Robillard1-15/+13
git-svn-id: http://svn.drobilla.net/sord/trunk@95 3d64ff67-21c5-427c-a301-fe4f08042e5a
2011-04-27Don't hide pointers behind typedefs.David Robillard1-120/+115
git-svn-id: http://svn.drobilla.net/sord/trunk@91 3d64ff67-21c5-427c-a301-fe4f08042e5a