Created
September 19, 2014 12:51
-
-
Save wikier/728e234bb998158bf9ec to your computer and use it in GitHub Desktop.
Requesting Geonames RDF data with Marmotta LDClient
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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