afs commented on code in PR #149:
URL: https://github.com/apache/jena-site/pull/149#discussion_r1123080040


##########
source/documentation/query/lateral-join.md:
##########
@@ -16,22 +16,26 @@ sub-patterns.
 Another way to think of a lateral join is as a `flatmap`.
 
 Examples:
-```
+
+```sparql
 ## Get exactly one label for each subject with type `:T`
 SELECT * {
-   ?s rdf:type :T
-   LATERAL {
-     SELECT * { ?s rdfs:label ?label } LIMIT 1
-   }
+  ?s rdf:type :T
+  LATERAL {
+    SELECT * { ?s rdfs:label ?label } LIMIT 1
+  }
 }
 ```
 
-```
+```sparql
 ## Get zero or one labels for each subject.
 SELECT * {
-   ?s ?p ?o
-   LATERAL { OPTIONAL { SELECT * ?s rdfs:label ?label } LIMIT 1}

Review Comment:
   Thanks for the fix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jena.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to