Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
A SPARQL query that works in the DBpedia endpoint but not with ARC2

the query is the following :

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT distinct ?value
    from <http://fr.dbpedia.org>
    WHERE{                                          

        ?sub rdfs:label ?value.                     
                    FILTER (CONTAINS(LCASE(?value), 'data')).                                                           
        }

limit 10  

it works perfectly fine using the DBpedia endpoint but when I try to use it from PHP using ARC2 I get the following error :

Query errorsArray ( [0] => Incomplete FILTER in ARC2_SPARQLPlusParser [ 1] => Incomplete or invalid Group Graph pattern. Could not handle " " in ARC2_SPARQLPlusParser )

Any ideas what could be the problem ? thank's!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

ARC2 does not support full SPARQL 1.1 (see the source code), thus, CONTAINS is not supported. You can try to use REGEX instead:

PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#

SELECT distinct ?value
    from <http://fr.dbpedia.org>
    WHERE{                                          

        ?sub rdfs:label ?value.                     
                    FILTER (REGEX(STR(?value), 'data', 'i')).                                                           
        }

limit 10  
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!