guidotripaldi

guidotripaldi

Exploring Graphs with Elixir: wrong id in triple (page 126)

Exploring Graphs with Elixir by @tonyhammond

According to the shorten form sample at the beginning of the page, the id in the long form should be “pragprog”, instead of “pragmatic”

The basic folded pattern shows a subject followed by a set of property/object
pairs. If we were to write this out in long form with each statement written as
subject/property/object (and with namespace prefixes substituted) we would
arrive at classic RDF triples:

# Error:
# <https://pragprog.com/> <https://example/id> "pragmatic" .

# Correction:
<https://pragprog.com/> <https://example/id> "pragprog" .

<https://pragprog.com/> <https://example/iri> "https://pragprog.com/" .
<https://pragprog.com/> <https://example/name> "The Pragmatic Bookshelf" .
<https://pragprog.com/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
    <https://example/Publisher> .

Marked As Solved

tonyhammond

tonyhammond

Author of Exploring Graphs with Elixir

OK, just fixing that now but it’s better to change the short form RDF (on p. 125, 126) to match the long form RDF (on p. 126), so that we have

p. 125
:id “pragmatic” ;

p. 126
ex:id “pragmatic” ;
https://pragprog.com/ https://example/id “pragmatic”

This is consistent with labeling in diagram on p.8 and with the semantic version on p. 127.

And, btw, thanks for drawing my attention to this as I see I also had the wrong :id value for the book itself on pp. 125 and 127.

was
:id “ben_marx” ;

should be, of course,
:id “adopting_elixir” ;

Changes should be in bext beta.

Popular Prag Prog topics Top

Razor54672
The answer to 3rd Problem of Chapter 5 (Making Choices) of “Practical Programming, Third Edition” seems incorrect in the given answer ke...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
jskubick
I’m under the impression that when the reader gets to page 136 (“View Data with the Database Inspector”), the code SHOULD be able to buil...
New
taguniversalmachine
It seems the second code snippet is missing the code to set the current_user: current_user: Accounts.get_user_by_session_token(session["...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
bjnord
Hello @herbert ! Trying to get the very first “Hello, Bracket Terminal!" example to run (p. 53). I develop on an Amazon EC2 instance runn...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New
dachristenson
@mfazio23 Android Studio will not accept anything I do when trying to use the Transformations class, as described on pp. 140-141. Googl...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
New
AstonJ
Chris Seaton, the creator of TruffleRuby has died. It appears from suicide :cry: He left this note on Twitter on the weekend: And one...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New

Latest in PragProg

View all threads ❯