Skip to content

Commit da046ad

Browse files
committed
Commit the demo files
0 parents  commit da046ad

10 files changed

+13801
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.iml
2+
.idea/

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ontotext/graphdb:10.5.1
2+
RUN mkdir -p /opt/graphdb/dist/data/repositories/langchain
3+
COPY config.ttl /opt/graphdb/dist/data/repositories/langchain/
4+
COPY starwars-data.trig /
5+
COPY rdfs.ttl /
6+
COPY graphdb_create.sh /run.sh
7+
ENTRYPOINT bash /run.sh

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# LangChain GraphDB QA Chain Demo Files
2+
3+
The repository contains the files used to demonstrate the [GraphDB QA Chain](https://python.langchain.com/docs/use_cases/graph/graph_ontotext_graphdb_qa) implemented in LangChain.

config.ttl

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
2+
@prefix rep: <http://www.openrdf.org/config/repository#>.
3+
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
4+
@prefix sail: <http://www.openrdf.org/config/sail#>.
5+
@prefix graphdb: <http://www.ontotext.com/config/graphdb#>.
6+
7+
[] a rep:Repository ;
8+
rep:repositoryID "langchain" ;
9+
rdfs:label "" ;
10+
rep:repositoryImpl [
11+
rep:repositoryType "graphdb:SailRepository" ;
12+
sr:sailImpl [
13+
sail:sailType "graphdb:Sail" ;
14+
15+
graphdb:read-only "false" ;
16+
17+
# Inference and Validation
18+
graphdb:ruleset "empty" ;
19+
graphdb:disable-sameAs "true" ;
20+
graphdb:check-for-inconsistencies "false" ;
21+
22+
# Indexing
23+
graphdb:entity-id-size "32" ;
24+
graphdb:enable-context-index "false" ;
25+
graphdb:enablePredicateList "true" ;
26+
graphdb:enable-fts-index "false" ;
27+
graphdb:fts-indexes ("default" "iri") ;
28+
graphdb:fts-string-literals-index "default" ;
29+
graphdb:fts-iris-index "none" ;
30+
31+
# Queries and Updates
32+
graphdb:query-timeout "0" ;
33+
graphdb:throw-QueryEvaluationException-on-timeout "false" ;
34+
graphdb:query-limit-results "0" ;
35+
36+
# Settable in the file but otherwise hidden in the UI and in the RDF4J console
37+
graphdb:base-URL "http://example.org/owlim#" ;
38+
graphdb:defaultNS "" ;
39+
graphdb:imports "" ;
40+
graphdb:repository-type "file-repository" ;
41+
graphdb:storage-folder "storage" ;
42+
graphdb:entity-index-size "10000000" ;
43+
graphdb:in-memory-literal-properties "true" ;
44+
graphdb:enable-literal-index "true" ;
45+
]
46+
].

docker-compose.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.7'
2+
3+
services:
4+
5+
graphdb:
6+
image: graphdb
7+
container_name: graphdb
8+
ports:
9+
- "7200:7200"

0 commit comments

Comments
 (0)