Hi all,

for a content inclusion project I recently wrote the following SPARQL query, had it validated at http://sparql.org/query-validator.html and tested locally with Twinkle 2 –— all doing perfectly well.


PREFIX html:    <http://www.w3.org/1999/xhtml>
PREFIX rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:    <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos:    <http://www.w3.org/2004/02/skos/core#>
PREFIX owl:     <http://www.w3.org/2002/07/owl#>
PREFIX xsd:     <urn:ietf:params:xml:schema:>
PREFIX dct:     <http://purl.org/dc/terms/>
PREFIX i18n21:  <http://apache.org/cocoon/i18n/2.1>
PREFIX xliff:   <urn:oasis:names:tc:xliff:document:1.2>
PREFIX cnt:     <http://namespaces.semaworx.org/content#>
PREFIX timed:   <http://namespaces.semaworx.org/timed#>
>
CONSTRUCT    {   ?PageIRI            rdf:type            cnt:page    ;
                                     dct:hasPart         ?Element    .
                 ?Element            rdf:type            cnt:element    ;
                                     dct:hasPart         ?ElementPayload    .
                 ?ElementPayload     rdf:type            timed:versionedElement 
   ;
                                     xliff:source        ?StringContent    .
             }
WHERE        {   ?PageIRI            cnt:pageID         "semawine_page_home"   ;
                                     rdf:type            cnt:page    ;
                                     dct:hasPart         ?Element    .
                 ?Element            rdf:type            cnt:element    ;
                                     dct:hasPart         ?ElementPayload    .
                 ?ElementPayload     rdf:type            timed:versionedElement 
   ;
                                     xliff:source        ?StringContent    .
                      FILTER    (    isLiteral(?StringContent)
                               ||    langMatches( lang(?StringContent), "de-de" 
)    )
             }


Though, just as soon as this very same query runs on our server, JENA/ARQ gives me a

com.hp.hpl.jena.query.QueryParseException: Syntaxfehler

Which is, why I'm looking for a query validator, which evaluates SPARQL more similar to the way JENA/ARQ do— internally and which provides errors meaningful enough to properly act upon.

Any help, links, tools etc. are very welcome!!

Best,

Bardo




Reply via email to