Page MenuHomePhabricator

Patch to enable RDF export of Last Modified Date property
Closed, ResolvedPublic

Description

Author: laurent

Description:
Updated files for RDF export of Last Modified Date property

In SMW 1.4.3, the Last Modified Date property is missing from RDF export (and as a result, does not appear in the triple store when a parallel store is setup).

I had to make small changes to these two files :

  • SemanticMediaWiki/includes/export/SMW_Exporter.php
  • SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php

using a Dublin Core date property (maybe this should use a MW namespace instead of Dublin Core).

I am attaching the updated files for now. I will update them with a diff file when I get a chance.


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz22723

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:59 PM
bzimport set Reference to bz22723.

I have now extended the OWL/RDF export to include both the modification date and the (numerical) namespace of the wiki page of each exported subject. Both properties are required for being able to execute #ask queries via SPARQL when using a triple store.

The properties are defined specifically for SMW and not reusing DC or any other vocabulary now. They are called swivt:wikiNamespace and swivt:wikiPageModificationDate. See http://semantic-mediawiki.org/swivt/ for an overview of all properties used by SMW.

The change has been made in SVN and will be part of the next release SMW 1.5.1 (ETA Monday May 31).