kinow commented on PR #208: URL: https://github.com/apache/jena-site/pull/208#issuecomment-2792065093
Bootstrap already has the `font-monospace` class. Maybe we can use it, or add a new class with `font-family: monospace`. ```diff diff --git a/source/documentation/query/construct-quad.md b/source/documentation/query/construct-quad.md index d4e8360f0..5dbe351fc 100644 --- a/source/documentation/query/construct-quad.md +++ b/source/documentation/query/construct-quad.md @@ -60,7 +60,7 @@ and no complex graph patterns are allowed in the short form). The keyword The normative definition of the syntax grammar of the query string is defined in this table: -<div style="font-family: monospace"> +<div class="font-monospace"> Rule | | Expression --------------------------|-----|------------------------ diff --git a/source/documentation/query/generate-json-from-sparql.md b/source/documentation/query/generate-json-from-sparql.md index d81751d3e..dbfbd3b00 100644 --- a/source/documentation/query/generate-json-from-sparql.md +++ b/source/documentation/query/generate-json-from-sparql.md @@ -89,12 +89,16 @@ key/value pair pattern, which could produce the following output for the query a The normative definition of the syntax grammar of the query string is defined in this table: +<div class="font-monospace"> + Rule | | Expression --------------------------|-----|------------------------ JsonQuery | ::= | JsonClause ( DatasetClause )\* WhereClause SolutionModifier JsonClause | ::= | 'JSON' '\{' JsonObjectMember ( ',' JsonObjectMember )\* '\}' JsonObjectMember | ::= | String ':' ( Var | RDFLiteral | NumericLiteral | BooleanLiteral ) +</div> + `DatasetClause`, `WhereClause`, `SolutionModifier`, `String`, `Var`, 'RDFLiteral', `NumericLiteral`, and 'BooleanLiteral' are as for the [SPARQL 1.1 Grammar](http://www.w3.org/TR/sparql11-query/#grammar) diff --git a/source/documentation/query/lateral-join.md b/source/documentation/query/lateral-join.md index 52894590e..e04b75639 100644 --- a/source/documentation/query/lateral-join.md +++ b/source/documentation/query/lateral-join.md @@ -131,11 +131,15 @@ available to "pattern". This is similar to an SQL `LATERAL` is added to the SPARQL grammar at rule `[[56] GraphPatternNotTriples](https://www.w3.org/TR/sparql11-query/#rGraphPatternNotTriples)`. As a syntax form, it is similar to `OPTIONAL`. -```ebnf -[56] GraphPatternNotTriples ::= GroupOrUnionGraphPattern | OptionalGraphPattern | LateralGraphPattern | ... -[57] OptionalGraphPattern ::= 'OPTIONAL' GroupGraphPattern -[ ] LateralGraphPattern ::= 'LATERAL' GroupGraphPattern -``` +<div class="font-monospace"> + +ID | Rule | | Expression +-------|--------------------------|-----|------------------------ +[56] | GraphPatternNotTriples | ::= | GroupOrUnionGraphPattern | OptionalGraphPattern | LateralGraphPattern | ... +[57] | OptionalGraphPattern | ::= | 'OPTIONAL' GroupGraphPattern +[ ] | LateralGraphPattern | ::= | 'LATERAL' GroupGraphPattern + +</div> ### Algebra ``` It also changes the page that was using fenceblocks for ebnf. -- 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