Skip to content

Instantly share code, notes, and snippets.

@rvesse
Created October 30, 2013 10:19
Show Gist options
  • Save rvesse/7230219 to your computer and use it in GitHub Desktop.
Save rvesse/7230219 to your computer and use it in GitHub Desktop.
Issuing a SPARQL Query to Stardog with dotNetRDF
// Assume we already have a StardogConnector in the variable Stardog
SparqlResultSet results = stardog.Query(@"
SELECT DISTINCT ?type WHERE { [] a ?type } LIMIT 10
") as SparqlResultSet;
// Now work with the SPARQL Results as desired...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment