Marcel Otto
7847c76fc9
Change RDF.Datatype.cast implementations to return nil when not castable
2018-09-14 18:00:43 +02:00
Marcel Otto
a2cd1adeeb
Fix broken test
2018-09-14 17:07:37 +02:00
Marcel Otto
a51e2a0dec
Fix RDF.Datatype.cast/1 implementations when casting from strings
2018-09-14 17:02:04 +02:00
Marcel Otto
97b1cec4aa
Various fixes of RDF.Datatype.cast/1 implementations
2018-09-13 00:57:57 +02:00
Marcel Otto
e0635b42ad
Add implementation of RDF.Datatype.cast/1 on all time-related datatypes
2018-09-12 01:10:50 +02:00
Marcel Otto
65a08c7754
Add Elixir version conditional for test with negative year
2018-09-11 03:21:51 +02:00
Marcel Otto
45866fe30b
Add implementation of RDF.Datatype.cast/1 on RDF.String
2018-09-11 03:12:58 +02:00
Marcel Otto
de25b5399b
Add various utility functions on RDF.Time and RDF.DateTime
2018-09-11 03:12:15 +02:00
Marcel Otto
56c153198f
Add implementation of RDF.Datatype.cast/1 on numeric datatypes
2018-09-09 15:28:35 +02:00
Marcel Otto
1e94842bc0
Add implementation of RDF.Datatype.cast/1 on RDF.Boolean
2018-09-09 15:27:27 +02:00
Marcel Otto
3549a67a12
Fix new and new! on RDF.Literal and RDF.String when language nil given
2018-08-26 05:46:18 +02:00
Marcel Otto
fbbd52d1b0
Add version-dependent tests for negative years in Dates and DateTimes
2018-08-25 00:53:37 +02:00
Marcel Otto
1c7cad39be
Fix datatype and lexical form of result of various numeric functions
...
- to match SPARQL semantics
2018-08-21 03:27:48 +02:00
Marcel Otto
ec55b3758f
Add RDF.DateTime.tz/1
2018-08-10 23:51:04 +02:00
Marcel Otto
a51e518c26
Fix RDF.DateTime to store microseconds
2018-07-20 01:49:59 +02:00
Marcel Otto
974b2c8360
Add RDF.Numeric.ceil/1 and RDF.Numeric.floor/1
2018-07-14 01:18:13 +02:00
Marcel Otto
cb9585d87a
Add RDF.Numeric.round/1 and RDF.Numeric.round/2
2018-07-13 23:14:20 +02:00
Marcel Otto
ae54a8bfe2
Add RDF.Numeric.abs/1
2018-07-13 01:34:12 +02:00
Marcel Otto
34898cd696
Add RDF.LangString.match_language?/2
2018-07-10 00:18:16 +02:00
Marcel Otto
4cea91e52f
Change RDF.String.new/2 to produce language strings when language given
2018-07-09 23:04:25 +02:00
Marcel Otto
978ed89164
Fix RDF.LangString to produce invalid literals when invalid languages given
2018-07-09 21:49:25 +02:00
Marcel Otto
7ad3c0acc1
Add arithmetic operations on RDF.Numeric
2018-06-22 22:03:23 +02:00
Marcel Otto
ca3c4a0104
Fix RDF.Decimal
...
- the canonical representation of given Decimals was not always correct,
we now store always the canonical decimal as the Literal.value
2018-06-17 23:40:07 +02:00
Marcel Otto
f5684262e7
Add RDF.Decimal datatype
2018-06-15 21:19:22 +02:00
Marcel Otto
cae8e183e0
Fix RDF.DateTime to support 24:00:00 as valid time
2018-06-03 23:21:14 +02:00
Marcel Otto
71dc3d5acc
Add functions for the basic logical operations to RDF.Boolean
2018-05-29 22:40:11 +02:00
Marcel Otto
f3cc9ccf7e
Add Effective Boolean Value (EBV) algorithm and RDF.Numeric
2018-05-27 22:19:08 +02:00
Marcel Otto
e80488d601
Don't fail when creating a rdf:langString literal without a language tag
2018-03-14 10:42:41 +01:00
Marcel Otto
8eb15b581b
core: RDF.Date datatype
...
- negative years not yet supported
2017-05-01 18:06:53 +02:00
Marcel Otto
354ead9d80
core: RDF.Time datatype
2017-05-01 18:01:06 +02:00
Marcel Otto
4105a3e59b
core: RDF.DateTime datatype
...
- negative years not yet supported
2017-04-30 16:53:23 +02:00
Marcel Otto
74af0e95e5
json_ld: proper JSON-LD Data Round Tripping
2017-04-28 00:04:27 +02:00
Marcel Otto
53e590dc14
core: RDF.Double datatype
2017-04-26 03:10:35 +02:00
Marcel Otto
2b9aa62d69
core: yet another approach for RDF.Literal
...
- we now only the store the lexical form when it's non-canonical
- Literal validation and canonicalization
- a general RDF.Datatype.Test.Case
- also tested datatype implementations for booleans, integers, string and langStrings
- use literal sigils in Inspect implementation of Literals when possible
2017-04-23 23:41:29 +02:00