[
https://issues.apache.org/jira/browse/MARMOTTA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326892#comment-15326892
]
ASF GitHub Bot commented on MARMOTTA-640:
-----------------------------------------
GitHub user wikier opened a pull request:
https://github.com/apache/marmotta/pull/20
MARMOTTA-640: fixed multiple UNIONs SQL mapping
Issue reported by @rob-metalinkage:
https://issues.apache.org/jira/browse/MARMOTTA-640
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/marmotta MARMOTTA-640
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/marmotta/pull/20.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20
----
commit 861efd789261963dabe02f9ef4a5ff157cb60b7d
Author: Sergio Fernández <[email protected]>
Date: 2016-06-10T10:02:03Z
MARMOTTA-640: added test with the reported query
commit 02209d340d5c83acd670fa8daa3bc1b9f793ba1c
Author: Sergio Fernández <[email protected]>
Date: 2016-06-10T13:33:34Z
MARMOTTA-640: added regresion test to prevent lateral issues on fixing this
issue
commit 7df4029df21288cc9f6b1b9c041e7d428b644b8f
Author: Sergio Fernández <[email protected]>
Date: 2016-06-10T14:55:25Z
MARMOTTA-640: fixed to warrantied the exact number of both side of the
projections of a union
----
> multiple UNIONs not handled
> ---------------------------
>
> Key: MARMOTTA-640
> URL: https://issues.apache.org/jira/browse/MARMOTTA-640
> Project: Marmotta
> Issue Type: Bug
> Components: KiWi Triple Store
> Affects Versions: 3.3.0
> Reporter: Rob Atkinson
> Assignee: Sergio Fernández
> Priority: Minor
> Labels: sparql, sql
> Fix For: 3.4.0
>
>
> fails with query below - but removing any of the union clauses works
> {code}
> PREFIX dcterms: <http://purl.org/dc/terms/>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX void: <http://rdfs.org/ns/void#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX lid: <http://id.sirf.net/def/schema/lid/>
> SELECT *
> WHERE
> { { { <http://resources.opengeospatial.org/def/voc/examples/mdg> rdf:type
> ?___0 }
> OPTIONAL
> { { ?___0 rdfs:label ?___1 } }
> }
> UNION
> { <http://resources.opengeospatial.org/def/voc/examples/mdg> rdfs:label
> ?___2 }
> UNION
> { <http://resources.opengeospatial.org/def/voc/examples/mdg>
> void:sparqlendpoint ?___10 }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)