Skip to content

Commit

Permalink
More note tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RickMoynihan committed Dec 20, 2019
1 parent 7bb12f2 commit 758b826
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions doc/ideas.org
Expand Up @@ -63,7 +63,7 @@ memory, so reused URI's have the same identity.


** :grafter.rdf4j/builder-fn ** :grafter.rdf4j/builder-fn


Similar to :grafter.rdf4j/value-factory but happens after the Similar to =:grafter.rdf4j/value-factory= but happens after the
value-factory has done its job. i.e builder-fn receives a statement value-factory has done its job. i.e builder-fn receives a statement
output from the value-factory. This allows us to then coerce URI's output from the value-factory. This allows us to then coerce URI's
into grafter/clj canonical form. into grafter/clj canonical form.
Expand Down Expand Up @@ -155,11 +155,11 @@ object. If on connection they should override the default on repo.
#+END_SRC #+END_SRC


3. A significant difference is that construct will NO longer build 3. A significant difference is that construct will NO longer build
:grafter.rdf/uri objects, or unify variables into trees. It will =:grafter.rdf/uri= objects, or unify variables into arbitrary
ONLY create triples. datastructures. It will ONLY create triples.


4. Old :grafter.rdf/uri construct queries will use a new function to 4. Old =:grafter.rdf/uri= construct queries that wish to port to the new
emit them: ns will be able to use a new function to emit them:


#+BEGIN_SRC clojure #+BEGIN_SRC clojure
(matcha/resource '?s '{?p ?o} [[?s ?p ?o]]) (matcha/resource '?s '{?p ?o} [[?s ?p ?o]])
Expand All @@ -168,7 +168,8 @@ object. If on connection they should override the default on repo.
5. However there will be a new query syntax too, that I believe will 5. However there will be a new query syntax too, that I believe will
deliver what I originally wanted matcha construct's to do (the deliver what I originally wanted matcha construct's to do (the
unification stuff there was originally an experiment). This new unification stuff there was originally an experiment). This new
syntax will let you build UI data trees in a single query, e.g. syntax will let you build UI view-model data trees in a single
query, e.g.


#+BEGIN_SRC clojure #+BEGIN_SRC clojure
(matcha/pull [:dcat/record ^:many [:dcterms/title :dcterms/modified (matcha/pull [:dcat/record ^:many [:dcterms/title :dcterms/modified
Expand Down

0 comments on commit 758b826

Please sign in to comment.