Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
applicationContext.xml
<bean name="dataSource" class="com.clarkparsia.stardog.ext.spring.DataSourceFactoryBean">
<property name="to" value="testdb"/>
<property name="createIfNotPresent" value="true"/>
</bean>
<bean name="template" class="com.clarkparsia.stardog.ext.spring.SnarlTemplate">
<property name="dataSource" ref="dataSource"/>
</bean>
<bean name="importer" class="com.clarkparsia.stardog.ext.spring.DataImporter">
<property name="snarlTemplate" ref="template"/>
<property name="format" value="N3"/>
<property name="inputFiles">
<list>
<value>classpath:sp2b_10k.n3</value>
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.