Hi

(although I previously created a couple of issues I dont seem to be able to
create one now - no option on dashboard.)


Anyway I have a query that is valid and works against Sesame that Marmotta
3.3 complains about:

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

If you remove any one of the UNION clauses it works.

The error comes from the underlying postGres:
org.openrdf.query.QueryEvaluationException:
org.postgresql.util.PSQLException: ERROR: each UNION query must have the
same number of columns

maybe this is an openrdf problem - but it works fine under Sesame - so
maybe its a version thing?

Cheers

Reply via email to