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

119
Views
Una consulta SPARQL que funciona en el punto final DBpedia pero no con ARC2

la consulta es la siguiente:

 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

funciona perfectamente bien usando el punto final de DBpedia , pero cuando trato de usarlo desde PHP usando ARC2, aparece el siguiente error:

Consulta de erroresArray ([0] => FILTRO incompleto en ARC2_SPARQLPlusParser [1] => Patrón de gráfico de grupo incompleto o no válido. No se pudo manejar " " en ARC2_SPARQLPlusParser )

¿Alguna idea de cuál podría ser el problema? ¡Gracias!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

ARC2 no es compatible con SPARQL 1.1 completo (consulte el código fuente ), por lo tanto, CONTAINS no es compatible. Puedes intentar usar REGEX en su lugar:

PREFIJO 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!