From 6ee53b486328063d093cfdcce598f19e2a559779 Mon Sep 17 00:00:00 2001 From: afs Date: Sat, 7 Dec 2024 15:57:09 +0000 Subject: [PATCH] Automated manifest generation --- sparql/sparql12/index.html | 3 + sparql/sparql12/lang-basedir/index.html | 242 ++++++++++++++++++++ sparql/sparql12/lang-basedir/strlang.rq | 2 + sparql/sparql12/lang-basedir/strlang.srj | 11 + sparql/sparql12/lang-basedir/strlangdir.rq | 13 +- sparql/sparql12/lang-basedir/strlangdir.srj | 12 + 6 files changed, 278 insertions(+), 5 deletions(-) create mode 100644 sparql/sparql12/lang-basedir/index.html create mode 100644 sparql/sparql12/lang-basedir/strlang.srj create mode 100644 sparql/sparql12/lang-basedir/strlangdir.srj diff --git a/sparql/sparql12/index.html b/sparql/sparql12/index.html index 27c73c4..09c6784 100644 --- a/sparql/sparql12/index.html +++ b/sparql/sparql12/index.html @@ -81,6 +81,9 @@

  • grouping/
  • +
  • + lang-basedir/ +
  • syntax-triple-terms-negative/
  • diff --git a/sparql/sparql12/lang-basedir/index.html b/sparql/sparql12/lang-basedir/index.html new file mode 100644 index 0000000..5898914 --- /dev/null +++ b/sparql/sparql12/lang-basedir/index.html @@ -0,0 +1,242 @@ + + + + + + + + + Language and base direction + + + + +

    + + W3C + +

    +

    Language and base direction

    +

    Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.

    +
    +
    +

    Abstract

    +

    +

    +

    This page describes SPARQL 1.2 test suite of the W3C RDF-star Working Group.

    +

    Contributing Tests

    +

    The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.

    +

    Distribution

    +

    Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.

    +

    Disclaimer

    +

    UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

    +
    +
    +

    + Test Descriptions +

    +
    +
    + + haslang: + + hasLANG +
    +
    +
    +

    Function hasLANG

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + haslang.srj +
    +
    +
    +
    + + haslangdir: + + hasLANG +
    +
    +
    +

    Function hasLANGDIR

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + haslangdir.srj +
    +
    +
    +
    + + lang: + + LANG +
    +
    +
    +

    Function LANG

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + lang.srj +
    +
    +
    +
    + + langdir: + + LANGDIR +
    +
    +
    +

    Function LANGDIR

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + langdir.srj +
    +
    +
    +
    + + strlang: + + STRLANG +
    +
    +
    +

    Function STRLANG

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + strlang.srj +
    +
    +
    +
    + + strlangdir: + + STRLANGDIR +
    +
    +
    +

    Function STRLANGDIR

    +
    +
    +
    type
    +
    mf:QueryEvaluationTest
    +
    approval
    +
    +
    action
    +
    +
    +
    +
    +
    result
    +
    + strlangdir.srj +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/sparql/sparql12/lang-basedir/strlang.rq b/sparql/sparql12/lang-basedir/strlang.rq index 545c0b0..74cc492 100644 --- a/sparql/sparql12/lang-basedir/strlang.rq +++ b/sparql/sparql12/lang-basedir/strlang.rq @@ -1,3 +1,5 @@ +PREFIX rdf: + SELECT ( STRLANG("abc", "en") AS ?term1 ) ( STRLANG("abc", "") AS ?term2 ) diff --git a/sparql/sparql12/lang-basedir/strlang.srj b/sparql/sparql12/lang-basedir/strlang.srj new file mode 100644 index 0000000..03d3b21 --- /dev/null +++ b/sparql/sparql12/lang-basedir/strlang.srj @@ -0,0 +1,11 @@ +{ "head": { + "vars": [ "term1" , "term2" , "term3" , "term4" ] + } , + "results": { + "bindings": [ + { + "term1": { "type": "literal" , "xml:lang": "en" , "value": "abc" } + } + ] + } +} diff --git a/sparql/sparql12/lang-basedir/strlangdir.rq b/sparql/sparql12/lang-basedir/strlangdir.rq index 8b3676f..dc82a60 100644 --- a/sparql/sparql12/lang-basedir/strlangdir.rq +++ b/sparql/sparql12/lang-basedir/strlangdir.rq @@ -1,9 +1,12 @@ +PREFIX rdf: + SELECT ( STRLANGDIR("abc", "en", "ltr") AS ?term1 ) ( STRLANGDIR("abc", "en", "LTR") AS ?term2 ) - ( STRLANGDIR("قطة", "ar", "rtl") AS ?term3 ) - ( STRLANGDIR("abc", "en", "") AS ?term4 ) - ( STRLANGDIR("abc", "", "ltr") AS ?term5 ) - ( STRLANGDIR(123, "", "ltr") AS ?term6 ) - ( STRLANGDIR(, "en", "ltr") AS ?term7 ) + ( STRLANGDIR("abc", "en", "") AS ?term3 ) + ( STRLANGDIR("قطة", "ar", "rtl") AS ?term4 ) + ( STRLANGDIR("abc", "en", "") AS ?term5 ) + ( STRLANGDIR("abc", "", "ltr") AS ?term6 ) + ( STRLANGDIR(123, "", "ltr") AS ?term7 ) + ( STRLANGDIR(, "en", "ltr") AS ?term8 ) WHERE {} diff --git a/sparql/sparql12/lang-basedir/strlangdir.srj b/sparql/sparql12/lang-basedir/strlangdir.srj new file mode 100644 index 0000000..91e5f07 --- /dev/null +++ b/sparql/sparql12/lang-basedir/strlangdir.srj @@ -0,0 +1,12 @@ +{ "head": { + "vars": [ "term1" , "term2" , "term3" , "term4" , "term5" , "term6" , "term7" , "term8" ] + } , + "results": { + "bindings": [ + { + "term1": { "type": "literal" , "xml:lang": "en" , "its:dir": "ltr" , "value": "abc" } , + "term4": { "type": "literal" , "xml:lang": "ar" , "its:dir": "rtl" , "value": "قطة" } + } + ] + } +}