Marcel Otto
0e81f4c02c
Apply mix formatter
2020-06-29 10:37:42 +02:00
Marcel Otto
e755c1d0ff
Fix dialyzer warning
2020-05-22 01:07:28 +02:00
Marcel Otto
47a19c0a67
Add proper handling of vocabulary terms at various places
...
- in the coerce and value functions of the RDF.Term protocol for atoms
- allow them as XSD.AnyURI values
- RDF.Literal.coerce produces XSD.AnyURI literals from them
- allow them in equal_value comparisons with RDF.IRIs and XSD.AnyURIs
2020-05-17 00:53:36 +02:00
Marcel Otto
c22bab6c74
Change Namespace.resolve_term to return ok tuples and add resolve_term!
2020-05-09 00:26:29 +02:00
Marcel Otto
24051c6153
Add RDF.Guards.maybe_ns_term/1
2020-05-06 18:04:19 +02:00
Marcel Otto
00a6103e56
Interop between RDF.IRI and XSD.AnyURI in terms of cast and equal_value?
2020-05-06 16:48:31 +02:00
Marcel Otto
f6146c51b0
Revision of the literal system with extracted XSD datatypes
2020-04-10 23:56:35 +02:00
rustra
3da72f9e6a
Specs improvements and fixes
2020-03-03 22:02:35 +01:00
rustra
8345e101d3
Add function signatures
2020-03-02 18:23:34 +01:00
rustra
83f62335b3
Fix type specs for structs
2020-02-28 18:51:48 +01:00
Marcel Otto
9e81f69636
Remove RDF.IRI.empty_fragment_shim/2
...
This is no longer needed, since we don't support Elixir versions < 1.6
anymore.
2019-09-24 00:50:34 +02:00
Marcel Otto
fe49c0e431
Move base IRI coercion from PrefixMap into new RDF.IRI.coerce_base/1
...
- and extend it to also support terms from vocabulary namespaces
2019-08-08 22:26:07 +02:00
Marcel Otto
5f855de58c
Use RDF.default_base_iri in Turtle encoder and decoder
2019-08-04 00:13:13 +02:00
Marcel Otto
f89b34ed4b
Add RDF.IRI.to_string/1
2019-05-01 03:06:35 +02:00
Marcel Otto
b0bfd7fe62
Specify enforced keys for structs
2018-09-10 00:27:40 +02:00
Marcel Otto
6bafb41cf9
Change RDF.IRI.absolute/2 to return nil if the base is not absolute
2018-08-24 01:32:54 +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
87b34f8464
Fix warnings raised on Elixir 1.7
2018-08-16 23:46:05 +02:00
Marcel Otto
d838424478
Add RDF.Term.equal?/2 and RDF.Term.equal_value?/2
2018-06-08 12:26:52 +02:00
Marcel Otto
b4c3dc8d98
Use function body rescue where possible
2018-05-16 01:59:46 +02:00
Marcel Otto
d098fee62a
Cover more term resolving cases in the RDF.IRI functions
2017-08-21 21:09:35 +02: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