Uploaded image for project: 'Marmotta (Retired)'
  1. Marmotta (Retired)
  2. MARMOTTA-191

SPARQL graph results fails under some circunstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6, 3.0-incubating
    • 3.1-incubating
    • Platform
    • None

    Description

      Write some unit tests: https://git-wip-us.apache.org/repos/asf?p=incubator-marmotta.git;a=blob;f=platform/marmotta-sparql/src/test/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebServiceTest.java;h=06d03ebdcbcdec8cdf33e4ae975383ee6c2332bf;hb=HEAD#l91

      I realized the SPARQL Graph results fails:

      java.lang.AssertionError: Created a duplicate MemURI for URI http://www.wikier.org/foaf#wikier
      at org.openrdf.sail.memory.model.MemValueFactory.getOrCreateMemURI(MemValueFactory.java:281)
      at org.openrdf.sail.memory.model.MemValueFactory.getOrCreateMemResource(MemValueFactory.java:247)
      at org.openrdf.sail.memory.MemoryStore.addStatement(MemoryStore.java:538)
      at org.openrdf.sail.memory.MemoryStoreConnection.addStatementInternal(MemoryStoreConnection.java:441)
      at org.openrdf.sail.memory.MemoryStoreConnection.addStatementInternal(MemoryStoreConnection.java:395)
      at org.openrdf.sail.helpers.SailConnectionBase.addStatement(SailConnectionBase.java:441)
      at org.openrdf.repository.sail.SailRepositoryConnection.addWithoutCommit(SailRepositoryConnection.java:281)
      at org.openrdf.repository.base.RepositoryConnectionBase.addWithoutCommit(RepositoryConnectionBase.java:561)
      at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:433)
      at org.apache.marmotta.platform.sparql.services.sparqlio.rdf.SPARQLGraphResultWriter.write(SPARQLGraphResultWriter.java:68)
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl.query(SparqlServiceImpl.java:195)
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl.query(SparqlServiceImpl.java:108)
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl$Proxy$$$_WeldClientProxy.query(SparqlServiceImpl$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:485)

      But I'm not totally sure it's actually a bug, either on our side or in Sesame, because I cannot easily reproduce it on all environments: it works fine at runtime and from junit at eclipse, but it fails from maven.

      Attachments

        Activity

          People

            wikier Sergio Fernández
            wikier Sergio Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: