Skip to content

Instantly share code, notes, and snippets.

@wikier
Created September 19, 2014 12:51
Show Gist options
  • Save wikier/728e234bb998158bf9ec to your computer and use it in GitHub Desktop.
Save wikier/728e234bb998158bf9ec to your computer and use it in GitHub Desktop.
Requesting Geonames RDF data with Marmotta LDClient
LDClientService ldclient = new LDClient();
ClientResponse response = ldclient.retrieveResource("http://sws.geonames.org/2658434/about.rdf");
RepositoryConnection connection = ModelCommons.asRepository(response.getData()).getConnection();
connection.begin();
System.out.println("Triples retrieved: " + connection.size());
connection.commit();
connection.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment