Last modified: 2014-10-16 12:00:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63999, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61999 - [RDF] Feature request: Ability to create and modify template calls via RDFIO.
[RDF] Feature request: Ability to create and modify template calls via RDFIO.
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: zahara
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 14:18 UTC by Joel Sachs
Modified: 2014-10-16 12:00 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Joel Sachs 2014-02-27 14:18:04 UTC
Since most SMW is stored via templates, perhaps RDFIO should be able to create and modify template calls based on the triples it is importing. There was some conversation between Yaron and Samuel about this in October 2013 [1]. A lot of assumptions would probably need to be made about the schema of the imported data to make this work effectively. 

1. http://sourceforge.net/p/semediawiki/mailman/message/31549620/
Comment 1 Samuel Lampa 2014-02-27 15:26:45 UTC
Hi. I think this mail best describes the thinking so far on how to implement this: http://sourceforge.net/p/semediawiki/mailman/message/31553790/

Quoting the relevant part: "... think it is possible to implement, especially for RDF data where entities are linked to an OWL class. Then one can check up which 
template is linked from the category page equivalent to that OWL class, 
and use that to add facts."

So, given an OWL class, we can get the relevant Category, and from that, the relevant template, which should be what is needed to pattern match and update, a template call filled with data, in a wiki page.
Comment 2 Samuel Lampa 2014-02-27 15:33:12 UTC
And for pages that already have template calls, we can actually just look up those template definitions, to see which of the fields are controlling a fact that corresponds to any of the RDF triples for the current page.

This will of course require a little bit of clever parsing of the template definition, but it should by all means be possible.

For templates that itself use a lot of template calls, I think there is a way to get a wiki article (the template article in this case) with all subsequent template calls expanded ... which should in most cases be enough to get the mapping between template fields and the SMW properties used.
Comment 3 zahara 2014-03-15 13:23:48 UTC
Further to Yaron's comment on visualisation, and Samuel's regarding users who are not very familiar with the technology, I'm thinking along the lines of displaying a simplified entity diagram so that the user can confirm the import is what they want.  Default template matching can be done on the basis of the entity types, and where this is incorrect or the RDF schema is unknown, the user can match items and relationships to templates from a list.
Comment 4 Quim Gil 2014-03-18 22:56:33 UTC
Zahara is proposing this OPW project:

Visual Import and Template Matching for RDFIO
https://www.mediawiki.org/wiki/User:Zahara/OPW_Proposal_Round_8

Are there mentors available for this project?
Comment 5 zahara 2014-03-19 10:09:36 UTC
I've been in touch with Joel & Samuel regarding this - currently drafting my proposal.
Comment 6 Joel Sachs 2014-03-19 17:13:55 UTC
(In reply to Quim Gil from comment #4)
> Zahara is proposing this OPW project:
> 
> Visual Import and Template Matching for RDFIO
> https://www.mediawiki.org/wiki/User:Zahara/OPW_Proposal_Round_8
> 
> Are there mentors available for this project?

Hi Quim,

Both Samuel and I are happy to mentor this project - we think it could result in SMW instances being much more active participants in the ecology of the semantic web.
Comment 7 Quim Gil 2014-03-19 20:13:59 UTC
Alright, then please step in as official mentors in Google Melange. Instructions: https://www.mediawiki.org/wiki/Mentorship_programs/Possible_mentors
Comment 8 Quim Gil 2014-09-12 09:51:19 UTC
FOSS OPW round 8 has finished. zahara aka Ali King wrote these reports:

https://www.mediawiki.org/wiki/Extension:RDFIO/Template_matching_for_RDFIO/Reports

However, it is unclear to me whether the project has been completed, and in any case the required final blog post seems to be missing.

Please wrap up your project properly, documenting what was done and what was left pending, if anything.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links