Last active
December 27, 2015 00:19
-
-
Save mhgrove/7237122 to your computer and use it in GitHub Desktop.
This file contains 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
// this is where we'll store our constraints | |
Sail aConstraints = new MemoryStore(); | |
aConstraints.initialize(); | |
// more specifically, we'll store them in a particular named graph | |
URI aConstraintGraph = Values.iri("urn:icv"); | |
// and here is our database. note this can be *any* type of Repository | |
Repository aRepo = new SailRepository(new MemoryStore()); | |
// and now we want to layer Stardog ICV on top of that repo | |
ICVRepository aICRepo = SesameICV.builder() | |
.constraints(aConstraints) | |
.context(aConstraintGraph) | |
.build(aRepo); | |
// now obtain a connection to the database | |
ICVRepositoryConnection aConn = aICRepo.getConnection(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment