From f6d6219743a37202142d2cf6c211dc773a3b7ef6 Mon Sep 17 00:00:00 2001 From: Andy Seaborne Date: Thu, 24 Oct 2024 10:31:12 +0100 Subject: [PATCH] Vocabulary additions for rdf-tests SPARQL 1.2 --- .../jena/sparql/vocabulary/TestManifestX.java | 2 -- .../sparql/vocabulary/TestManifest_12.java | 35 +++++++++++++++++++ .../jena/arq/junit/sparql/SparqlTests.java | 6 ++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifest_12.java diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifestX.java b/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifestX.java index d2351d348fc..b99b8dd1e50 100644 --- a/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifestX.java +++ b/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifestX.java @@ -18,8 +18,6 @@ package org.apache.jena.sparql.vocabulary ; -/* CVS $Id: $ */ - import org.apache.jena.rdf.model.Model ; import org.apache.jena.rdf.model.ModelFactory ; import org.apache.jena.rdf.model.Property ; diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifest_12.java b/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifest_12.java new file mode 100644 index 00000000000..7ceeb01c80b --- /dev/null +++ b/jena-arq/src/main/java/org/apache/jena/sparql/vocabulary/TestManifest_12.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.jena.sparql.vocabulary; + +import org.apache.jena.rdf.model.Resource; +import org.apache.jena.rdf.model.ResourceFactory; + +/** + * Additional or changed vocabulary for rdf-tests SPARQL area. + */ +public class TestManifest_12 { + + /**

The namespace of the vocabulary as a string

*/ + public static final String NS = "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#"; + + public static final Resource PositiveUpdateSyntaxTest = ResourceFactory.createResource(NS+"PositiveUpdateSyntaxTest"); + + public static final Resource NegativeUpdateSyntaxTest = ResourceFactory.createResource(NS+"NegativeUpdateSyntaxTest"); +} diff --git a/jena-arq/src/test/java/org/apache/jena/arq/junit/sparql/SparqlTests.java b/jena-arq/src/test/java/org/apache/jena/arq/junit/sparql/SparqlTests.java index f132191904e..10f59133e70 100644 --- a/jena-arq/src/test/java/org/apache/jena/arq/junit/sparql/SparqlTests.java +++ b/jena-arq/src/test/java/org/apache/jena/arq/junit/sparql/SparqlTests.java @@ -30,6 +30,7 @@ import org.apache.jena.sparql.vocabulary.TestManifestUpdate_11; import org.apache.jena.sparql.vocabulary.TestManifestX; import org.apache.jena.sparql.vocabulary.TestManifest_11; +import org.apache.jena.sparql.vocabulary.TestManifest_12; import org.apache.jena.vocabulary.TestManifest; public class SparqlTests { @@ -101,6 +102,11 @@ public static Runnable makeSPARQLTest(ManifestEntry entry) { if ( testType.equals(TestManifestX.NegativeUpdateSyntaxTestARQ) ) return new UpdateSyntaxTest(entry, Syntax.syntaxARQ, false); + if ( testType.equals(TestManifest_12.PositiveUpdateSyntaxTest) ) + return new UpdateSyntaxTest(entry, Syntax.syntaxARQ, true); + if ( testType.equals(TestManifest_12.NegativeUpdateSyntaxTest) ) + return new UpdateSyntaxTest(entry, Syntax.syntaxARQ, false); + //---- Query Evaluation Tests if ( testType.equals(TestManifest.QueryEvaluationTest) ) return new QueryEvalTest(entry);