example using wikidata
jojo05 opened this issue · comments
Is there any wikidata example available ?
If not, what would be the rough steps to use badwolf with wikidata
Could you point me to what data you would like to load?
The JSON dump (or maybe preprocessing it first before loading)
https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON
Ack. Will take a look and circle back.
Digging a bit I run into
https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format
This model would be a good starting point on how to map the data into a graph store. For instance,
wd:Q3 a wikibase:Item ;
rdfs:label "The Universe"@en ;
skos:prefLabel "The Universe"@en ;
schema:name "The Universe"@en ;
schema:description "The Universe is big"@en ;
skos:altLabel "everything"@en ;
wdt:P2 wd:Q3 ;
wdt:P7 "value1", "value2" ;
p:P2 wds:Q3-4cc1f2d1-490e-c9c7-4560-46c3cce05bb7 ;
p:P7 wds:Q3-24bf3704-4c5d-083a-9b59-1881f82b6b37,
wds:Q3-45abf5ca-4ebf-eb52-ca26-811152eb067c .
Could directly be added via CONSTRUCT
statements, once you massage nodes, predicates, and literals to be BadWolf compliant.
However, you would need to think how you would map the ontology and what kind what kind of queries you would run.
Another way to approach it, given the above version, would be to actually do straight triple manipulation. This should be fairly simple. For instance you could get a RDF converter and then just tweak the obtained triples into a BadWolf compliant ones. Once you have those, you could us the command line tool to bulk upload them.
Info on the Wikidata Query Service. Could it be implemented on top of badwolf?
https://docs.google.com/presentation/d/1hwUBbtP0TppAKrEpjtSjdOXePZ_7OIRNDWsAHzVk0NA/edit#slide=id.g2624f9eed3_0_124
gracies