Author: matt.voysey
Description:
When using SMQSparqlStore to store data in external triplestore, an ask query of the form:
{{#ask: [[Modification date::>2011-09-05]]
?Modification date |
}}
fails to return any results. The same query functions properly if $smwgDefaultStore is set back to "SMWSQLStore2".
This is because the SPARQL query that gets generated for the above #ask query is incorrect:
SELECT DISTINCT ?result WHERE {
?result swivt:wikiPageSortKey ?resultsk .
?result property:Modification_date-23aux ?v1 .
{ FILTER( ?v1 >= "2455809.5"^^xsd:double )
}}
The above SPARQL refers to "property:Modification_date-23aux" whereas in fact the page modification date is represented in the RDF triplestore by the property http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate. This has always been the case and is the same for the RDF export functionality.
I guess "Modification date" needs to be handled as a special case, not a standard property?
Version: unspecified
Severity: normal