You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2016/06/03 14:45:59 UTC

[jira] [Updated] (MARMOTTA-640) multiple UNIONs not handled

     [ https://issues.apache.org/jira/browse/MARMOTTA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Fernández updated MARMOTTA-640:
--------------------------------------
    Description: 
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}

  was:
fails with query below - but removing any of the union clauses works

   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 }  
    }


> 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
>            Priority: Critical
>
> 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)