[
https://issues.apache.org/jira/browse/MARMOTTA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324198#comment-15324198
]
Sergio Fernández commented on MARMOTTA-640:
-------------------------------------------
This is the internal projection we're getting from Sesame:
{code:none}
Projection
ProjectionElemList
ProjectionElem "___0"
ProjectionElem "___1"
ProjectionElem "___2"
ProjectionElem "___10"
Union
LeftJoin
StatementPattern
Var
(name=-const-http://resources.opengeospatial.org/def/voc/examples/mdg-uri,
value=http://resources.opengeospatial.org/def/voc/examples/mdg, anonymous)
Var
(name=-const-http://www.w3.org/1999/02/22-rdf-syntax-ns#type-uri,
value=http://www.w3.org/1999/02/22-rdf-syntax-ns#type, anonymous)
Var (name=___0)
StatementPattern
Var (name=___0)
Var (name=-const-http://www.w3.org/2000/01/rdf-schema#label-uri,
value=http://www.w3.org/2000/01/rdf-schema#label, anonymous)
Var (name=___1)
Union
StatementPattern
Var
(name=-const-http://resources.opengeospatial.org/def/voc/examples/mdg-uri,
value=http://resources.opengeospatial.org/def/voc/examples/mdg, anonymous)
Var (name=-const-http://www.w3.org/2000/01/rdf-schema#label-uri,
value=http://www.w3.org/2000/01/rdf-schema#label, anonymous)
Var (name=___2)
StatementPattern
Var
(name=-const-http://resources.opengeospatial.org/def/voc/examples/mdg-uri,
value=http://resources.opengeospatial.org/def/voc/examples/mdg, anonymous)
Var (name=-const-http://rdfs.org/ns/void#sparqlendpoint-uri,
value=http://rdfs.org/ns/void#sparqlendpoint, anonymous)
Var (name=___10)
{code}
> 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, 3.4.0
> Reporter: Rob Atkinson
> Assignee: Sergio Fernández
> Priority: Minor
> 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)