Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1356

XPATH function fn:concat not implemeted in 1.5.0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bigdata RDF Database
    • Labels:
      None

      Description

      Here in an example of a SPARQL query failing:

      {{
      prefix foaf: <http://xmlns.com/foaf/0.1/>
      prefix oxi: <http://omerxi.com/ontologies/core.owl.ttl#>
      prefix oxid: <http://omerxi.com/resource/>
      prefix vcard: <http://www.w3.org/2006/vcard/ns#>
      prefix fn: <http://www.w3.org/2005/xpath-functions#>

      CONSTRUCT

      { _:query oxi:url "http://www.zzz.fr/" ; oxi:remote "http://192.168.1.13:4444/wd/hub" ; oxi:who ?FIRST_LAST_NAME ; oxi:who ?NAME_MANAGER ; oxi:where ?CODE_LOC ; oxi:timeout 60000 . }

      WHERE {
      ?X oxi:id "EVTC075140377" ;
      vcard:postal-code ?PC ;
      vcard:locality ?LOC .
      OPTIONAL

      { ?X foaf:lastName ?LASTNAME ; foaf:firstName ?FIRSTNAME . }

      OPTIONAL

      { ?X foaf:name ?NAME }

      OPTIONAL

      { ?X oxi:manager ?MANAGER }

      BIND ( fn:concat( ?FIRSTNAME , " ", ?LASTNAME ) AS ?FIRST_LAST_NAME )
      BIND ( fn:concat( ?PC , " ", ?LOC ) AS ?CODE_LOC )
      BIND ( fn:concat( ?NAME , " ", ?MANAGER ) AS ?NAME_MANAGER )
      }
      }}

      And part of the stack is :

      {{ [java] Caused by: org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: task=ChunkTask

      {query=03db5f75-b2d2-4c47-ae36-59b7eb919271,bopId=25,partitionId=-1,sinkId=26,altSinkId=null}

      , cause=java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: unknown function: http://www.w3.org/2005/xpath-functions#concat
      [java] at com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator.hasNext(Bigdata2Sesame2BindingSetIterator.java:188)
      [java] at com.bigdata.rdf.sparql.ast.eval.ASTConstructIterator.hasNext(ASTConstructIterator.java:591)
      [java] at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
      [java] at org.openrdf.query.QueryResults.report(QueryResults.java:193)
      [java] at org.openrdf.repository.sail.SailGraphQuery.evaluate(SailGraphQuery.java:114)
      [java] at com.bigdata.rdf.sail.webapp.BigdataRDFContext$GraphQueryTask.doQuery(BigdataRDFContext.java:1467)
      [java] at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask$SparqlRestApiTask.call(BigdataRDFContext.java:1238)
      [java] at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask$SparqlRestApiTask.call(BigdataRDFContext.java:1188)
      [java] at com.bigdata.rdf.task.ApiTaskForIndexManager.call(ApiTaskForIndexManager.java:67)
      [java] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      }}

        Attachments

          Activity

            People

            Assignee:
            bryanthompson bryanthompson
            Reporter:
            jmvanel Jean-Marc Vanel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: