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

Custom geo serializer

    XMLWordPrintable

    Details

      Description

      I encountered the following error when using a custom WKT geo serializer running the update query:

      insert
      {
        ?s ogc:asWKT ?wkt
        }
      where
      {
        ?s w3g:lat ?lat.
        ?s w3g:long ?long.
        bind(strdt(concat("POINT(",str(?long)," ",str(?lat),")"),ogc:wktLiteral) as ?wkt)
      }
      

      where ogc:asWKT is my custom geo property.

      Caused by: java.lang.IllegalStateException: Already assigned: old=LiteralExtensionIV [delegate=XSDInteger(198498047370547437020304274955340135223), datatype=Vocab(-5)[http://www.opengis.net/ont/geosparql#wktLiteral]], new=LiteralExtensionIV [delegate=XSDInteger(198498047370547437020304274955340100405), datatype=Vocab(-5)[http://www.opengis.net/ont/geosparql#wktLiteral]], this: "POINT(-5.271465 50.053716)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>
              at com.bigdata.rdf.model.BigdataValueImpl.setIV(BigdataValueImpl.java:139)
              at com.bigdata.rdf.internal.LexiconConfiguration.createInlineIV(LexiconConfiguration.java:527)
              at com.bigdata.rdf.lexicon.LexiconRelation.getInlineIV(LexiconRelation.java:3343)
              at com.bigdata.rdf.lexicon.LexiconRelation.addTerms(LexiconRelation.java:1798)
              at com.bigdata.rdf.rio.StatementBuffer$Batch.addTerms(StatementBuffer.java:1899)
              at com.bigdata.rdf.rio.StatementBuffer$Batch.writeNow(StatementBuffer.java:1829)
              at com.bigdata.rdf.rio.StatementBuffer$Batch.access$1000(StatementBuffer.java:1654)
              at com.bigdata.rdf.rio.StatementBuffer$DrainQueueCallable.call(StatementBuffer.java:818)
              at com.bigdata.rdf.rio.StatementBuffer$DrainQueueCallable.call(StatementBuffer.java:794)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at com.bigdata.util.concurrent.LatchedExecutor$1.run(LatchedExecutor.java:121)
      

      It seems to work if I try to insert...select statements on an individual basis rather than a bulk where.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beebs Brad Bebee
              Reporter:
              pulquero Mark Hale
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: