-
Notifications
You must be signed in to change notification settings - Fork 17
Home
The KR library is for working with knowledge representations and knowledge bases. Currently it facilitates use of RDF-based representations backed by triple-/quad- stores. It provides a consistent clojure based way of interacting with its backing implementations, which currently include the Jena and Sesame APIs.
The primary api functions you're likely to use come from the kr-core apis:
(use 'edu.ucdenver.ccp.kr.kb)
(use 'edu.ucdenver.ccp.kr.rdf)
(use 'edu.ucdenver.ccp.kr.sparql)
To actually get a KB instance to work with you'll need to make sure the implementation-specific code is loaded:
(require 'edu.ucdenver.ccp.kr.sesame.kb)
OR
(require 'edu.ucdenver.ccp.kr.jena.kb)
The examples also provide details on how to interact with a KB (to appear).
More detailed uses can be found in the test cases for both the KB, RDF, and SPARQL APIs. They are here: https://github.com/drlivingston/kr/tree/master/kr-core/src/test/clojure/edu/ucdenver/ccp/test/kr
releases are deployed to clojars:
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
the core dependency is kr-core:
<dependency>
<groupId>edu.ucdenver.ccp</groupId>
<artifactId>kr-core</artifactId>
<version>1.4.0</version>
</dependency>
but the core dependency is unnecessary if you are brining in either the sesame or jena implementations:
<dependency>
<groupId>edu.ucdenver.ccp</groupId>
<artifactId>kr-sesame-core</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>edu.ucdenver.ccp</groupId>
<artifactId>kr-jena-core</artifactId>
<version>1.4.0</version>
</dependency>
open sourced by:
CCP Lab
University of Colorado Denver
primary developer: Kevin Livingston