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.

Where Next?

Popular Pragmatic Bookshelf topics Top

jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |&gt; handle_event() |&gt; render() but the correc...
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 running Android Studio “Arctic Fox” 2020.3.1 Patch 2, and I’m embarrassed to admit that I only made it to page 8 before running into ...
New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New

Sub Categories: