summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-03-15Make sord_node_get_counted return byte countDavid Robillard2-9/+36
Also clarify formerly ambiguous documentation, and add sord_node_get_string_measured to get both byte and character counts. Technically, this breaks behaviour, but most (if not all) existing code that uses this function was actually expecting a byte count. This is unsurprising since a UTF-8 character count is almost always useless. This approach causes less problems in reality, since it fixes broken behaviour in the wild without requiring any changes in user code.
2015-12-04Return inserter error when node can not be writtenDavid Robillard1-0/+4
2015-10-08Improve test coverageDavid Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@338 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-04Improve test coverageDavid Robillard5-33/+81
git-svn-id: http://svn.drobilla.net/sord/trunk@335 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-03Show sordi errors in standard formatDavid Robillard1-12/+16
git-svn-id: http://svn.drobilla.net/sord/trunk@333 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-03Fix using sordi with stdinDavid Robillard1-1/+1
Improve test coverage (100% of sordi.c). git-svn-id: http://svn.drobilla.net/sord/trunk@332 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-03Improve test coverageDavid Robillard2-15/+99
git-svn-id: http://svn.drobilla.net/sord/trunk@331 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-09-10Fix crash caused by multiple deletion of datatype nodes.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@329 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-09-10Fix minor memory leak in sordi.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@328 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-03-28sord_validate: Warn about properties with no label.David Robillard1-0/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@327 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-03-07Fix iteration during erase.David Robillard1-4/+16
git-svn-id: http://svn.drobilla.net/sord/trunk@326 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-02-21More extensive validation support in sord_validate.David Robillard1-94/+270
git-svn-id: http://svn.drobilla.net/sord/trunk@324 3d64ff67-21c5-427c-a301-fe4f08042e5a
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-12-18Fix unlikely tree bugs.David Robillard1-2/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@319 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-11-22Fix compilation as C++.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@316 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-10-03Compile cleanly as C++.David Robillard2-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@314 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Add sord_erase() for erasing statements via an iterator.David Robillard4-99/+205
git-svn-id: http://svn.drobilla.net/sord/trunk@310 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Verify that removing actually succeeds.David Robillard1-0/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@309 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Fix B-tree on 32-bit systems.David Robillard1-30/+31
git-svn-id: http://svn.drobilla.net/sord/trunk@308 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Reduce memory usage and increase performance with a better data structure.David Robillard8-954/+904
git-svn-id: http://svn.drobilla.net/sord/trunk@307 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Fix const-violating casts.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/sord/trunk@306 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Use Markdown in doc comments for better source readability.David Robillard3-26/+26
git-svn-id: http://svn.drobilla.net/sord/trunk@301 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-10/+10
git-svn-id: http://svn.drobilla.net/sord/trunk@300 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Update copyright dates.David Robillard3-3/+3
git-svn-id: http://svn.drobilla.net/sord/trunk@298 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Fix some const-correctness violations.David Robillard3-9/+9
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 Robillard3-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@284 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-02-02sord_validate: Pass type check when range is xsd:anyURI and value is a URI.David Robillard1-13/+26
sord_validate: Support any subClassOf rdf:Property, not just baked-in ones. git-svn-id: http://svn.drobilla.net/sord/trunk@281 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-01-14Add sord_node_get() for easily getting single property values.David Robillard2-0/+41
git-svn-id: http://svn.drobilla.net/sord/trunk@280 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-09-09Implement better data type validation in sord_validate conformant with the ↵David Robillard1-40/+186
XSD and OWL specifications. Fix memory leaks in sord_validate. git-svn-id: http://svn.drobilla.net/sord/trunk@261 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-23Remove problematic "Loaded n statements" output from serdi.David Robillard1-3/+0
git-svn-id: http://svn.drobilla.net/sord/trunk@255 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Fix void pointer arithmetic.David Robillard1-7/+8
git-svn-id: http://svn.drobilla.net/sord/trunk@252 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Shave 8 bytes off of SordNode.David Robillard2-44/+63
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 Robillard6-219/+332
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 Robillard2-43/+28
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 Robillard6-116/+274
git-svn-id: http://svn.drobilla.net/sord/trunk@248 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Print version on -v (and fix dead code).David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@246 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 Robillard4-39/+39
-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-05-17Fix compilation with --test.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@224 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-04-17Update copyright date.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@217 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-04-13Add -l option to sord_validator for printing each error on a single line. ↵David Robillard1-10/+24
Useful in conjunction with grep and friends. git-svn-id: http://svn.drobilla.net/sord/trunk@214 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-04-06Fix compilation as C++.David Robillard1-30/+29
git-svn-id: http://svn.drobilla.net/sord/trunk@212 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-30Add convenient sord_search(), sord_ask(), and sord_count().David Robillard4-11/+449
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-27Delete trailing whitespace.David Robillard2-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@210 3d64ff67-21c5-427c-a301-fe4f08042e5a