Commit graph

75 commits

Author SHA1 Message Date
Marcel Otto
3acda86d7e Add :base_description option on the RDF.Turtle.Encoder 2021-12-19 02:37:07 +01:00
Marcel Otto
eab7c9e117 Simplify base handling in Turtle encoder 2021-12-19 02:15:38 +01:00
Marcel Otto
2beee27eb5 Add :implicit_base option on the RDF.Turtle.Encoder 2021-12-19 01:39:31 +01:00
Marcel Otto
7859c4e46d Add :default_graph_name option to RDF.NQuads.Encoder
and use the graph name of an RDF.Graph as its default
2021-11-11 00:24:28 +01:00
Marcel Otto
e9102252ae Add support for Turtle-star encoding 2021-10-09 16:40:07 +02:00
Marcel Otto
e95c5c685d Add support for Turtle-star decoding 2021-10-01 23:33:00 +02:00
Marcel Otto
8b609233fa Add support for N-Triples-star encoding 2021-09-29 22:43:01 +02:00
Marcel Otto
3b16a76ccd Format code with Elixir 1.12 2021-05-22 16:08:19 +02:00
Marcel Otto
0a0ed07bf2 Allow {mod, fun} tuples on :default_base_iri configuration option 2021-05-19 22:59:13 +02:00
Marcel Otto
2afc2edda8 Add missing escaping of literals in N-Triples and N-Quads encoder 2021-05-09 21:43:10 +02:00
Marcel Otto
3480c254c3 Add missing escaping of language-tagged literals in Turtle encoder 2021-05-09 11:58:36 +02:00
Marcel Otto
967f81ad5a Don't Turtle-encode IRIs as prefixed names when they will be non-conform 2021-05-09 03:06:20 +02:00
Marcel Otto
f9bd3b9476 Handle base URIs without trailing slash or hash in Turtle encoder properly 2021-03-04 15:07:28 +01:00
Marcel Otto
32a59916f6 Add :indent option on RDF.Turtle.Encoder 2021-02-28 13:02:05 +01:00
Marcel Otto
f9a39288aa Use Enum.map_join/2 2021-02-27 22:25:44 +01:00
Marcel Otto
76bf042ae5 Fix docs 2020-11-16 13:22:07 +01:00
Marcel Otto
ebb1aeb25e Change inspect form of RDF.Diffs 2020-11-12 22:22:04 +01:00
Marcel Otto
e53b951519 Add API documentation for serialization encoders and decoders 2020-11-12 16:34:21 +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
a361a018a0 Add RDF.NQuads.Encoder.stream/2 2020-11-04 21:21:08 +01:00
Marcel Otto
426b6d832c Add RDF.NTriples.Encoder.stream/2 2020-11-04 20:43:19 +01:00
Marcel Otto
25b7239843 Add RDF.NQuads.Decoder.decode_from_stream/2 2020-11-04 16:51:24 +01:00
Marcel Otto
b4f0ae074c Add RDF.NTriples.Decoder.decode_from_stream/2 2020-11-04 16:32:17 +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
e3454f73ce Fix dialyzer warning 2020-11-02 15:59:14 +01:00
Marcel Otto
929e2a8c81 Use RDF.PrefixMap.prefixed_name/2 in Turtle encoder 2020-11-02 02:05:23 +01:00
Marcel Otto
15002a0bbb Add RDF.Dataset.prefixes/1 2020-10-28 11:51:00 +01:00
Marcel Otto
29a860d969 Allow vocabulary namespace modules as base for Turtle encoder 2020-10-28 11:36:43 +01:00
Marcel Otto
c306700991 Add RDF.Graph.name/1 and RDF.Graph.change_name/2 2020-09-28 11:09:35 +02:00
Marcel Otto
081a78c692 Use prefixes of the graphs of a RDF.Dataset when serializing to Turtle 2020-09-14 16:41:41 +02:00
Marcel Otto
092db587b6 Add :only option to Turtle encoder for partial documents 2020-09-14 01:09:46 +02:00
Marcel Otto
d9ab8b5804 Add :directive_style option to Turtle encoder 2020-09-13 22:16:12 +02:00
Marcel Otto
0e81f4c02c Apply mix formatter 2020-06-29 10:37:42 +02:00
Marcel Otto
8106f89ca0 Optimize canonical_lexical/1 implementation on RDF.XSD.Datatypes 2020-05-29 01:33:40 +02:00
Marcel Otto
25a0f7443c Rename RDF.Literal.datatype/1 and similar functions to datatype_id/1 2020-05-15 22:59:05 +02:00
Marcel Otto
5819eec0cf Re-integrate XSD.ex
It turned out that the costs of separating the XSD datatypes are too high
and probably not worth the effort, since with its limited scope
probably nobody would want to use XSD.ex outside of the RDF.ex context
anyway.
2020-05-05 23:58:44 +02:00
Marcel Otto
f6146c51b0 Revision of the literal system with extracted XSD datatypes 2020-04-10 23:56:35 +02: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
5f855de58c Use RDF.default_base_iri in Turtle encoder and decoder 2019-08-04 00:13:13 +02:00
Marcel Otto
58d21a3405 Add alias base_iri for the base option of the RDF.Turtle.Encoder 2019-08-03 01:33:47 +02:00
Marcel Otto
14b1dc5825 Let RDF.Turtle.Encoder use base IRI from the graph when none provided 2019-08-03 01:02:32 +02:00
Marcel Otto
19e12909ca Change RDF.Turtle.Decoder to save the base IRI in the graph 2019-08-03 00:41:06 +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
2e49f8b73a Let RDF.Turtle.Encoder use other prefixes when none provided 2019-04-02 00:34:19 +02:00
Marcel Otto
74490c96c9 Change RDF.Turtle.Decoder to save the prefixes in the graph 2019-03-31 05:07:34 +02: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