Manybubbles added a comment.

So I had a look at 
http://tools.wmflabs.org/wikidata-exports/rdf/exports/20150126/wikidata-statements.nt.gz
 and I actually understand it now.  I'm starting a write up of my learning RDF 
[https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Notes notes].  At first 
glance I really didn't like SPARQL but I'm coming around to it.

Anyway, it looks like that wikidata-statements file implements 
[http://korrekt.org/papers/Wikidata-RDF-export-2014.pdf the wikidata rdf 
paper].  In fact I think its made by the same folks.

So, getting from what is in wikidata statements to the kind of simple queries 
you'd want to use in most cases seems like its really the problem with using 
RDF.  An making those simple queries efficient.  I want to be able to write:

  SELECT ?politician, ?spouse
  WHERE {
    ?politician wd:P106 Q82955 ;
                   wd:P26 ?spouse ;
                   wd:P509 wd:Q356405 .
  }

and get all the politicians who died of blood letting and all of their spouses. 
 wikidata-statements goes through many more steps and 
wikidata-simplified-statements doesn't typically have data about spouses 
because spouses are qualified with start and end times.

We can obviously hack on the code that makes wikidata-statements.  We could use 
RDR in some or all of these cases.  We could use something like 
[http://www.slideshare.net/ntkimvinh7/www2014-singleton-propertyfinal singleton 
properties] instead, even.


TASK DETAIL
  https://phabricator.wikimedia.org/T88717

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev, Manybubbles
Cc: Beebs.systap, Aklapper, Manybubbles, jkroll, Smalyshev, Wikidata-bugs, 
Jdouglas, aude, GWicke, daniel, JanZerebecki



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to