Stardog 5 beta: Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.icv.api.ICVConnection'

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

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 :slight_smile:

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.