Skip to content

Commit

Permalink
Vocabulary additions for rdf-tests SPARQL 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Nov 2, 2024
1 parent ab8ff01 commit f6d6219
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {

/** <p>The namespace of the vocabulary as a string</p> */
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");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f6d6219

Please sign in to comment.