Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for marketing push #63

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,9 @@ MigrationBackup/

# DotNet Sample specific files
Ontologies.g.cs
.project
.settings/org.eclipse.buildship.core.prefs
weblog/stardog-client/.classpath
weblog/stardog-client/.project
weblog/stardog-client/.settings/org.eclipse.buildship.core.prefs
weblog/stardog-client/src/main/java/com/stardog/examples/CCSupplier.java
7 changes: 4 additions & 3 deletions weblog/stardog-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ repositories {

dependencies {
// Core Dependencies
compile ('com.complexible.stardog:client-http:6.1.0')
compile ('com.stardog:stardog-spring:6.1.1')
compile "com.complexible.stardog:server:6.1.0"
compile ('com.complexible.stardog:client-http:7.2.1')
compile ('com.stardog:stardog-spring:7.2.1')
compile "com.complexible.stardog:server:7.2.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would hardly call 7.2.1 up-to-date. Is there a specific reason you chose this version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just made it the same as what the latest version of stardog-spring is at.


compile ('org.springframework:spring-core:4.3.10.RELEASE')
compile ('org.springframework:spring-beans:4.3.10.RELEASE')
compile ('org.springframework:spring-context:4.3.10.RELEASE')
compile ('org.springframework:spring-tx:4.3.10.RELEASE')
compile ('org.slf4j:slf4j-api:1.6.1')
compile group: 'com.jtransc', name: 'jtransc-rt', version: '0.6.0'
}

mainClassName = "com.stardog.examples.StardogSpringClient"
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.stardog.examples;

import java.util.function.Supplier;

import com.complexible.stardog.api.ConnectionCredentials;
import com.complexible.stardog.api.admin.AdminConnection;
import com.complexible.stardog.api.admin.AdminConnectionConfiguration;
import org.slf4j.Logger;
Expand All @@ -15,6 +18,7 @@ public class StardogAdmin implements InitializingBean {
private String username;
private String password;
private String url;
private Supplier<ConnectionCredentials> supplier;

public String getTo() {
return to;
Expand Down Expand Up @@ -44,11 +48,18 @@ public String getUrl() {
return url;
}


public void setUrl(String url) {
this.url = url;
}

public Supplier<ConnectionCredentials> getSupplier() {
return supplier;
}

public void setSupplier(Supplier<ConnectionCredentials> supplier) {
this.supplier = supplier;
}

/**
* Creates a connection to the DBMS itself so we can perform some administrative actions.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
-->
<bean name="stardogAdmin" class="com.stardog.examples.StardogAdmin">
<property name="to" value="testDB"/>
<property name="username" value="admin"/>
<property name="password" value="admin"/>
<property name="url" value="http://localhost:5820"/>
<property name="supplier" ref="supplierFunc" />
</bean>

<bean id="supplierFunc" class="com.stardog.examples.CCSupplier" factory-method="getSupplier" />

<bean name="dataSource" class="com.complexible.stardog.ext.spring.DataSourceFactoryBean">
<property name="to" value="testDB"/>
<property name="username" value="admin"/>
<property name="password" value="admin"/>
<property name="supplier" ref="supplierFunc" />
<property name="reasoningType" value="true" />
<property name="url" value="http://localhost:5820"/>
</bean>
Expand Down