https://bugzilla.wikimedia.org/show_bug.cgi?id=30989
Web browser: ---
Bug #: 30989
Summary: SMW 1.6.1 - Query Modification date property fails
when using SMWSparqlStore
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
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?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l