Merge pull request #42 from kinow/use-main-1

Use main instead of master
diff --git a/README.md b/README.md
index a1003de..81f8691 100644
--- a/README.md
+++ b/README.md
@@ -23,11 +23,11 @@
 ## Repository structure
 
 This repository uses 3 branches for building the website.
-- The `master` branch, which contains all the sources for the website.
+- The `main` branch, which contains all the sources for the website.
 - The `asf-site` branch, which contains the generated website being used for the actual website.
 - The `javadoc` branch, which has the javadoc to be published at 
 
-When contributing patches, please create pull requests for the `master` branch.
+When contributing patches, please create pull requests for the `main` branch.
 
 ## Content Management System
 
diff --git a/build-script b/build-script
deleted file mode 100644
index 037ac03..0000000
--- a/build-script
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-## Copy of the script for the Jenkins job "Jena_Site"
-## https://builds.apache.org/job/Jena_Site
-
-## -------------------
-
-# Specify source and site branches
-SOURCE="master"
-SITE="asf-site"
-SOURCE_DIR=${PWD}
-
-git checkout ${SOURCE}
-git pull origin ${SOURCE}
-
-# Install Hugo
-TMP_HUGO_DIR="$(mktemp -d)"
-mkdir -p "${TMP_HUGO_DIR}/bin"
-cd "${TMP_HUGO_DIR}" || exit 1
-wget --no-verbose -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.66.0/hugo_extended_0.66.0_Linux-64bit.tar.gz
-tar xfzv hugo.tar.gz
-mv hugo "${TMP_HUGO_DIR}/bin/"
-export PATH="${TMP_HUGO_DIR}/bin:$PATH"
-
-# Get commit info
-cd "${SOURCE_DIR}" || exit 1
-LAST_SHA=( $(git log -n 1 --pretty=format:"%H") )
-
-# Create temporary directory
-TMP_DIR="$(mktemp -d)"
-OUT_DIR="${TMP_DIR}/content"
-mkdir -p "${OUT_DIR}"
-
-# Build the site  to our temporary folder
-hugo --destination "${OUT_DIR}"
-if [ $? = 0 ]; then
-  echo "Hugo build successful"
-else
-  echo "Hugo build failed"
-  exit 1
-fi
-
-# Switch to the SITE branch
-git checkout "${SITE}"
-git pull origin "${SITE}"
-
-# Remove the current contents of the SITE branch and replace them with the contents of the temp folder
-rm -rf "${SOURCE_DIR}/content"
-git rm -r --cached content/*
-mkdir -p "${SOURCE_DIR}/content"
-cp -rT "${TMP_DIR}"/* "${SOURCE_DIR}/content"
-
-# Commit the changes to the SITE branch
-COMMIT_MESSAGE="Updated site from ${SOURCE} (${LAST_SHA})"
-git add -A
-git commit -m "${COMMIT_MESSAGE}" | true
-
-# Delete the temporary folders
-rm -rf "${TMP_DIR}"
-rm -rf "${TMP_HUGO_DIR}"
-
-# Push the SITE to the server
-git push -u origin ${SITE}
-if [ $? = 0 ]; then
-  echo "Push ${SITE} successful"
-else
-  echo "Push ${SITE} failed"
-fi
-
-# Switch back to SOURCE branch
-git checkout "${SOURCE}"
diff --git a/config.toml b/config.toml
index bbbb6ad..e88b22a 100644
--- a/config.toml
+++ b/config.toml
@@ -34,7 +34,7 @@
 
 [params]
 repositoryUrl = "https://github.com/apache/jena"
-repositorySourceBranch = "master"
+repositorySourceBranch = "main"
 
 siteRepositoryUrl = "https://github.com/apache/jena-site"
-siteRepositorySourceBranch = "master"
+siteRepositorySourceBranch = "main"
diff --git a/source/documentation/csv/__index.md b/source/documentation/csv/__index.md
index d4076a1..34ca6cb 100644
--- a/source/documentation/csv/__index.md
+++ b/source/documentation/csv/__index.md
@@ -6,6 +6,6 @@
 ----
 > This page covers the jena-csv module which has been retired.<br/>
 > The last release of Jena with this module is Jena 3.9.0.<br/>
-> See [jena-csv/README.md](https://github.com/apache/jena/tree/master/jena-csv).<br/>
+> See [jena-csv/README.md](https://github.com/apache/jena/tree/main/jena-csv).<br/>
 > The [original documentation](csv_index.html).
 ----
diff --git a/source/documentation/csv/csv_index.md b/source/documentation/csv/csv_index.md
index 8655742..c067eb5 100644
--- a/source/documentation/csv/csv_index.md
+++ b/source/documentation/csv/csv_index.md
@@ -5,7 +5,7 @@
 ----
 > This page covers the jena-csv module which has been retired.
 > The last release of Jena with this module is Jena 3.9.0.
-> See [jena-csv/README.md](https://github.com/apache/jena/tree/master/jena-csv).
+> See [jena-csv/README.md](https://github.com/apache/jena/tree/main/jena-csv).
 > This is the original documentation.
 ----
 
diff --git a/source/documentation/csv/design.md b/source/documentation/csv/design.md
index c8ebf11..a8c9a8b 100644
--- a/source/documentation/csv/design.md
+++ b/source/documentation/csv/design.md
@@ -6,8 +6,8 @@
 
 The architecture of CSV PropertyTable mainly involves 2 components:
 
--    [PropertyTable](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/PropertyTable.java)
--    [GraphPropertyTable](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/GraphPropertyTable.java)
+-    [PropertyTable](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/PropertyTable.java)
+-    [GraphPropertyTable](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/GraphPropertyTable.java)
 
 ![Picture of architecture of jena-csv](jena-csv-architecture.png "Architecture of jena-csv")
 
@@ -23,9 +23,9 @@
 -    can guarantee access orders
 
 More explicitly, `PropertyTable` is designed to be a table of RDF terms, or 
-[Nodes](https://github.com/apache/jena/tree/master/jena-core/src/main/java/org/apache/jena/graph/Node.java) in Jena. 
-Each [Column](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/Column.java) of the `PropertyTable` has an unique columnKey `Node` of the predicate (or p for short).
-Each [Row](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/Row.java) of the `PropertyTable` has an unique rowKey `Node` of the subject (or s for short).
+[Nodes](https://github.com/apache/jena/tree/main/jena-core/src/main/java/org/apache/jena/graph/Node.java) in Jena. 
+Each [Column](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/Column.java) of the `PropertyTable` has an unique columnKey `Node` of the predicate (or p for short).
+Each [Row](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/Row.java) of the `PropertyTable` has an unique rowKey `Node` of the subject (or s for short).
 You can use `getColumn()` to get the `Column` by its columnKey `Node` of the predicate, while `getRow()` for `Row`.
 
 A `PropertyTable` should be constructed in this workflow (in order):
@@ -38,8 +38,8 @@
 
 ## GraphPropertyTable
 
-`GraphPropertyTable` implements the [Graph](https://github.com/apache/jena/tree/master/jena-core/src/main/java/org/apache/jena/graph/Graph.java) interface (read-only) over a `PropertyTable`. 
-This is subclass from [GraphBase](https://github.com/apache/jena/tree/master/jena-core/src/main/java/org/apache/jena/graph/impl/GraphBase.java) and implements `find()`. 
+`GraphPropertyTable` implements the [Graph](https://github.com/apache/jena/tree/main/jena-core/src/main/java/org/apache/jena/graph/Graph.java) interface (read-only) over a `PropertyTable`. 
+This is subclass from [GraphBase](https://github.com/apache/jena/tree/main/jena-core/src/main/java/org/apache/jena/graph/impl/GraphBase.java) and implements `find()`. 
 The `graphBaseFind()`(for matching a `Triple`) and `propertyTableBaseFind()`(for matching a whole `Row`) methods can choose the access route based on the find arguments.
 `GraphPropertyTable` holds/wraps a reference of the `PropertyTable` instance, so that such a `Graph` can be treated in a more table-like fashion.
 
@@ -48,7 +48,7 @@
 
 ## GraphCSV
 
-[GraphCSV](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/GraphCSV.java) is a sub class of GraphPropertyTable aiming at CSV data.
+[GraphCSV](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/GraphCSV.java) is a sub class of GraphPropertyTable aiming at CSV data.
 Its constructor takes a CSV file path as the parameter, parse the file using a CSV Parser, and makes a `PropertyTable` through `PropertyTableBuilder`.
 
 For CSV to RDF mapping, we establish some basic principles:
diff --git a/source/documentation/csv/get_started.md b/source/documentation/csv/get_started.md
index d9e1e86..4099243 100644
--- a/source/documentation/csv/get_started.md
+++ b/source/documentation/csv/get_started.md
@@ -26,7 +26,7 @@
 
 ### GraphCSV
 
-[GraphCSV](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/graph/GraphCSV.java) wrappers a CSV file as a Graph, which makes a Model for SPARQL query:
+[GraphCSV](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/graph/GraphCSV.java) wrappers a CSV file as a Graph, which makes a Model for SPARQL query:
 
     Model model = ModelFactory.createModelForGraph(new GraphCSV("data.csv")) ;
     QueryExecution qExec = QueryExecutionFactory.create(query, model) ;
@@ -42,7 +42,7 @@
     dataset.addNamedModel("http://example/other", other) ;
     ... normal SPARQL execution ...
 
-You can also find the full examples from [GraphCSVTest](https://github.com/apache/jena/tree/master/jena-csv/src/test/java/org/apache/jena/propertytable/graph/GraphCSVTest.java).
+You can also find the full examples from [GraphCSVTest](https://github.com/apache/jena/tree/main/jena-csv/src/test/java/org/apache/jena/propertytable/graph/GraphCSVTest.java).
 
 In short, for Jena ARQ, a CSV table is actually a Graph (i.e. GraphCSV), without any differences from other types of Graphs when using it from the Jena ARQ API.
 
@@ -64,7 +64,7 @@
 
 ## Command Line Tool
 
-[csv2rdf](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/riotcmd/csv2rdf.java) is a tool for direct transforming from CSV to the formatted RDF syntax of N-Triples.
+[csv2rdf](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/riotcmd/csv2rdf.java) is a tool for direct transforming from CSV to the formatted RDF syntax of N-Triples.
 The script calls the `csv2rdf` java program in the `riotcmd` package in this way:
 
     java -cp ... riotcmdx.csv2rdf inputFile ...
diff --git a/source/documentation/csv/implementation.md b/source/documentation/csv/implementation.md
index 8dfaeed..941c91f 100644
--- a/source/documentation/csv/implementation.md
+++ b/source/documentation/csv/implementation.md
@@ -11,8 +11,8 @@
 `PropertyTableArrayImpl` | implemented by a two-dimensioned Java array of `Nodes`| SPO, PSO | compact memory usage, fast for querying with S and P, fast for query a whole `Row` | slow for query with O, table Row/Column size provided |
 `PropertyTableHashMapImpl` | implemented by several Java `HashMaps` | PSO, POS | fast for querying with O, table Row/Column size not required | more memory usage for HashMaps |
 
-By default, [PropertyTableArrayImpl]((https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/PropertyTableArrayImpl.java) is used as the `PropertyTable` implementation held by `GraphCSV`.
-If you want to switch to [PropertyTableHashMapImpl](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/PropertyTableHashMapImpl.java), just use the static method of `GraphCSV.createHashMapImpl()` to replace the default `new GraphCSV()` way.
+By default, [PropertyTableArrayImpl]((https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/PropertyTableArrayImpl.java) is used as the `PropertyTable` implementation held by `GraphCSV`.
+If you want to switch to [PropertyTableHashMapImpl](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/PropertyTableHashMapImpl.java), just use the static method of `GraphCSV.createHashMapImpl()` to replace the default `new GraphCSV()` way.
 Here is an example:
 
     Model model_csv_array_impl = ModelFactory.createModelForGraph(new GraphCSV(file)); // PropertyTableArrayImpl
@@ -32,10 +32,10 @@
 It's made by using the extension point of `StageGenerator`, because it's now just concerned with `BasicPattern`.
 The detailed workflow goes in this way:
 
-1.    Split the incoming `BasicPattern` by subjects, (i.e. it becomes multiple sub BasicPatterns grouped by the same subjects. (see [QueryIterPropertyTable](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/QueryIterPropertyTable.java) )
-2.    For each sub `BasicPattern`, if the `Triple` size within is greater than 1 (i.e. at least 2 `Triples`), it's turned into a `Row` querying, and processed by [QueryIterPropertyTableRow](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/QueryIterPropertyTableRow.java), else if it contains only 1 `Triple`, it goes for the traditional `Triple` querying by `graph.graphBaseFind()`
+1.    Split the incoming `BasicPattern` by subjects, (i.e. it becomes multiple sub BasicPatterns grouped by the same subjects. (see [QueryIterPropertyTable](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/QueryIterPropertyTable.java) )
+2.    For each sub `BasicPattern`, if the `Triple` size within is greater than 1 (i.e. at least 2 `Triples`), it's turned into a `Row` querying, and processed by [QueryIterPropertyTableRow](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/QueryIterPropertyTableRow.java), else if it contains only 1 `Triple`, it goes for the traditional `Triple` querying by `graph.graphBaseFind()`
 
-In order to turn on this optimization, we need to register the [StageGeneratorPropertyTable](https://github.com/apache/jena/tree/master/jena-csv/src/main/java/org/apache/jena/propertytable/impl/StageGeneratorPropertyTable.java) into ARQ context, before performing SPARQL querying:
+In order to turn on this optimization, we need to register the [StageGeneratorPropertyTable](https://github.com/apache/jena/tree/main/jena-csv/src/main/java/org/apache/jena/propertytable/impl/StageGeneratorPropertyTable.java) into ARQ context, before performing SPARQL querying:
 
     StageGenerator orig = (StageGenerator)ARQ.getContext().get(ARQ.stageGenerator) ;
     StageGenerator stageGenerator = new StageGeneratorPropertyTable(orig) ;
diff --git a/source/documentation/fuseki2/__index.md b/source/documentation/fuseki2/__index.md
index a5e8729..1893d5e 100644
--- a/source/documentation/fuseki2/__index.md
+++ b/source/documentation/fuseki2/__index.md
@@ -117,7 +117,7 @@
 [SNAPSHOT](https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-fuseki/)
 
 Source code:
-[https://github.com/apache/jena/tree/master/jena-fuseki2](https://github.com/apache/jena/tree/master/jena-fuseki2)
+[https://github.com/apache/jena/tree/main/jena-fuseki2](https://github.com/apache/jena/tree/main/jena-fuseki2)
 
 The Fuseki module are under "jena-fuseki2/":
 
diff --git a/source/documentation/fuseki2/fuseki-configuration.md b/source/documentation/fuseki2/fuseki-configuration.md
index c973c82..ceaa746 100644
--- a/source/documentation/fuseki2/fuseki-configuration.md
+++ b/source/documentation/fuseki2/fuseki-configuration.md
@@ -25,7 +25,7 @@
 
 ## Examples
 
-Example server configuration files can be found at [jena-fuseki2/examples](https://github.com/apache/jena/tree/master/jena-fuseki2/examples).
+Example server configuration files can be found at [jena-fuseki2/examples](https://github.com/apache/jena/tree/main/jena-fuseki2/examples).
 
 ## Security and Access Control
 
diff --git a/source/documentation/fuseki2/fuseki-logging.md b/source/documentation/fuseki2/fuseki-logging.md
index 846c85f..ccbf0be 100644
--- a/source/documentation/fuseki2/fuseki-logging.md
+++ b/source/documentation/fuseki2/fuseki-logging.md
@@ -55,7 +55,7 @@
 
 ## Default setting
 
-The [default log4j2.properties](https://github.com/apache/jena/blob/master/jena-fuseki2/apache-jena-fuseki/log4j2.properties).
+The [default log4j2.properties](https://github.com/apache/jena/blob/main/jena-fuseki2/apache-jena-fuseki/log4j2.properties).
 
 ## Logrotate
 
diff --git a/source/documentation/io/rdf-input.md b/source/documentation/io/rdf-input.md
index 75cfcd7..feaf8d7 100644
--- a/source/documentation/io/rdf-input.md
+++ b/source/documentation/io/rdf-input.md
@@ -234,7 +234,7 @@
 
 ## Advanced examples
 
-Example code may be found in [jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).
+Example code may be found in [jena-arq/src-examples](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples/riot/).
 
 ### Iterating over parser output
 
@@ -243,8 +243,8 @@
 logic in normal iterator style.
 
 To do this you use one of the subclasses of
-[PipedRDFIterator](https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup)
-in conjunction with a [PipedRDFStream](https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup).
+[PipedRDFIterator](https://github.com/apache/jena/tree/main/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup)
+in conjunction with a [PipedRDFStream](https://github.com/apache/jena/tree/main/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup).
 
 This `PipedRDFStream` provides an implementation of `StreamRDF` which allows it to consume parser output and this is consumed by
 the `PipedRDFIterator` implementation.  This has some advantages over a direct `StreamRDF` implementation since it allows the parser
@@ -268,4 +268,4 @@
 
 The set of languages is not fixed. A new language, 
 together with a parser, can be added to RIOT as shown in
-[RIOT example 5](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT5_StreamRDFCollect.java)
+[RIOT example 5](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples/riot/ExRIOT5_StreamRDFCollect.java)
diff --git a/source/documentation/io/rdf-output.md b/source/documentation/io/rdf-output.md
index 6426c71..4f078cf 100644
--- a/source/documentation/io/rdf-output.md
+++ b/source/documentation/io/rdf-output.md
@@ -367,7 +367,7 @@
 cases.
 
 What can be done, and how it can be, is explained in the 
-[sample code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/Ex_WriteJsonLD.java).
+[sample code](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples/riot/Ex_WriteJsonLD.java).
 
 ### RDF Binary {#rdf-thrift}
 
@@ -398,7 +398,7 @@
 
 ## Examples {#examples}
 
-Example code may be found in [jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).
+Example code may be found in [jena-arq/src-examples](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples/riot/).
 
 ### Ways to write a model
 
@@ -452,7 +452,7 @@
 ### Adding a new output format
 
 A complete example of adding a new output format is given in the example file: 
-[RIOT Output example 7](https://github.com/apache/jena/blob/master/jena-arq/src-examples/arq/examples/riot/ExRIOT7_AddNewWriter.java).
+[RIOT Output example 7](https://github.com/apache/jena/blob/main/jena-arq/src-examples/arq/examples/riot/ExRIOT7_AddNewWriter.java).
 
 ## Notes {#notes}
 
diff --git a/source/documentation/notes/jena-repack.md b/source/documentation/notes/jena-repack.md
index bf53c68..544d84e 100644
--- a/source/documentation/notes/jena-repack.md
+++ b/source/documentation/notes/jena-repack.md
@@ -39,7 +39,7 @@
         </transformers>
 
 See
-[jena-fuseki2/jena-fuseki-server/pom.xml](https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-server/pom.xml)
+[jena-fuseki2/jena-fuseki-server/pom.xml](https://github.com/apache/jena/blob/main/jena-fuseki2/jena-fuseki-server/pom.xml)
 for the complete shade plugin setup used by Fuseki.
 
 If doing manually, create a single file in your application jar the
diff --git a/source/documentation/ontology/__index.md b/source/documentation/ontology/__index.md
index cc28354..bbd04d8 100644
--- a/source/documentation/ontology/__index.md
+++ b/source/documentation/ontology/__index.md
@@ -399,7 +399,7 @@
 and activities associated with a typical academic conference. A
 copy of the ontology serialized in RDF/XML is included with the
 Jena download, see:
-[[`eswc-2006-09-21.rdf`](https://raw.githubusercontent.com/apache/jena/master/jena-core/src-examples/data/eswc-2006-09-21.rdf)]
+[[`eswc-2006-09-21.rdf`](https://raw.githubusercontent.com/apache/jena/main/jena-core/src-examples/data/eswc-2006-09-21.rdf)]
 (note that you may need to view the page source in some browsers to
 see the XML code).
 
diff --git a/source/documentation/query/custom_aggregates.md b/source/documentation/query/custom_aggregates.md
index fa5d2ac..a03521e 100644
--- a/source/documentation/query/custom_aggregates.md
+++ b/source/documentation/query/custom_aggregates.md
@@ -4,4 +4,4 @@
 
 ARQ supports custom aggregate functions as allowed by the SPARQL 1.1 specification.
 
-See [example code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/aggregates).
+See [example code](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples/aggregates).
diff --git a/source/documentation/query/library-function.md b/source/documentation/query/library-function.md
index f08575a..6fc3cb0 100644
--- a/source/documentation/query/library-function.md
+++ b/source/documentation/query/library-function.md
@@ -25,7 +25,7 @@
 
 See [XSD Support](xsd-support.html) for details of datatypes and functions
 currently supported.  To check the exact current registrations, see
-<tt>[function/StandardFunctions.java](https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/function/StandardFunctions.java)</tt>.
+<tt>[function/StandardFunctions.java](https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/sparql/function/StandardFunctions.java)</tt>.
 
 See also the [property functions](library-propfunc.html) library
 page.
diff --git a/source/documentation/query/programmatic.md b/source/documentation/query/programmatic.md
index ab9cd30..f648f5d 100644
--- a/source/documentation/query/programmatic.md
+++ b/source/documentation/query/programmatic.md
@@ -11,7 +11,7 @@
 distribution, particularly `arq.examples.AlgebraExec`.
 
 * [src-examples at gitbox.apache.org](https://gitbox.apache.org/repos/asf?p=jena.git;a=tree;f=jena-arq/src-examples/arq/examples)
-* [src-examples at github.com](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples)
+* [src-examples at github.com](https://github.com/apache/jena/tree/main/jena-arq/src-examples/arq/examples)
 
 See also [ARQ - SPARQL Algebra](algebra.html)
 
diff --git a/source/documentation/query/spatial-query.md b/source/documentation/query/spatial-query.md
index c6ec530..b38c573 100644
--- a/source/documentation/query/spatial-query.md
+++ b/source/documentation/query/spatial-query.md
@@ -15,7 +15,7 @@
 same-machine spatial index, or [Apache Solr](http://lucene.apache.org/solr/)
 for a large scale enterprise search application.
 
-Some example code is [available here](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/examples/).
+Some example code is [available here](https://github.com/apache/jena/tree/main/jena-spatial/src/main/java/examples/).
 
 *Illustration*
 
@@ -95,7 +95,7 @@
 which is under LGPL licence. jena-spatial **does not** make a hard dependency on JTS. In other words,
 if an end user just uses the feature of 1), there's no need to depend on JTS (i.e. nothing needs to be done). If he wants 2),
 he can make it by setting the `SpatialContextFactory` of 
-[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
+[EntityDefinition](https://github.com/apache/jena/tree/main/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
 to `JtsSpatialContextFactory`, which is an optional choice. In this way, the JTS libs should be in the classpath. Here's the sample code: 
 
     import org.apache.jena.query.spatial.EntityDefinition
@@ -111,7 +111,7 @@
 However, there may be more predicates for other data sources for both 1) and 2).
 jena-spatial provides an interface for consuming all kinds of custom geo predicates.
 You can simply add predicates to let jena-spatial recognize them using 
-[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java):
+[EntityDefinition](https://github.com/apache/jena/tree/main/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java):
 
     import org.apache.jena.query.spatial.EntityDefinition
     ...
@@ -127,7 +127,7 @@
     Resource wkt_1 = ResourceFactory.createResource("http://localhost/jena_example/#wkt_1");
     entDef.addWKTPredicate( wkt_1 );
 
-See more supported [geo data examples](https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/geoarq-data-1.ttl)
+See more supported [geo data examples](https://github.com/apache/jena/tree/main/jena-spatial/src/test/resources/geoarq-data-1.ttl)
 
 ### Load Geo Data into Spatial Dataset
 
@@ -163,7 +163,7 @@
 The usual way to describe an index is with a [Jena assembler description](/documentation/assembler/index.html). Configurations can also be built with [code](#how-to-use-it-by-code). The assembler describes a "spatial dataset" which has an underlying RDF dataset and a spatial index. The spatial index describes the spatial index technology (Lucene or Solr) and the details needed for each.
 
 A spatial index has an 
-[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
+[EntityDefinition](https://github.com/apache/jena/tree/main/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
 which defines the properties to index, the name of the lucene/solr field used for storing the URI itself (e.g. "entityField") and its geo information (e.g. latitude/longitude as "geoField"), and the custom geo predicates.
 
 For common RDF spatial query, only "entityField" and "geoField" are required with the [builtin geo predicates](#builtin-geo-predicates) working well. More complex setups, with multiple [custom geo predicates](#custom-geo-predicates) besides the two fields are possible.
@@ -229,7 +229,7 @@
 Besides Lucene, jena-spatial can work with Solr for spatial query, powered by [Lucene / Solr 4 Spatial](http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4) and [Solrj](http://wiki.apache.org/solr/Solrj).
 
 It's required to add the field definitions for "entityField" and "geoField" respectively in `schema.xml` of Solr.
-The names of the fields in [EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java) should be in accordance with those in `schema.xml`.
+The names of the fields in [EntityDefinition](https://github.com/apache/jena/tree/main/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java) should be in accordance with those in `schema.xml`.
 Here is an example defining the names of "entityField" as "uri" and "geoField" as "geo":
 
     <field name="uri" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
@@ -248,8 +248,8 @@
 The above is the least required configuration to run jena-spatial in Solr.
 For more information about the configuration, please check the [Lucene / Solr 4 Spatial](http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4) documentation.
  
-There are also some demonstrations of the usage of Solr in the [unit tests](https://github.com/apache/jena/tree/master/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr) of jena-spatial.
-They use a `EmbeddedSolrServer`with a `SOLR_HOME` sample [here](https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/SolrHome).
+There are also some demonstrations of the usage of Solr in the [unit tests](https://github.com/apache/jena/tree/main/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr) of jena-spatial.
+They use a `EmbeddedSolrServer`with a `SOLR_HOME` sample [here](https://github.com/apache/jena/tree/main/jena-spatial/src/test/resources/SolrHome).
 
 ## Working with Fuseki
 
diff --git a/source/documentation/query/text-query.md b/source/documentation/query/text-query.md
index 0e3f37f..bc342de 100644
--- a/source/documentation/query/text-query.md
+++ b/source/documentation/query/text-query.md
@@ -68,7 +68,7 @@
 enterprise search application where the full text engine is potentially
 distributed across separate machines.
 
-This [example code](https://github.com/apache/jena/tree/master/jena-text/src/main/java/examples/)
+This [example code](https://github.com/apache/jena/tree/main/jena-text/src/main/java/examples/)
 illustrates creating an in-memory dataset with a Lucene index.
 
 ## Table of Contents
diff --git a/source/documentation/query/xsd-support.md b/source/documentation/query/xsd-support.md
index 2bd596f..47d1555 100644
--- a/source/documentation/query/xsd-support.md
+++ b/source/documentation/query/xsd-support.md
@@ -12,7 +12,7 @@
 The prefix `math` is `<http://www.w3.org/2005/xpath-functions/math#>`
 
 To check the exact registrations for a specific version, see
-<tt>[function/StandardFunctions.java](https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/function/StandardFunctions.java)</tt>
+<tt>[function/StandardFunctions.java](https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/sparql/function/StandardFunctions.java)</tt>
 in the source code for that version.
 
 The supported datatypes (including those required by SPARQL 1.1), including
diff --git a/source/documentation/rdfconnection/__index.md b/source/documentation/rdfconnection/__index.md
index a9f50cc..d676e0d 100644
--- a/source/documentation/rdfconnection/__index.md
+++ b/source/documentation/rdfconnection/__index.md
@@ -121,9 +121,9 @@
 which uses default settings used by `RDFConenctionFactory.connect`.
 
 See [example
-4](https://github.com/apache/jena/blob/master/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample4.java)
+4](https://github.com/apache/jena/blob/main/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample4.java)
 and [example
-5](https://github.com/apache/jena/blob/master/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample5.java).
+5](https://github.com/apache/jena/blob/main/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample5.java).
 
 There are many options, including setting HTTP headers for content types
 ([javadoc](/documentation/javadoc/rdfconnection/index.html))
@@ -142,7 +142,7 @@
 blank nodes.
 
 See [example
-6](https://github.com/apache/jena/blob/master/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample6.java).
+6](https://github.com/apache/jena/blob/main/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples/RDFConnectionExample6.java).
 
 ## Graph Store Protocol
 
@@ -249,5 +249,5 @@
 
 ## Examples
 
-* for simple usage examples see <a href="https://github.com/apache/jena/tree/master/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples">https://github.com/apache/jena/tree/master/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples</a>.
-* for example of how to use with StreamRDF see <a href="https://github.com/apache/jena/blob/master/jena-examples/src/main/java/org/apache/jena/example/streaming/StreamRDFToConnection.java">https://github.com/apache/jena/blob/master/jena-examples/src/main/java/org/apache/jena/example/streaming/StreamRDFToConnection.java</a>.
+* for simple usage examples see <a href="https://github.com/apache/jena/tree/main/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples">https://github.com/apache/jena/tree/main/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/examples</a>.
+* for example of how to use with StreamRDF see <a href="https://github.com/apache/jena/blob/main/jena-examples/src/main/java/org/apache/jena/example/streaming/StreamRDFToConnection.java">https://github.com/apache/jena/blob/main/jena-examples/src/main/java/org/apache/jena/example/streaming/StreamRDFToConnection.java</a>.
diff --git a/source/documentation/shacl/__index.md b/source/documentation/shacl/__index.md
index 06d85d3..724af50 100644
--- a/source/documentation/shacl/__index.md
+++ b/source/documentation/shacl/__index.md
@@ -90,11 +90,11 @@
 
 ## API Examples
 
-https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples
+https://github.com/apache/jena/tree/main/jena-shacl/src/main/java/org/apache/jena/shacl/examples
 
 Example
 [`Shacl01_validateGraph`](
-https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples/Shacl01_validateGraph.java)
+https://github.com/apache/jena/tree/main/jena-shacl/src/main/java/org/apache/jena/shacl/examples/Shacl01_validateGraph.java)
 shows validation and printing of the validation report in a text form and in RDF:
 
     public static void main(String ...args) {
@@ -113,7 +113,7 @@
     }
 
 Example
-[`Shacl02_validateTransaction`](https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples/Shacl02_validateTransaction.java)
+[`Shacl02_validateTransaction`](https://github.com/apache/jena/tree/main/jena-shacl/src/main/java/org/apache/jena/shacl/examples/Shacl02_validateTransaction.java)
 shows how to update a graph only if, after the changes, the graph is validated
 according to the shapes provided.
 
diff --git a/source/documentation/tdb2/tdb2_fuseki.md b/source/documentation/tdb2/tdb2_fuseki.md
index 2fd7455..ce8b1bc 100644
--- a/source/documentation/tdb2/tdb2_fuseki.md
+++ b/source/documentation/tdb2/tdb2_fuseki.md
@@ -49,7 +49,7 @@
         .
 </pre>
 
-This example is available in [config-tdb2.ttl](https://github.com/apache/jena/blob/master/jena-fuseki2/examples/config-tdb2.ttl)
+This example is available in [config-tdb2.ttl](https://github.com/apache/jena/blob/main/jena-fuseki2/examples/config-tdb2.ttl)
 
 The key difference is the declared `rdf:type` of the dataset.
 
diff --git a/source/documentation/tools/__index.md b/source/documentation/tools/__index.md
index 8a0222d..b5ef3e3 100644
--- a/source/documentation/tools/__index.md
+++ b/source/documentation/tools/__index.md
@@ -59,7 +59,7 @@
 Windows users may experience problems if trying to run the tools when their `JENA_HOME` path contains spaces in it, there are two workarounds for this:
 
  1. Move your Jena installation to a path without spaces
- 1. Grab the latest scripts from [master][1] where they have been fixed to safely handle this.  Future releases will include this fix and resolve this issue
+ 1. Grab the latest scripts from [main][1] where they have been fixed to safely handle this.  Future releases will include this fix and resolve this issue
 
-[1]: https://github.com/apache/jena/tree/master/apache-jena/bat/
+[1]: https://github.com/apache/jena/tree/main/apache-jena/bat/
 
diff --git a/source/documentation/txn/txn.md b/source/documentation/txn/txn.md
index 8a1f4c7..52cdffe 100644
--- a/source/documentation/txn/txn.md
+++ b/source/documentation/txn/txn.md
@@ -182,4 +182,4 @@
         txn.end() ;
     }  
 
-See [`Txn.java`](https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/query/Txn.java) for full details.
+See [`Txn.java`](https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/query/Txn.java) for full details.
diff --git a/source/tutorials/rdf_api.md b/source/tutorials/rdf_api.md
index 0f08a50..ec6ed81 100644
--- a/source/tutorials/rdf_api.md
+++ b/source/tutorials/rdf_api.md
@@ -133,7 +133,7 @@
 
 <p>The working code for this example can be found in the /src-examples directory of
 the Jena distribution as 
-<a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
+<a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
 1</a>.
 As an exercise, take this code and modify it to create a simple VCARD for
 yourself.</p>
@@ -190,7 +190,7 @@
 
 
 <p>The working code for this example can be found as <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial 2</a> in the /src-examples directory
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial 2</a> in the /src-examples directory
 of the Jena distribution.</p>
 
 <h2><a id="ch-Statements">Statements</a></h2>
@@ -224,7 +224,7 @@
 
 <p>Now we will use that interface to extend tutorial2 to list all the
 statements created and print them out.  The complete code for this can be
-found in <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial 3</a>.</p>
+found in <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial 3</a>.</p>
 
 
 <pre>// list the statements in the Model
@@ -288,7 +288,7 @@
 used to save an RDF model to a file and later read it back in again.</p>
 
 <p>Tutorial 3 created a model and wrote it out in triple form. <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial 4</a> modifies tutorial 3 to write the
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial 4</a> modifies tutorial 3 to write the
 model in RDF XML form to the standard output stream. The code again, is
 very simple: <code>model.write</code> can take an <code>OutputStream</code>
 argument.</p>
@@ -378,7 +378,7 @@
 
 <h2><a id="ch-Reading-RDF">Reading RDF</a></h2>
 
-<p><a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial 5</a> demonstrates reading the
+<p><a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial 5</a> demonstrates reading the
 statements recorded in RDF XML form into a model. With this tutorial,
 we have provided <a href="sparql_data/vc-db-1.rdf">a small database of vcards in RDF/XML form</a>.  The following
 code will read it in and write it out. <em>Note that for this application to
@@ -407,7 +407,7 @@
 <p>The second argument to the <code>read()</code> method call is the URI which will
 be used for resolving relative URI's.  As there are no relative URI
 references in the test file, it is allowed to be empty. When run, <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java"> tutorial 5</a> will produce XML output which
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial05.java"> tutorial 5</a> will produce XML output which
 looks like:</p>
 
 
@@ -722,7 +722,7 @@
 }</pre>
 
 
-<p>This code can be found in <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial06.java"> tutorial 6</a>.
+<p>This code can be found in <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial06.java"> tutorial 6</a>.
 The statement iterator <code>iter</code> produces each and every statement
 with subject <code>vcard</code> and predicate <code>VCARD.NICKNAME</code>,
 so looping over it allows us to fetch each statement by using
@@ -820,7 +820,7 @@
 
 <p>
 The following code, which can be found in full in <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> lists the full names on all the
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> lists the full names on all the
 vcards in the database.</p>
 
 
@@ -875,7 +875,7 @@
 <code>selects(...)</code> method is called, so the extra test will only be
 applied to matching statements.</p>
 
-<p>The full code can be found in <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
+<p>The full code can be found in <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
 8</a> and produces output like this:</p>
 
 
@@ -935,7 +935,7 @@
 <img alt="figure 6" src="figures/fig6.png" width="540" height="240"></p>
 
 <p>Lets look at the code to do this (the full code is in <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial 9</a>) and see what happens.</p>
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial 9</a>) and see what happens.</p>
 
 
 <pre>// read the RDF/XML files
@@ -1092,7 +1092,7 @@
   Becky Smith</pre>
 
 
-<p>Executable example code can be found in <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
+<p>Executable example code can be found in <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
 tutorial 10</a>, which glues together the fragments above into a complete
 example.</p>
 
@@ -1119,7 +1119,7 @@
 parseType='Literal' attribute is used to represent it.</p>
 
 <p>In Jena, these attributes of a literal may be set when the literal is
-constructed, e.g. in <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial 11</a>:</p>
+constructed, e.g. in <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial 11</a>:</p>
 
 
 <pre>// create the resource
diff --git a/source/tutorials/rdf_api_pt.md b/source/tutorials/rdf_api_pt.md
index edf365d..97e2812 100644
--- a/source/tutorials/rdf_api_pt.md
+++ b/source/tutorials/rdf_api_pt.md
@@ -93,7 +93,7 @@
             .addProperty(VCARD.FN, fullName);
 </pre>
 
-<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples no pacote de distribuição do Jena como <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial 1</a>. Como exercício, pegue este código e modifique-o para criar um próprio VCARD para você.</p>
+<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples no pacote de distribuição do Jena como <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial 1</a>. Como exercício, pegue este código e modifique-o para criar um próprio VCARD para você.</p>
 
 <p>Agora vamos adicionar mais detalhes ao vcard, explorando mais recursos de RDF e Jena.</p>
 
@@ -128,7 +128,7 @@
 </pre>
 
 
-<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples no pacote de distribuição do Jena como <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial 2</a>.</p>
+<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples no pacote de distribuição do Jena como <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial 2</a>.</p>
 
 <h2><a id="ch-Statements">Sentenças</a></h2>
 
@@ -149,7 +149,7 @@
 <code>StmtIterator</code> possui o método <code>nextStatement()</code>
 que retorna a próxima sentença do iterador (o mesmo que <code>next()</code> faz, já convertido para  <code>Statement</code>). A interface <code>Statement</code> provê métodos de acesso ao sujeito, predicado e objeto de uma sentença.</p>
 
-<p>Agora vamos usar essa interface para estender tutorial2 para listar todas as sentenças criadas e imprimi-las. O código completo deste exemplo pode ser encontrado em <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial 3</a>.</p>
+<p>Agora vamos usar essa interface para estender tutorial2 para listar todas as sentenças criadas e imprimi-las. O código completo deste exemplo pode ser encontrado em <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial 3</a>.</p>
 
 
 <pre>// list the statements in the Model
@@ -199,7 +199,7 @@
 <p>Jena possui métodos para ler e escrever RDF como XML. Eles podem ser usados para armazenar o modelo RDF em um arquivo e carregá-lo novamente em outro momento.</p>
 
 <p>O Tutorial 3 criou um modelo e o escreveu no formato de triplas. <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial 4</a> modifica o tutorial 3 para escrever o modelo na forma de RDF XML numa stream de saída. O código, novamente, é muito simples: <code>model.write</code> pode receber um  <code>OutputStream</code> como argumento.</p>
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial 4</a> modifica o tutorial 3 para escrever o modelo na forma de RDF XML numa stream de saída. O código, novamente, é muito simples: <code>model.write</code> pode receber um  <code>OutputStream</code> como argumento.</p>
 
 
   <pre>// now write the model in XML form to a file
@@ -254,7 +254,7 @@
 
 <h2><a id="ch-Reading-RDF">Leitura de RDF</a></h2>
 
-<p><a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial 5</a> demonstra a leitura  num modelo de sentenças gravadas num RDF XML. Com este tutorial, nós teremos criado uma pequena base de dados de vcards na forma RDF/XML. O código a seguir fará leitura e escrita. <em>Note que para esta aplicação rodar, o arquivo de entrada precisa estar no diretório da aplicação.</em></p>
+<p><a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial 5</a> demonstra a leitura  num modelo de sentenças gravadas num RDF XML. Com este tutorial, nós teremos criado uma pequena base de dados de vcards na forma RDF/XML. O código a seguir fará leitura e escrita. <em>Note que para esta aplicação rodar, o arquivo de entrada precisa estar no diretório da aplicação.</em></p>
 
 
 <pre>
@@ -276,7 +276,7 @@
 </pre>
 
 
-<p>O segundo argumento da chamada de método <code>read()</code> é a URI que será usada para resolver URIs relativas. Como não há referências URI relativas no arquivo de teste, ele pode ser vazio. Quando executado, <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java"> tutorial 5</a> produzirá uma saída XML como esta:</p>
+<p>O segundo argumento da chamada de método <code>read()</code> é a URI que será usada para resolver URIs relativas. Como não há referências URI relativas no arquivo de teste, ele pode ser vazio. Quando executado, <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial05.java"> tutorial 5</a> produzirá uma saída XML como esta:</p>
 
 
 <pre>&lt;rdf:RDF
@@ -511,7 +511,7 @@
 </pre>
 
 
-<p>Esse código pode ser encontrado em  <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial06.java"> tutorial 6</a>. O iterador <code>iter</code> reproduz todas as sentenças com sujeito <code>vcard</code> e predicado <code>VCARD.NICKNAME</code>, então, iterar sobre ele permite recuperar cada sentença usando
+<p>Esse código pode ser encontrado em  <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial06.java"> tutorial 6</a>. O iterador <code>iter</code> reproduz todas as sentenças com sujeito <code>vcard</code> e predicado <code>VCARD.NICKNAME</code>, então, iterar sobre ele permite recuperar cada sentença usando
 <code>nextStatement()</code>, pegar o campo do objeto, e convertê-lo para string. O código produz a seguinte saída quando executado:</p>
 
 
@@ -579,7 +579,7 @@
 
 <p>
 O código a seguir, que pode ser encontrado em  <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> que lista os nomes completos de todos os vcards do banco de dados.</p>
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> que lista os nomes completos de todos os vcards do banco de dados.</p>
 
 
 <pre>// select all the resources with a VCARD.FN property
@@ -626,7 +626,7 @@
 
 <p>Esse código usa uma técnica elegante de Java para sobrescrever a definição de um método quando criamos uma instância da classe. Aqui, o método <code>selects(...)</code> garante que o nome completo termine com “Smith”. É importante notar que a filtragem baseada nos argumentos sujeito, predicado e objeto tem lugar antes que o método <code>selects(...)</code> seja chamado, então esse teste extra só será aplicado para casar sentenças.</p>
 
-<p>O código completo pode ser encontrado no <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
+<p>O código completo pode ser encontrado no <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
 8</a> e produz uma saída igual a:</p>
 
 
@@ -678,7 +678,7 @@
 <img alt="figure 6" src="figures/fig6.png" width="540" height="240"></p>
 
 <p>Vamos ver o código (o código completo está em  <a
-href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial 9</a>) e ver o que acontece.</p>
+href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial 9</a>) e ver o que acontece.</p>
 
 
 <pre>// read the RDF/XML files
@@ -808,7 +808,7 @@
   Becky Smith</pre>
 
 
-<p>O código executável pode ser encontrado em  <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
+<p>O código executável pode ser encontrado em  <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
 tutorial 10</a>, que coloca esses fragmentos de código juntos num exemplo completo.</p>
 
 <p>As classes de Jena oferecem métodos para manipular containers, incluindo adição de novos membros, inserção de novos membros no meio de um container e a remoção de membros existentes. As classes de container Jena atualmente garantem que a lista ordenada de propriedades usadas começam com rdf:_1 e é contíguo. O RDFCore WG relaxou essa regra, permitindo uma representação parcial dos containers. Isso, portanto, é uma área de Jena que pode ser mudada no futuro.</p>
@@ -819,7 +819,7 @@
 
 <p>Há na realidade dois tipos de Literais. Em uma delas, o componente string é somente isso, uma string ordinária. Na outra, o componente string é esperado que fosse um bem balanceado fragmento de XML.  Quando um modelo RDF é escrito como RDF/XML, uma construção especial usando um atributo parseType='Literal' é usado para representar isso.</p>
 
-<p>Em Jena, esses atributos de uma literal podem ser setados quando a literal é construída, e.g. no <a href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial 11</a>:</p>
+<p>Em Jena, esses atributos de uma literal podem ser setados quando a literal é construída, e.g. no <a href="https://github.com/apache/jena/tree/main/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial 11</a>:</p>
 
 
 <pre>// create the resource