Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example using wikidata #81

Open
jojo05 opened this issue Sep 3, 2017 · 5 comments
Open

example using wikidata #81

jojo05 opened this issue Sep 3, 2017 · 5 comments
Labels

Comments

@jojo05
Copy link

jojo05 commented Sep 3, 2017

Is there any wikidata example available ?

If not, what would be the rough steps to use badwolf with wikidata

@xllora
Copy link
Member

xllora commented Sep 3, 2017

Could you point me to what data you would like to load?

@jojo05
Copy link
Author

jojo05 commented Sep 3, 2017

The JSON dump (or maybe preprocessing it first before loading)
https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON

@xllora
Copy link
Member

xllora commented Sep 3, 2017

Ack. Will take a look and circle back.

@xllora
Copy link
Member

xllora commented Sep 3, 2017

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.

@jojo05
Copy link
Author

jojo05 commented Sep 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants