RDFLib/rdflib (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

GROUP_CONCAT with OPTIONAL returns 'None' #1467

@KonradHoeffner

Description

@KonradHoeffner

A query such as the following on https://hitontology.eu/sparql returns empty strings for nonexisting GROUP_CONCAT results using Virtuoso:

PREFIX dce: <http://purl.org/dc/elements/1.1/>
PREFIX hito: <http://hitontology.eu/ontology/>
SELECT
?classified
(GROUP_CONCAT(DISTINCT(STR(?dce_source));separator="|") AS ?dce_sources)
{
 ?classified a hito:FeatureClassified.
 OPTIONAL {?classified dce:source ?dce_source.}
}

However when querying an RDFLib graph, I get rdflib.term.Literal('None') values in my result set. Is that intended?