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

**URL:** <https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332>\
**Category:** Support\
**Created:** [May 19, 2017, 7:18am UTC](https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332 "2017-05-19T07:18:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmottestad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hmottestad/32/19_2.png) [@hmottestad](https://community.stardog.com/u/hmottestad)\
**Post date:** [May 19, 2017, 7:18am UTC](https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332/1 "2017-05-19T07:18:28Z")

</div>

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:

```auto
		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

---

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [May 19, 2017, 7:22am UTC](https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332/2 "2017-05-19T07:22:56Z")

</div>

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](https://github.com/stardog-union/stardog-examples/tree/develop/examples/api) which we updated to work with 5.0.

Cheers,  
Pavel

---

<div class="post-metadata">

**Author:** ![hmottestad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hmottestad/32/19_2.png) [@hmottestad](https://community.stardog.com/u/hmottestad)\
**Post date:** [May 19, 2017, 10:11am UTC](https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332/3 "2017-05-19T10:11:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 2, 2017, 10:12am UTC](https://community.stardog.com/t/stardog-5-beta-could-not-find-an-appropriate-view-implementation-of-this-connection-for-com-complexible-stardog-icv-api-icvconnection/332/4 "2017-06-02T10:12:22Z")

</div>

Closed on June 2, 2017, 10:12am UTC

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