AKSW/SPARQL2NL

Losing property during postprocessing

Opened this issue · 0 comments

Query 97:

PREFIX res: http://dbpedia.org/resource/
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX dbp: http://dbpedia.org/property/

SELECT DISTINCT ?uri ?string
WHERE
{ res:The_Storm_on_the_Sea_of_Galilee dbp:artist ?uri
OPTIONAL
{ ?uri rdfs:label ?string
FILTER ( lang(?string) = "en" )
}
}

SimpleNLG:
This query retrieves distinct entities ?uri such that The Storm on the Sea of Galilee's artists is ?uri. Additionally, it retrieves distinct values ?string such that ?uri's labels is ?string and ?string is in English if such exist.

After postprocessing:
This query retrieves The Storm on the Sea of Galilee's artists and distinct values such that they are in English.