Commit graph

50 commits

Author SHA1 Message Date
Marcel Otto
352b8ef1a8 Use also the :context opt and implicit PropertyMap formats in values/2 2020-10-13 11:50:02 +02:00
Marcel Otto
a49229384e Extract map/2 function from values/2 on all RDF data structures
and add support for RDF.PropertyMaps on values/2 instead
2020-10-10 15:45:25 +02:00
Marcel Otto
d0e5b625fd Support for RDF.PropertyMaps as :context opt on functions with input data 2020-10-09 16:32:24 +02:00
Marcel Otto
71292b721c Add :init option to RDF.Graph.new/2 and RDF.Dataset.new/2 2020-10-07 16:08:22 +02:00
Marcel Otto
9880fd7be3 Handle structs in the input of RDF data structure functions properly 2020-10-05 12:41:55 +02:00
Marcel Otto
1a7ffe58c4 Change behaviour of put and add put_properties on RDF.Graph and Dataset 2020-10-04 16:31:41 +02:00
Marcel Otto
42f787836f Improve implementation of RDF.Graph.put/3
- fixes bugs with some combinations of possible inputs
- simplify implementation
- add opts
2020-10-04 03:07:27 +02:00
Marcel Otto
9b1600c863 Fix bug in RDF.Graph.put/2 with quad input 2020-10-01 15:53:44 +02:00
Marcel Otto
96bb678ffc Fix RDF.Graph.put/2 to ignore empty RDF.Descriptions 2020-09-30 10:47:02 +02:00
Marcel Otto
f83ac494fc Rename RDF.Graph.delete_subjects/2 to RDF.Graph.delete_descriptions/2 2020-09-30 10:20:13 +02:00
Marcel Otto
2a44765631 Add support for list of descriptions to RDF.Graph.put/2 2020-09-28 12:36:25 +02:00
Marcel Otto
69fbdd60b3 Add RDF.Graph.base_iri/1 and RDF.Graph.prefixes/1 2020-09-28 11:22:46 +02: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
a8c71df20b Limit and unify the forms of input on RDF.Graph functions 2020-09-28 02:49:41 +02: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
e9432ef556 Limit the forms of input on RDF.Description functions 2020-07-27 23:09:23 +02:00
pukkamustard
2d68a352ed
Fix non-empty RDF.Graph when adding empty RDF.Description (#8) 2020-07-03 23:49:06 +02:00
Marcel Otto
0e81f4c02c Apply mix formatter 2020-06-29 10:37:42 +02:00
Marcel Otto
30bde1acc2 Add RDF.Graph.clear/1 2019-11-02 01:35:09 +01:00
Marcel Otto
02131efc15 Add RDF.Graph.update/4 2019-10-24 22:03:05 +02:00
Marcel Otto
2cfa89125f Add RDF.Graph.take/3 2019-10-15 17:29:46 +02:00
Marcel Otto
3f1afa190f Use new RDF.IRI.coerce_base/1 for RDF.Graph.set_base_iri/2 2019-08-08 22:32:21 +02:00
Marcel Otto
b28e5e4744 Add RDF.Graph.base_iri field and functions to handle it 2019-08-03 00:36:25 +02:00
Marcel Otto
158decc16b Add equal?/2 on RDF.Description, RDF.Graph and RDF.Dataset 2019-04-03 00:15:25 +02:00
Marcel Otto
195b967b93 Add prefix management to RDF.Graph 2019-03-31 01:15:56 +01:00
Marcel Otto
1801ad186c Change RDF.Dataset.new to take the dataset name as an option 2019-03-29 01:57:49 +01:00
Marcel Otto
1793c842bb Change RDF.Graph.new to take the graph name as an option 2019-03-29 01:26:50 +01:00
Marcel Otto
4336602dcc Add a values/2 variant with a custom mapping function 2018-11-04 22:27:25 +01:00
Marcel Otto
defd1857e5 Add values/1 on RDF.Description, RDF.Graph and RDF.Dataset 2018-10-27 16:30:19 +02:00
Marcel Otto
b445f2e31c Add Collectable implementations for all RDF data structures 2017-10-30 12:15:16 +01: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
89d75270aa Rename RDF.Statement.convert* functions to RDF.Statement.coerce* 2017-08-11 22:22:27 +02:00
Marcel Otto
c27c61b064 Don't support RDF.Graph. and RDF.Dataset.put with a list of descriptions 2017-06-16 23:19:49 +02:00
Marcel Otto
7b7c4af243 core: add RDF.Graph.delete_subjects/2 2017-06-02 18:22:58 +02:00
Marcel Otto
377707f0ef core: delete statements from a Graph 2017-06-02 16:24:15 +02:00
Marcel Otto
08f276ee41 core: graph names can be blank nodes 2017-04-11 02:05:57 +02:00
Marcel Otto
443e43da6f core: rename test groups to tested function 2017-03-31 16:27:34 +02:00
Marcel Otto
2e75b75c83 core: put statements from one graph into another 2017-03-31 16:22:16 +02:00
Marcel Otto
fd3a20116b core: creating a new graph from another graph 2017-03-31 16:04:39 +02:00
Marcel Otto
f49828b76b core: add statements from one graph to another 2017-03-31 15:55:56 +02:00
Marcel Otto
e5c8043cc2 core: RDF.Dataset 2017-02-18 21:35:27 +01:00
Marcel Otto
f35086cd7b core: RDF.Test.Case with shared test helper functions 2017-02-13 01:21:32 +01:00
Marcel Otto
7304037d47 add empty parentheses to bareword function calls for Elixir 1.4 2017-02-12 15:42:27 +01:00
Marcel Otto
1222a0d728 core: Graph.new, .add and .put accept Descriptions as data to be added
Graph.put with a list of Descriptions remains to be done
2016-12-09 14:52:21 +01:00
Marcel Otto
6a9daa30e6 core: Access behaviour for Graph 2016-11-27 13:49:42 +01:00
Marcel Otto
ebd751827f core: Description.put 2016-11-26 23:45:41 +01:00
Marcel Otto
012daff14d core: Graph.add and .new accept triple elements directly, with possibly multiple objects 2016-11-25 01:17:07 +01:00
Marcel Otto
4ebc3e63c4 core: collect all exceptions in a dedicated file 2016-11-04 22:13:06 +01:00
Marcel Otto
c192b49bfd core: functions to get the sets of all subjects, predicates, objects and resources of Descriptions and Graphs 2016-11-02 03:19:19 +01:00
Marcel Otto
499714285b core: basics of the RDF model 2016-10-16 21:42:03 +02:00