This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit f30e3755df5204b9da2a59f89383330631eb6be6
Author: Andy Seaborne <a...@apache.org>
AuthorDate: Sat Sep 20 17:17:56 2025 +0100

    GH-3453: Script to fetch RDF tests CG
---
 jena-arq/testing/.gitignore     |  3 +++
 jena-arq/testing/copy-rdf-tests | 51 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/jena-arq/testing/.gitignore b/jena-arq/testing/.gitignore
new file mode 100644
index 0000000000..a1c8ed04b9
--- /dev/null
+++ b/jena-arq/testing/.gitignore
@@ -0,0 +1,3 @@
+## Used by the copy script.
+rdf-tests-tmp/
+rdf-tests-src/
diff --git a/jena-arq/testing/copy-rdf-tests b/jena-arq/testing/copy-rdf-tests
new file mode 100755
index 0000000000..964edccb23
--- /dev/null
+++ b/jena-arq/testing/copy-rdf-tests
@@ -0,0 +1,51 @@
+#!/usr/bin/bash
+
+## local git clone
+TMP="rdf-tests-tmp"
+if [ -e "$TMP" ]
+then
+    echo "Temporary directory already exists: $TMP" 1>&2
+    exit 1
+fi
+
+## Updated tests
+SRC="rdf-tests-src"
+if [ -e "$SRC" ]
+then
+    echo "Destination already exists: $TMP" 1>&2
+    exit 1
+fi
+mkdir "$SRC"
+
+## The tests used in the ARQ test suite.
+DEST="rdf-tests-cg"
+
+## ----
+
+## Get a copy
+echo "== git clone /w3c/rdf-tests/ to $TMP"
+git clone https://github.com/w3c/rdf-tests/ "$TMP"
+
+## Test areas
+
+
+echo "== Move rdf/ sparql/ and ns/ to $SRC"
+mv "$TMP/rdf" "$TMP/sparql" "$TMP/ns" "$SRC"
+
+echo "== Keep only RDF language and SPARQL tests."
+# Remove model theory tests.
+rm -r "$SRC/rdf/rdf11/rdf-mt"
+# Remove archives
+find "$SRC" -name TESTS\* | xargs rm -r
+# Clean out HTML
+echo "== Remove HTML files"
+find "$SRC" -name \*html -o -name template.haml | xargs rm -r
+# Remove earl reports
+find "$SRC" -name reports | xargs rm -r
+
+## Remove temp
+echo "== Delete cloned repo"
+rm -rf "$TMP"
+
+echo "== Result :: directory ${SRC}/"
+echo "== Check ${SRC}, then delete the current ${DEST}, and move ${SRC} to 
${DEST}"

Reply via email to