Skip to content

Commit

Permalink
Simple example that shows how to access the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroetzsch committed Nov 12, 2014
1 parent dd50b09 commit 54bfb03
Showing 1 changed file with 17 additions and 0 deletions.
@@ -0,0 +1,17 @@
package org.wikidata.wdtk.examples;

import org.wikidata.wdtk.datamodel.helpers.Datamodel;
import org.wikidata.wdtk.storage.wdtkbindings.WdtkDatabaseManager;

public class DbQueryExample {

final static String dbName = "wdtkDatabaseFull-20141013";
final static WdtkDatabaseManager wdtkDatabaseManager = new WdtkDatabaseManager(
dbName);

public static void main(String[] args) {
System.out.println(wdtkDatabaseManager.getEntityDocument(Datamodel
.makeWikidataItemIdValue("Q42")));
}

}

0 comments on commit 54bfb03

Please sign in to comment.