Skip to content

Commit 5d0d7a6

Browse files
committed
Hugo rebuild all branches
1 parent 3c760a3 commit 5d0d7a6

File tree

114 files changed

+603
-744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+603
-744
lines changed

published/aggregation/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>Recent content in Aggregations on A Tour of Dgraph</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en-us</language>
9-
<lastBuildDate>Thu, 27 Apr 2017 15:42:54 +1000</lastBuildDate>
9+
<lastBuildDate>Thu, 27 Apr 2017 15:42:57 +1000</lastBuildDate>
1010

1111
<atom:link href="https://tour.dgraph.io/aggregation/index.xml" rel="self" type="application/rss+xml" />
1212

published/basic/1/index.html

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,12 @@
588588
<h1 class="lesson-heading">Hello World</h1>
589589

590590
<div>
591-
592-
593-
<div class="notices note" >
594-
<span class="type">Note</span> <p>For the following queries to run, you should have loaded data in the <a href="../../intro/3/">introduction</a>.</p>
591+
<div class="notices note" >
592+
<span class="type">Note</span>
593+
For the following queries to run, you should have loaded data in the [introduction](../../intro/3/).
595594

596595
</div>
597596

598-
599597
<p>Let’s have a look at a hello world query in GraphQL+-.</p>
600598

601599
<p>Every query has a name, and the result is labelled with the same name.</p>
@@ -613,34 +611,32 @@ <h1 class="lesson-heading">Hello World</h1>
613611
<i class="fa fa-caret-down"></i> Show answer
614612
</a>
615613
<div class="expandable-content">
616-
<p>Find a name in the data and try</p>
617-
618-
<pre><code>{
619-
find_someone(func: eq(name, &quot;...name in here...&quot;)) {
614+
615+
Find a name in the data and try
616+
```
617+
{
618+
find_someone(func: eq(name, "...name in here...")) {
620619
name
621620
age
622621
}
623622
}
624-
</code></pre>
625-
626-
<p>Or look at the <code>UID</code>s in the data and try</p>
627-
628-
<pre><code>{
623+
```
624+
Or look at the `UID`s in the data and try
625+
```
626+
{
629627
find_someone(func: uid(...uid number here...)) {
630628
name
631629
age
632630
}
633631
}
634-
</code></pre>
635-
636-
<p>You can edit the queries and try whatever you like. When there are
632+
```
633+
You can edit the queries and try whatever you like. When there are
637634
answers like this, cut and paste them into the query panel, then edit and
638-
run them.</p>
635+
run them.
639636

640637
</div>
641638
</div>
642639

643-
644640
<p>The tutorial will handle the running of the query for you, so
645641
just focus on the query text. You can also learn about <a href="https://docs.dgraph.io/get-started/#step-3-run-queries">posting
646642
queries</a> or <a href="https://docs.dgraph.io/clients/">programming with Dgraph</a>.</p>

published/basic/11/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,9 @@ <h1 class="lesson-heading">How Dgraph Search Works</h1>
605605
<a data-action="toggle-expandable" href="#expand">
606606
<i class="fa fa-caret-down"></i> Show answer
607607
</a>
608-
<div class="expandable-content">
609-
<pre><code>{
608+
<div class="expandable-content"></p>
609+
610+
<pre><code>{
610611
lots_of_friends(func: ge(count(friend), 2)) @filter(ge(age, 20) AND lt(age, 30)) {
611612
name@.
612613
age
@@ -617,9 +618,8 @@ <h1 class="lesson-heading">How Dgraph Search Works</h1>
617618
}
618619
</code></pre>
619620

620-
</div>
621-
</div>
622-
</p>
621+
<p></div>
622+
</div></p>
623623

624624
</div>
625625
</div>

published/basic/15/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,12 @@ <h1 class="lesson-heading">Normalize</h1>
596596
<li><p>flattens the result to remove nesting</p></li>
597597
</ul>
598598

599-
600-
601599
<div class="notices tip" >
602-
<span class="type">Tip</span> <p>Aliased names can be the same as the original edge.</p>
600+
<span class="type">Tip</span>
601+
Aliased names can be the same as the original edge.
603602

604603
</div>
605604

606-
607605
</div>
608606
</div>
609607

published/basic/17/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,9 @@ <h1 class="lesson-heading">Facets : Edge attributes</h1>
614614
<a data-action="toggle-expandable" href="#expand">
615615
<i class="fa fa-caret-down"></i> Show answer
616616
</a>
617-
<div class="expandable-content">
618-
<pre><code>curl -H &quot;Content-Type: application/rdf&quot; localhost:8080/mutate?commitNow=true -XPOST -d $'
617+
<div class="expandable-content"></p>
618+
619+
<pre><code>curl -H &quot;Content-Type: application/rdf&quot; localhost:8080/mutate?commitNow=true -XPOST -d $'
619620
{
620621
set {
621622

@@ -657,9 +658,8 @@ <h1 class="lesson-heading">Facets : Edge attributes</h1>
657658
}' | python -m json.tool | less
658659
</code></pre>
659660

660-
</div>
661-
</div>
662-
</p>
661+
<p></div>
662+
</div></p>
663663

664664
<h3 id="add-multiple-attributes-to-a-third-single-node">Add multiple attributes to a third single node</h3>
665665

@@ -677,15 +677,15 @@ <h3 id="add-multiple-attributes-to-a-third-single-node">Add multiple attributes
677677
<a data-action="toggle-expandable" href="#expand">
678678
<i class="fa fa-caret-down"></i> Show answer
679679
</a>
680-
<div class="expandable-content">
681-
<pre><code>_:MyNode &lt;Morning&gt; &lt;0x0f43&gt; ( foo=true, and=1 , since=2006-02-02T13:01:09 ) .
680+
<div class="expandable-content"></p>
681+
682+
<pre><code>_:MyNode &lt;Morning&gt; &lt;0x0f43&gt; ( foo=true, and=1 , since=2006-02-02T13:01:09 ) .
682683
_:MyNode &lt;Evening&gt; &lt;0x0f43&gt; ( bar=false, and=2, since=2006-02-02T13:01:09 ) .
683684
_:MyNode &lt;Night&gt; &lt;0x22&gt; ( bar=true, and=3, since=2006-02-02T13:01:09 ) .
684685
</code></pre>
685686

686-
</div>
687-
</div>
688-
</p>
687+
<p></div>
688+
</div></p>
689689

690690
<p>If you do the same mutation above but using the same predicates instead of unique one. You gonna override the Edge attribute. Line by line. So you must to use distinct predicates.</p>
691691

published/basic/2/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,10 @@ <h1 class="lesson-heading">Graphs as results</h1>
606606
<i class="fa fa-caret-down"></i> Show answer
607607
</a>
608608
<div class="expandable-content">
609-
<pre><code>{
610-
michaels_pet(func: eq(name, &quot;Michael&quot;)) {
609+
610+
```
611+
{
612+
michaels_pet(func: eq(name, "Michael")) {
611613
name
612614
age
613615
friend {
@@ -618,12 +620,11 @@ <h1 class="lesson-heading">Graphs as results</h1>
618620
}
619621
}
620622
}
621-
</code></pre>
622-
623+
```
624+
623625
</div>
624626
</div>
625627

626-
627628
</div>
628629
</div>
629630

published/basic/5/index.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -609,10 +609,12 @@ <h1 class="lesson-heading">Queries describe graphs</h1>
609609
<i class="fa fa-caret-down"></i> Show answer
610610
</a>
611611
<div class="expandable-content">
612-
<p>Query Michael&rsquo;s friends&rsquo; pets:</p>
612+
613+
Query Michael's friends' pets:
613614

614-
<pre><code>{
615-
michael_friends_pets(func: eq(name, &quot;Michael&quot;)) {
615+
```
616+
{
617+
michael_friends_pets(func: eq(name, "Michael")) {
616618
name
617619
age
618620
friend {
@@ -623,12 +625,12 @@ <h1 class="lesson-heading">Queries describe graphs</h1>
623625
}
624626
}
625627
}
626-
</code></pre>
627-
628-
<p>Query Michael&rsquo;s friends&rsquo; friends:</p>
628+
```
629629

630-
<pre><code>{
631-
michael_friends_friends(func: allofterms(name, &quot;Michael&quot;)) {
630+
Query Michael's friends' friends:
631+
```
632+
{
633+
michael_friends_friends(func: allofterms(name, "Michael")) {
632634
name
633635
age
634636
friend {
@@ -639,12 +641,11 @@ <h1 class="lesson-heading">Queries describe graphs</h1>
639641
}
640642
}
641643
}
642-
</code></pre>
644+
```
643645

644646
</div>
645647
</div>
646648

647-
648649
<p>The idea is to formulate the query as a traversal
649650
through the graph, following edges to the desired data. The <code>uid</code>&rsquo;s in the JSON output allow
650651
interpretation as a graph rather than a tree. See, for example, the

published/basic/index.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>Recent content in Basics on A Tour of Dgraph</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en-us</language>
9-
<lastBuildDate>Wed, 26 Apr 2017 22:36:18 +1000</lastBuildDate>
9+
<lastBuildDate>Mon, 17 Sep 2018 16:11:42 +1000</lastBuildDate>
1010

1111
<atom:link href="https://tour.dgraph.io/basic/index.xml" rel="self" type="application/rss+xml" />
1212

@@ -17,8 +17,7 @@
1717
<pubDate>Wed, 26 Apr 2017 22:36:18 +1000</pubDate>
1818

1919
<guid>https://tour.dgraph.io/basic/1/</guid>
20-
<description>Note For the following queries to run, you should have loaded data in the introduction.
21-
Let’s have a look at a hello world query in GraphQL+-.
20+
<description>Note For the following queries to run, you should have loaded data in the [introduction](../../intro/3/). Let’s have a look at a hello world query in GraphQL+-.
2221
Every query has a name, and the result is labelled with the same name.
2322
The search criteria func: ... matches nodes. Function eq does what you&amp;rsquo;d expect, matching nodes with a name equalling &amp;ldquo;Michael&amp;rdquo;. The result is the matched nodes and listed outgoing edges from those nodes.</description>
2423
</item>
@@ -172,8 +171,7 @@ In the query below, Dgraph returns all Michael&amp;rsquo;s friends, and only the
172171
<description>The @normalize directive
173172
returns only edges listed with an alias, and
174173
flattens the result to remove nesting
175-
Tip Aliased names can be the same as the original edge.
176-
</description>
174+
Tip Aliased names can be the same as the original edge. </description>
177175
</item>
178176

179177
<item>

published/blocksvars/1/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,12 @@
588588
<h1 class="lesson-heading">Multiple Named Query Blocks</h1>
589589

590590
<div>
591-
592-
593-
<div class="notices note" >
594-
<span class="type">Note</span> <p>From now on, to run the queries, you&rsquo;ll need to have loaded the <a href="../../moredata/1/">million triple movie dataset</a>.</p>
591+
<div class="notices note" >
592+
<span class="type">Note</span>
593+
From now on, to run the queries, you'll need to have loaded the [million triple movie dataset](../../moredata/1/).
595594

596595
</div>
597596

598-
599597
<p>Queries can be issued as multiples.</p>
600598

601599
<p>For queries labelled <code>q1, ..., qn</code> issued as a multiple query block, the JSON

published/blocksvars/11/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,9 @@ <h1 class="lesson-heading">Exercise : Latest Movies</h1>
595595
<a data-action="toggle-expandable" href="#expand">
596596
<i class="fa fa-caret-down"></i> Show answer
597597
</a>
598-
<div class="expandable-content">
599-
<p>To solve this, you&rsquo;ll need to</p>
598+
<div class="expandable-content"></p>
599+
600+
<p>To solve this, you&rsquo;ll need to</p>
600601

601602
<ul>
602603
<li>work out how to query for all directors - what have directors done that make them directors?</li>
@@ -607,17 +608,17 @@ <h1 class="lesson-heading">Exercise : Latest Movies</h1>
607608
<li>for something extra, try using <code>since</code> to work out how many days since the movie was released (or how many days till release, for some)</li>
608609
</ul>
609610

610-
</div>
611-
</div>
612-
</p>
611+
<p></div>
612+
</div></p>
613613

614614
<p>Spoiler alert:
615615
<div class="expandable">
616616
<a data-action="toggle-expandable" href="#expand">
617617
<i class="fa fa-caret-down"></i> Show answer
618618
</a>
619-
<div class="expandable-content">
620-
<pre><code>{ # Get all directors
619+
<div class="expandable-content"></p>
620+
621+
<pre><code>{ # Get all directors
621622
var(func: has(director.film)) @cascade {
622623
director.film {
623624
date as initial_release_date
@@ -641,9 +642,8 @@ <h1 class="lesson-heading">Exercise : Latest Movies</h1>
641642
}
642643
</code></pre>
643644

644-
</div>
645-
</div>
646-
</p>
645+
<p></div>
646+
</div></p>
647647

648648
</div>
649649
</div>

0 commit comments

Comments
 (0)