Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2332

Bad optimization transform when modifers used in SERVICE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 4.5.0
    • Jena 4.6.0
    • ARQ
    • None

    Description

      Report: https://lists.apache.org/thread/87wgds6c43j88829bscx4xkwsgcgq58p

      SELECT * {
        SERVICE <https://dbpedia.org/sparql> { SELECT * { ?s a <http://dbpedia.org/ontology/MusicalArtist> } LIMIT 5 }
        SERVICE <https://dbpedia.org/sparql> { SELECT * { ?s <http://www.w3.org/2000/01/rdf-schema#label> ?x } LIMIT 1 }
      }
      

      produces

      (sequence
        (service <https://dbpedia.org/sparql>
          (slice _ 5
            (bgp (triple ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/MusicalArtist>))))
        (service <https://dbpedia.org/sparql>
          (slice _ 1
            (bgp (triple ?s <http://www.w3.org/2000/01/rdf-schema#label> ?x)))))
      

      but this query can't be transformed because of ?s.

      It needs to remain as a join.

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: