Hi,
I’m using the ICVConnection class, which used to be in the client-snarl dependency. That dependency doesn’t exist for Stardog 5 anymore.
This is my code:
try (Connection connection = connectionConfiguration.connect()) {
ICVConnection validator = connection.as(ICVConnection.class);
validator.addConstraints().format(RDFFormat.TURTLE)
.file(Paths.get("../../docker/stardog/user_constraints.ttl"));
}
What should I import to use ICVConnection?
Cheers,
Håvard
pavel
(Pavel Klinov)
May 19, 2017, 7:22am
2
Do you use the embedded server? If so, then client-embedded will pull all jars for using ICV, reasoning, versioning, etc. over the embedded connection.
You can take a look at the examples which we updated to work with 5.0.
Cheers,
Pavel
1 Like
Thank you Pavel.
Including client-embedded worked great
I hadn’t look much in the examples, I was using the docs and there isn’t anything in the maven section there about client-embedded.
Håvard
system
(system)
Closed
June 2, 2017, 10:12am
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.