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

NotMaterializedException when comparing dates in Wikidata Query Service

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: BLAZEGRAPH_2_1_1
    • Fix Version/s: None
    • Component/s: Wikidata Query Service
    • Labels:
      None

      Description

      When running this query in WDQS:

      # People who died in the last 7 days
      SELECT ?person ?deathDate {
        ?person wdt:P31 wd:Q5 .
        ?person wdt:P570 ?deathDate .
        FILTER ( ?deathDate >= (now()-"P7D"^^xsd:duration) )
      }
      

      I get and exception:

      ERROR: SPARQL-QUERY: queryStr=# People who died in the last 7 days
      SELECT ?person ?deathDate {
      #  BIND( wd:Q15992661	as ?person)
        ?person wdt:P31 wd:Q5 .
        ?person wdt:P570 ?deathDate .
      #  FILTER(isBlank(?deathDate))
        FILTER ( ?deathDate >= (now()-"P7D"^^xsd:duration) )
      } LIMIT 100
      java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: task=ChunkTask{query=ada79a3a-1d7a-4b25-b3c1-2765d5f18e09,bopId=3,partitionId=-1,sinkId=7,altSinkId=null}, cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.bigdata.rdf.internal.NotMaterializedException
      

      (full exception below)

        Attachments

          Activity

            People

            Assignee:
            igorkim igorkim
            Reporter:
            stasmalyshev stasmalyshev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: