Jump to content

Wikibase/Indexing/RDF Dump Format/Proposal

From mediawiki.org
Prefix Full URL Usage Example
wdata: /Special:EntityData/ Data set describing certain entity wdata:Q2 schema:about wd:Q2 .
wd: /entity/ Wikibase entity - item or property. wd:Q2 p:P9 wds:Q2-82a6e009-4f93-28dc-3555-38bbfc3afe6a
Predicates
wdt: /prop/direct/ "Truthy" assertions about the data, links entity to value directly. wd:Q2  wdt:P9 <http://acme.com/>
p: /prop/ Links entity to statement wd:Q2 p:P9 wds:Q2-82a6e009-4f93-28dc-3555-38bbfc3afe6awd
ps: /prop/statement/ Links value to statement wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37 ps:P8 "-13000000000-01-01T00:00:00Z"^^xsd:dateTime
psv: /prop/statement/value/ Links deep value to statement wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37 psv:P8 wdv:87d0dc1c7847f19ac0f19be978015dfb202cf59a
pq: /prop/qualifier/ Links qualifier to statement node wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37 pq:P8 "-13000000000-01-01T00:00:00Z"^^xsd:dateTime 
pqv: /prop/qualifier/value/ Links qualifier deep value to statement node wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37 pqv:P8 wdv:87d0dc1c7847f19ac0f19be978015dfb202cf59a
pr: /prop/reference/ Links reference to value wdref:87d0dc1c7847f19ac0f19be978015dfb202cf59a pr:P8 "-13000000000-01-01T00:00:00Z"^^xsd:dateTime
prv: /prop/reference/value/ Links reference to deep value wdref:87d0dc1c7847f19ac0f19be978015dfb202cf59a prv:P8 wdv:87d0dc1c7847f19ac0f19be978015dfb202cf59a
Nodes
wds: /entity/statement/ Statement node, describes claim about entity. wds:Q2-a4078553-4ec1-a64a-79e7-c5b5e17b2782

  a wikibase:Statement

wdv: /value/ Value node wdv:87d0dc1c7847f19ac0f19be978015dfb202cf59a a wikibase:Value;
wdref: /reference/ Reference node wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37 prov:wasDerivedFrom wdref:87d0dc1c7847f19ac0f19be978015dfb202cf59a .

wdref:87d0dc1c7847f19ac0f19be978015dfb202cf59a a wikibase:Reference .wd

LInking properties to property predicates:

wd:P22 a wikibase:Property ;
    wikibase:propertyType wikibase:WikibaseItem ;
    wikibase:directClaim wdt:P22 ;
    wikibase:claim p:P22 ;
    wikibase:statementProperty ps:P22 ;
    wikibase:statementValue psv:P22 ;
    wikibase:qualifier pq:P22 ;
    wikibase:qualifierValue pqv:P22 ;
    wikibase:reference pr:P22 ;
    wikibase:referenceValue prv:P22 .