Commit graph

51 commits

Author SHA1 Message Date
Marcel Otto
f8ad48978b Fix version match 2022-04-08 12:37:49 +02:00
Marcel Otto
02e7abc2a2 Use IO.read/2 :eof option instead of :all in Elixir >= 1.13 2021-12-12 23:00:37 +01:00
Marcel Otto
303aa7c8fa Add missing RDF.Serialization.Encoder and Decoder callback clauses
This were causing warning on formats defining overriding the
default implementation of encode!
2021-11-23 00:44:33 +01:00
Marcel Otto
266ca1f159 Don't rescue from FunctionClauseErrors in readers and writers 2021-09-03 14:15:04 +02:00
Marcel Otto
76bf042ae5 Fix docs 2020-11-16 13:22:07 +01:00
Marcel Otto
3806269d3e Add read_stream!/2 functions 2020-11-06 13:03:01 +01:00
Marcel Otto
8b8c3feef7 Allow setting the stream mode via the new :stream opt on file writers 2020-11-05 22:06:10 +01:00
Marcel Otto
41a299e122 Add :gzip opt on all read and write file serialization functions 2020-11-05 21:09:36 +01:00
Marcel Otto
d3f66bd5d9 Support for streaming on file read and write serialization functions 2020-11-05 15:41:06 +01:00
Marcel Otto
6ad8d0da72 Extend serialization API with functions for reading from streams 2020-11-04 12:18:04 +01:00
Marcel Otto
ff40022f6d Extend serialization API with functions for writing to streams 2020-11-04 11:37:52 +01:00
Marcel Otto
3d28ec9085 Clean up serialization API, code and documentation 2020-11-04 09:56:22 +01:00
Marcel Otto
0dc8e383ce Add RDF.Data.t type for the RDF data structures 2020-11-03 11:53:03 +01:00
Marcel Otto
1cf84a0e84 Remove unused RDF.Serialization.Format.options/0 callback 2020-11-03 11:15:45 +01:00
Marcel Otto
e3454f73ce Fix dialyzer warning 2020-11-02 15:59:14 +01:00
Marcel Otto
20a69964c7 Change RDF.Description.new/2 to take initial data via the :init option 2020-09-25 16:07:37 +02:00
Marcel Otto
0e81f4c02c Apply mix formatter 2020-06-29 10:37:42 +02:00
Marcel Otto
f6146c51b0 Revision of the literal system with extracted XSD datatypes 2020-04-10 23:56:35 +02:00
rustra
8115554847 Minor changes in specs 2020-03-10 22:44:54 +01:00
rustra
91dc078763 Improve specs for serialization 2020-03-10 01:37:53 +01:00
rustra
8345e101d3 Add function signatures 2020-03-02 18:23:34 +01:00
Marcel Otto
092a9c60d1 Change write_file functions to no longer use :utf8 file mode option 2019-11-21 22:06:09 +01:00
Marcel Otto
5f855de58c Use RDF.default_base_iri in Turtle encoder and decoder 2019-08-04 00:13:13 +02:00
Marcel Otto
22ec671da7 Improve error messages of Turtle, N-Triples and N-Quads decoder 2019-07-06 02:32:31 +02:00
Marcel Otto
a1e4049cba Fix missing unescaping of language literals during Turtle parsing 2019-04-28 00:35:23 +02:00
Marcel Otto
77f9ad491a Fix typos 2018-11-17 02:51:14 +01:00
Marcel Otto
9c6beeac13 Add @impl annotations 2018-09-17 02:08:16 +02:00
Marcel Otto
93b932620c Add RDF.Literal.Guards 2018-09-07 21:42:38 +02:00
Marcel Otto
be390adaea Add missing defoverridable for Reader.encode!/1 2018-08-31 01:14:11 +02:00
Marcel Otto
81cfcff5d7 Add default_base_iri configuration and use it for serialization readers 2018-08-17 01:31:08 +02:00
Marcel Otto
b4c3dc8d98 Use function body rescue where possible 2018-05-16 01:59:46 +02:00
Marcel Otto
24aabc389b Add general RDF.Serialization.read_* and write_* functions 2018-03-09 21:15:43 +01:00
Marcel Otto
54d9eff014 Move RDF.Reader and RDF.Writer into RDF.Serialization module 2018-03-08 17:33:20 +01:00
Marcel Otto
eb6ede55b9 Rename RDF.Serialization.Format.content_type/0 to media_type/0 2018-03-08 02:14:49 +01:00
Marcel Otto
4f5b06c830 Add RDF.Serialization with functions to access available formats 2018-03-08 01:57:38 +01:00
Marcel Otto
7314f2d643 Rename RDF.Serialization behaviour to RDF.Serialization.Format 2018-03-07 10:33:09 +01:00
Marcel Otto
bb0f8e12aa Fix typos and RDF.Serialization.Decoder callback spec 2018-03-01 13:31:06 +01:00
Adam Keys
e9cd2bf711 Fix unescape_map in parse_helper for elixir 1.6 2018-01-19 10:24:20 -06:00
Marcel Otto
5c7efe4cbd Add RDF.IRI, use it instead of URI and use the term IRI consistently
Closes #1
2017-08-20 22:35:14 +02:00
Marcel Otto
eeffceb16d Fix some warnings 2017-08-11 18:33:12 +02:00
Marcel Otto
bb138f7e90 Another fix of URI.parse not preserving empty fragments 2017-08-01 01:38:54 +02:00
Marcel Otto
d1ef0d1fb3 Proper implementation of N-Triples, N-Quads and Turtle escaping rules 2017-07-09 22:22:35 +02:00
Marcel Otto
7f5012dc0e Various fixes of the Turtle decoder 2017-07-09 19:27:21 +02:00
Marcel Otto
cbc2b0f122 Add base URI handling to Turtle decoder 2017-07-07 18:00:09 +02:00
Marcel Otto
06dbddaf3f Add Turtle decoder 2017-07-05 23:27:55 +02:00
Marcel Otto
1fdb64c646 Add documentation to RDF.Serialization, RDF.Reader, RDF.Decoder and RDF.Encoder 2017-06-16 18:13:53 +02:00
Marcel Otto
de0e656458 Rename RDF.Serialization.Reader to RDF.Reader 2017-06-16 14:21:12 +02:00
Marcel Otto
cd7e91ec9d core: RDF.Serialization.Encoder behaviour 2017-05-19 18:10:32 +02:00
Marcel Otto
1978749c18 core: URIs don't require a path 2017-05-16 01:47:12 +02:00
Marcel Otto
a5fc5aa607 core: fix read_file! to propagate parsing errors properly 2017-05-15 22:48:55 +02:00