Commit graph

55 commits

Author SHA1 Message Date
Marcel Otto
f3bc0a1d84 Use base of graph or default_base_iri as default in encoder 2022-04-23 01:11:09 +02:00
Marcel Otto
363309a739 Allow RDF.Vocabulary.Namespace modules as base 2022-04-23 00:58:25 +02:00
Marcel Otto
53631c6425 Allow RDF.PropertMaps as contexts 2022-04-22 22:25:24 +02:00
Marcel Otto
9655d63885 Allow atom keys in context maps 2022-04-22 02:47:44 +02:00
Marcel Otto
851a1b0c19 Add :context option on JSON.LD.Encoder 2022-04-21 01:42:10 +02:00
Alex Gleason
8781470e2e
Test: use Bypass for remote context test (#8) 2021-08-19 22:29:57 +02:00
Marcel Otto
3205dbef2a Fix formatting 2021-08-19 16:00:09 +02:00
Marcel Otto
1cb520cb67 Fix processing of remote contexts with a list
Fixes #7
2021-08-19 15:43:59 +02:00
Marcel Otto
6563326079 Upgrade to RDF.ex 0.9 2020-10-13 16:27:56 +02:00
Marcel Otto
b06586c387 Apply mix formatter 2020-06-20 04:25:58 +02:00
Marcel Otto
891203810f Disable remote-doc test suite
These tests are not about remote context processing,
but remote document loading, which we are not supporting yet.
2020-06-19 02:40:57 +02:00
rustra
140faf4741
Add unit tests for remote context (#4)
* Improve RemoteDocTest
* Add unit tests for remote context
* Add unit tests for default document loader
2020-06-19 01:41:34 +02:00
Marcel Otto
e658b3c9c1 Differentiate positive and negative cases in remote-doc tests 2020-06-17 02:37:59 +02:00
Marcel Otto
1d00bc6a40 Enable JSON-LD remote-doc test suite 2020-06-16 22:56:13 +02:00
Marcel Otto
277fabedb4 Merge branch 'master' into remote-context-processing
Conflicts:
	mix.exs
	mix.lock
2020-06-16 22:33:04 +02:00
Marcel Otto
33946bae8f Adapt to new RDF.ex literal datatype system 2020-05-07 17:21:12 +02:00
Marcel Otto
67264807e0 Fix some warnings 2020-04-13 00:01:43 +02:00
Marcel Otto
b53a49eb77 Include test support files via elixirc_paths 2019-06-09 21:50:34 +02:00
Marcel Otto
8b5000228c Adapt JSON.LD.TestSuite to new RDF.Serialization.Reader option handling 2018-08-31 01:44:57 +02:00
Marcel Otto
a40e2a5026 Support for pretty printing by passing options through to Jason 1.1 2018-07-11 00:17:36 +02:00
Marcel Otto
29524560bb Switch from Poison to Jason for JSON encoding and decoding 2018-03-16 00:08:39 +01:00
Marcel Otto
b9f2205243 Add handling of RDF.Graphs and RDF.Descriptions to JSON.LD.Encoder 2018-03-13 00:56:32 +01:00
Koka El Kiwi
83bb50180e Add remote context processing (#2) [WIP] 2018-03-10 01:15:54 +01:00
Marcel Otto
688731cdb0 Revert "Add remote context processing (#2) [WIP]"
This reverts commit aac4127aeb.
2018-03-10 01:12:28 +01:00
Koka El Kiwi
aac4127aeb Add remote context processing (#2) [WIP] 2018-01-28 15:51:48 +01:00
Marcel Otto
d640275dfc Fix more warnings 2018-01-27 23:32:41 +01:00
Marcel Otto
038b170b5b Upgrade to RDF.ex 0.3 2017-08-24 19:10:02 +02:00
Marcel Otto
68c1d55fcc Add dependency on Elixir 1.5
to get this URI.merge fix: <https://github.com/elixir-lang/elixir/pull/6208>,
which fixes some failing tests of the JSON test suite
2017-08-06 22:33:53 +02:00
Marcel Otto
0186acf830 Fix comment 2017-06-25 02:07:21 +02:00
Marcel Otto
9c17fd1694 json_ld: some of the URI.merge problems are solved with Elixir 1.4.4
- but URI.merge still causes problems due to incomplete RFC3986 implementation
   see: https://github.com/elixir-lang/elixir/pull/6208
2017-06-09 04:14:46 +02:00
Marcel Otto
0f517d4195 json_ld: RDF to JSON-LD serialization 2017-05-20 16:35:56 +02:00
Marcel Otto
be144fbe68 json_ld: fix indentation 2017-05-14 23:55:20 +02:00
Marcel Otto
a22e651468 json_ld: proper JSON-LD Data Round Tripping 2017-04-28 00:04:27 +02:00
Marcel Otto
e508c6d28a json_ld: fix disabled tests with double literals 2017-04-27 23:03:10 +02:00
Marcel Otto
d72791bcd5 json_ld: JSON-LD toRdf test suite and various fixes 2017-04-14 16:24:19 +02:00
Marcel Otto
96874c3e3c core: a different approach for the serialization API 2017-04-11 00:12:29 +02:00
Marcel Otto
469ffa7834 use the IRI sigil 2017-04-10 03:06:20 +02:00
Marcel Otto
7d80675fa2 json_ld: JSON-LD to RDF deserialization 2017-04-09 23:10:59 +02:00
Marcel Otto
f208f2e22e json_ld: JSON-LD error test suite and some fixes 2017-03-30 22:51:44 +02:00
Marcel Otto
ea7d8b7b4e json_ld: JSON-LD flattening test suite and various flattening fixes 2017-03-30 21:33:36 +02:00
Marcel Otto
84fbd57e6f json_ld: JSON-LD compaction test suite and various compaction fixes
but still 13 tests failing
2017-03-25 22:16:59 +01:00
Marcel Otto
a270fcdc04 json_ld: expand-0034, expand-0035 and expand-0038 are actually expanded to correct values, but the ordering is different 2017-03-25 22:02:04 +01:00
Marcel Otto
e6a65ff56a json_ld: failing of expand-0062 and expand-0029 is caused by a bug in URI.merge and should work in Elixir 1.5 2017-03-25 22:00:47 +01:00
Marcel Otto
949a4a0f31 json_ld: JSON-LD expansions test suite and various expansion fixes
but still 5 tests failing
2017-03-24 23:25:12 +01:00
Marcel Otto
4cc0680fbf json_ld: helpers for the JSON-LD test suite 2017-03-24 23:13:05 +01:00
Marcel Otto
55aead5028 json_ld: official JSON-LD test suite files 2017-03-24 23:08:41 +01:00
Marcel Otto
9be156100a json_ld: move helper functions into a dedicated JSON.LD.Utils module
and

- add some documentation
- remove top-level expand_iri delegate
2017-03-21 01:01:55 +01:00
Marcel Otto
a43205deaa json_ld: solve the list reference problem with an agent 2017-03-19 14:51:28 +01:00
Marcel Otto
2405d7d32b json_ld: JSON-LD flattening algorithm
lists not working yet; requires a major modification of the specified algorithm, since we can't fill lists by reference in Elixir
2017-03-18 21:52:41 +01:00
Marcel Otto
4032a12f10 core: vocabulary namespace rewrite
- ability to create vocabulary namespaces from RDF data
- XSD, RDF, RDFS, OWL and SKOS vocabulary namespaces
2017-03-12 14:30:59 +01:00