Skip to content

The agent engineering platform.

test(langchain): delete ontotext graphdb test (#34710)

amelvil2-ford381f0a397124
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/Dockerfile b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/Dockerfile
deleted file mode 100644
index 5d8c968183..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/Dockerfile
+++ /dev/null
@@ -1,9 +0,0 @@
-FROM ontotext/graphdb:10.5.1
-RUN mkdir -p /opt/graphdb/dist/data/repositories/starwars
-COPY config-starwars.ttl /opt/graphdb/dist/data/repositories/starwars/config.ttl
-RUN mkdir -p /opt/graphdb/dist/data/repositories/langchain
-COPY config-langchain.ttl /opt/graphdb/dist/data/repositories/langchain/config.ttl
-COPY starwars-data.trig /
-COPY berners-lee-card.ttl /
-COPY graphdb_create.sh /run.sh
-ENTRYPOINT bash /run.sh
\ No newline at end of file
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/berners-lee-card.ttl b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/berners-lee-card.ttl
deleted file mode 100644
index 503138dff8..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/berners-lee-card.ttl
+++ /dev/null
@@ -1,114 +0,0 @@
-@prefix : <http://xmlns.com/foaf/0.1/> .
-@prefix Be: <https://www.w3.org/People/Berners-Lee/> .
-@prefix Pub: <https://timbl.com/timbl/Public/> .
-@prefix blog: <http://dig.csail.mit.edu/breadcrumbs/blog/> .
-@prefix card: <https://www.w3.org/People/Berners-Lee/card#> .
-@prefix cc: <http://creativecommons.org/ns#> .
-@prefix cert: <http://www.w3.org/ns/auth/cert#> .
-@prefix con: <http://www.w3.org/2000/10/swap/pim/contact#> .
-@prefix dc: <http://purl.org/dc/elements/1.1/> .
-@prefix dct: <http://purl.org/dc/terms/> .
-@prefix doap: <http://usefulinc.com/ns/doap#> .
-@prefix geo1: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
-@prefix ldp: <http://www.w3.org/ns/ldp#> .
-@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix schema1: <http://schema.org/> .
-@prefix sioc: <http://rdfs.org/sioc/ns#> .
-@prefix solid: <http://www.w3.org/ns/solid/terms#> .
-@prefix space: <http://www.w3.org/ns/pim/space#> .
-@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
-@prefix w3c: <http://www.w3.org/data#> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
-
-<http://dig.csail.mit.edu/2005/ajar/ajaw/data#Tabulator> doap:developer card:i .
-
-<http://dig.csail.mit.edu/2007/01/camp/data#course> :maker card:i .
-
-<http://dig.csail.mit.edu/data#DIG> :member card:i .
-
-<http://wiki.ontoworld.org/index.php/_IRW2006> dc:title "Identity, Reference and the Web workshop 2006" ;
- con:participant card:i .
-
-<http://www.ecs.soton.ac.uk/~dt2/dlstuff/www2006_data#panel-panelk01> s:label "The Next Wave of the Web (Plenary Panel)" ;
- con:participant card:i .
-
-<http://www.w3.org/2000/10/swap/data#Cwm> doap:developer card:i .
-
-<http://www.w3.org/2011/Talks/0331-hyderabad-tbl/data#talk> dct:title "Designing the Web for an Open Society" ;
- :maker card:i .
-
-w3c:W3C :member card:i .
-
-<https://www.w3.org/DesignIssues/Overview.html> dc:title "Design Issues for the World Wide Web" ;
- :maker card:i .
-
-Be:card a :PersonalProfileDocument ;
- cc:license <http://creativecommons.org/licenses/by-nc/3.0/> ;
- dc:title "Tim Berners-Lee's FOAF file" ;
- :maker card:i ;
- :primaryTopic card:i .
-
-blog:4 dc:title "timbl's blog on DIG" ;
- s:seeAlso <http://dig.csail.mit.edu/breadcrumbs/blog/feed/4> ;
- :maker card:i .
-
-Pub:friends.ttl a :PersonalProfileDocument ;
- cc:license <http://creativecommons.org/licenses/by-nc/3.0/> ;
- dc:title "Tim Berners-Lee's editable profile" ;
- :maker card:i ;
- :primaryTopic card:i .
-
-card:i a con:Male,
- :Person ;
- s:label "Tim Berners-Lee" ;
- sioc:avatar <https://www.w3.org/People/Berners-Lee/images/timbl-image-by-Coz-cropped.jpg> ;
- schema1:owns <https://timblbot.inrupt.net/profile/card#me> ;
- s:seeAlso Pub:friends.ttl ;
- con:assistant card:amy ;
- con:homePage Be: ;
- con:office [ con:address [ con:city "Cambridge" ;
- con:country "USA" ;
- con:postalCode "02139" ;
- con:street "32 Vassar Street" ;
- con:street2 "MIT CSAIL Building 32" ] ;
- geo1:location [ geo1:lat "42.361860" ;
- geo1:long "-71.091840" ] ] ;
- con:preferredURI "https://www.w3.org/People/Berners-Lee/card#i" ;
- con:publicHomePage Be: ;
- vcard:fn "Tim Berners-Lee" ;
- vcard:hasAddress [ a vcard:Work ;
- vcard:locality "Cambridge" ;
- vcard:postal-code "02139" ;
- vcard:region "MA" ;
- vcard:street-address "32 Vassar Street" ] ;
- cert:key [ a cert:RSAPublicKey ;
- cert:exponent 65537 ;
- cert:modulus "ebe99c737bd3670239600547e5e2eb1d1497da39947b6576c3c44ffeca32cf0f2f7cbee3c47001278a90fc7fc5bcf292f741eb1fcd6bbe7f90650afb519cf13e81b2bffc6e02063ee5a55781d420b1dfaf61c15758480e66d47fb0dcb5fa7b9f7f1052e5ccbd01beee9553c3b6b51f4daf1fce991294cd09a3d1d636bc6c7656e4455d0aff06daec740ed0084aa6866fcae1359de61cc12dbe37c8fa42e977c6e727a8258bb9a3f265b27e3766fe0697f6aa0bcc81c3f026e387bd7bbc81580dc1853af2daa099186a9f59da526474ef6ec0a3d84cf400be3261b6b649dea1f78184862d34d685d2d587f09acc14cd8e578fdd2283387821296f0af39b8d8845"^^xsd:hexBinary ] ;
- ldp:inbox Pub:Inbox ;
- space:preferencesFile <https://timbl.com/timbl/Data/preferences.n3> ;
- space:storage Pub:,
- <https://timbl.inrupt.net/>,
- <https://timbl.solid.community/> ;
- solid:editableProfile Pub:friends.ttl ;
- solid:oidcIssuer <https://timbl.com> ;
- solid:profileBackgroundColor "#ffffff" ;
- solid:profileHighlightColor "#00467E" ;
- solid:publicTypeIndex Pub:PublicTypeIndex.ttl ;
- :account <http://en.wikipedia.org/wiki/User:Timbl>,
- <http://twitter.com/timberners_lee>,
- <http://www.reddit.com/user/timbl/> ;
- :based_near [ geo1:lat "42.361860" ;
- geo1:long "-71.091840" ] ;
- :family_name "Berners-Lee" ;
- :givenname "Timothy" ;
- :homepage Be: ;
- :img <https://www.w3.org/Press/Stock/Berners-Lee/2001-europaeum-eighth.jpg> ;
- :mbox <mailto:[email protected]> ;
- :mbox_sha1sum "965c47c5a70db7407210cef6e4e6f5374a525c5c" ;
- :name "Timothy Berners-Lee" ;
- :nick "TimBL",
- "timbl" ;
- :openid Be: ;
- :title "Sir" ;
- :weblog blog:4 ;
- :workplaceHomepage <https://www.w3.org/> .
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-langchain.ttl b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-langchain.ttl
deleted file mode 100644
index dcbdeeebe1..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-langchain.ttl
+++ /dev/null
@@ -1,46 +0,0 @@
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
-@prefix rep: <http://www.openrdf.org/config/repository#>.
-@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
-@prefix sail: <http://www.openrdf.org/config/sail#>.
-@prefix graphdb: <http://www.ontotext.com/config/graphdb#>.
-
-[] a rep:Repository ;
- rep:repositoryID "langchain" ;
- rdfs:label "" ;
- rep:repositoryImpl [
- rep:repositoryType "graphdb:SailRepository" ;
- sr:sailImpl [
- sail:sailType "graphdb:Sail" ;
-
- graphdb:read-only "false" ;
-
- # Inference and Validation
- graphdb:ruleset "empty" ;
- graphdb:disable-sameAs "true" ;
- graphdb:check-for-inconsistencies "false" ;
-
- # Indexing
- graphdb:entity-id-size "32" ;
- graphdb:enable-context-index "false" ;
- graphdb:enablePredicateList "true" ;
- graphdb:enable-fts-index "false" ;
- graphdb:fts-indexes ("default" "iri") ;
- graphdb:fts-string-literals-index "default" ;
- graphdb:fts-iris-index "none" ;
-
- # Queries and Updates
- graphdb:query-timeout "0" ;
- graphdb:throw-QueryEvaluationException-on-timeout "false" ;
- graphdb:query-limit-results "0" ;
-
- # Settable in the file but otherwise hidden in the UI and in the RDF4J console
- graphdb:base-URL "http://example.org/owlim#" ;
- graphdb:defaultNS "" ;
- graphdb:imports "" ;
- graphdb:repository-type "file-repository" ;
- graphdb:storage-folder "storage" ;
- graphdb:entity-index-size "10000000" ;
- graphdb:in-memory-literal-properties "true" ;
- graphdb:enable-literal-index "true" ;
- ]
- ].
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-starwars.ttl b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-starwars.ttl
deleted file mode 100644
index 799a892ed1..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/config-starwars.ttl
+++ /dev/null
@@ -1,46 +0,0 @@
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
-@prefix rep: <http://www.openrdf.org/config/repository#>.
-@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
-@prefix sail: <http://www.openrdf.org/config/sail#>.
-@prefix graphdb: <http://www.ontotext.com/config/graphdb#>.
-
-[] a rep:Repository ;
- rep:repositoryID "starwars" ;
- rdfs:label "" ;
- rep:repositoryImpl [
- rep:repositoryType "graphdb:SailRepository" ;
- sr:sailImpl [
- sail:sailType "graphdb:Sail" ;
-
- graphdb:read-only "false" ;
-
- # Inference and Validation
- graphdb:ruleset "empty" ;
- graphdb:disable-sameAs "true" ;
- graphdb:check-for-inconsistencies "false" ;
-
- # Indexing
- graphdb:entity-id-size "32" ;
- graphdb:enable-context-index "false" ;
- graphdb:enablePredicateList "true" ;
- graphdb:enable-fts-index "false" ;
- graphdb:fts-indexes ("default" "iri") ;
- graphdb:fts-string-literals-index "default" ;
- graphdb:fts-iris-index "none" ;
-
- # Queries and Updates
- graphdb:query-timeout "0" ;
- graphdb:throw-QueryEvaluationException-on-timeout "false" ;
- graphdb:query-limit-results "0" ;
-
- # Settable in the file but otherwise hidden in the UI and in the RDF4J console
- graphdb:base-URL "http://example.org/owlim#" ;
- graphdb:defaultNS "" ;
- graphdb:imports "" ;
- graphdb:repository-type "file-repository" ;
- graphdb:storage-folder "storage" ;
- graphdb:entity-index-size "10000000" ;
- graphdb:in-memory-literal-properties "true" ;
- graphdb:enable-literal-index "true" ;
- ]
- ].
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/docker-compose.yaml b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/docker-compose.yaml
deleted file mode 100644
index 80c15421f9..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/docker-compose.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-version: '3.7'
-
-services:
-
- graphdb:
- image: graphdb
- container_name: graphdb
- ports:
- - "7200:7200"
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/graphdb_create.sh b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/graphdb_create.sh
deleted file mode 100644
index 48e2ce8d6f..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/graphdb_create.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /bin/bash
-GRAPHDB_URI="http://localhost:7200/"
-
-echo -e "\nUsing GraphDB: ${GRAPHDB_URI}"
-
-function startGraphDB {
- echo -e "\nStarting GraphDB..."
- exec /opt/graphdb/dist/bin/graphdb
-}
-
-function waitGraphDBStart {
- echo -e "\nWaiting GraphDB to start..."
- for _ in $(seq 1 5); do
- CHECK_RES=$(curl --silent --write-out '%{http_code}' --output /dev/null ${GRAPHDB_URI}/rest/repositories)
- if [ "${CHECK_RES}" = '200' ]; then
- echo -e "\nUp and running"
- break
- fi
- sleep 30s
- echo "CHECK_RES: ${CHECK_RES}"
- done
-}
-
-function loadData {
- echo -e "\nImporting starwars-data.trig"
- curl -X POST -H "Content-Type: application/x-trig" -T /starwars-data.trig ${GRAPHDB_URI}/repositories/starwars/statements
-
- echo -e "\nImporting berners-lee-card.ttl"
- curl -X POST -H "Content-Type:application/x-turtle" -T /berners-lee-card.ttl ${GRAPHDB_URI}/repositories/langchain/statements
-}
-
-startGraphDB &
-waitGraphDBStart
-loadData
-wait
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/start.sh b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/start.sh
deleted file mode 100755
index fe3856ad33..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/start.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-set -ex
-
-docker compose down -v --remove-orphans
-docker build --tag graphdb .
-docker compose up -d graphdb
diff --git a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/starwars-data.trig b/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/starwars-data.trig
deleted file mode 100644
index 7ddc022a14..0000000000
--- a/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/starwars-data.trig
+++ /dev/null
@@ -1,160 +0,0 @@
-@base <https://swapi.co/resource/>.
-@prefix voc: <https://swapi.co/vocabulary/> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-
-{
-
-<human/11>
- a voc:Character , voc:Human ;
- rdfs:label "Anakin Skywalker", "Darth Vader" ;
- voc:birthYear "41.9BBY" ;
- voc:eyeColor "blue" ;
- voc:gender "male" ;
- voc:hairColor "blond" ;
- voc:height 188.0 ;
- voc:homeworld <planet/1> ;
- voc:mass 84.0 ;
- voc:skinColor "fair" ;
- voc:cybernetics "Cybernetic right arm" .
-
-<human/1>
- a voc:Character , voc:Human ;
- rdfs:label "Luke Skywalker" ;
- voc:birthYear "19BBY" ;
- voc:eyeColor "blue" ;
- voc:gender "male" ;
- voc:hairColor "blond" ;
- voc:height 172.0 ;
- voc:homeworld <planet/1> ;
- voc:mass 77.0 ;
- voc:skinColor "fair" .
-
-<human/35>
- a voc:Character , voc:Human ;
- rdfs:label "Padmé Amidala" ;
- voc:birthYear "46BBY" ;
- voc:eyeColor "brown" ;
- voc:gender "female" ;
- voc:hairColor "brown" ;
- voc:height 165.0 ;
- voc:homeworld <planet/8> ;
- voc:mass 45.0 ;
- voc:skinColor "light" .
-
-<planet/1>
- a voc:Planet ;
- rdfs:label "Tatooine" ;
- voc:climate "arid" ;
- voc:diameter 10465 ;
- voc:gravity "1 standard" ;
- voc:orbitalPeriod 304 ;
- voc:population 200000 ;
- voc:resident <human/1> , <human/11> ;
- voc:rotationPeriod 23 ;
- voc:surfaceWater 1 ;
- voc:terrain "desert" .
-
-<planet/8>
- a voc:Planet ;
- rdfs:label "Naboo" ;
- voc:climate "temperate" ;
- voc:diameter 12120 ;
- voc:gravity "1 standard" ;
- voc:orbitalPeriod 312 ;
- voc:population 4500000000 ;
- voc:resident <human/35> ;
- voc:rotationPeriod 26 ;
- voc:surfaceWater 12 ;
- voc:terrain "grassy hills, swamps, forests, mountains" .
-
-<planet/14>
- a voc:Planet ;
- rdfs:label "Kashyyyk" ;
- voc:climate "tropical" ;
- voc:diameter 12765 ;
- voc:gravity "1 standard" ;
- voc:orbitalPeriod 381 ;
- voc:population 45000000 ;
- voc:resident <wookiee/13> , <wookiee/80> ;
- voc:rotationPeriod 26 ;
- voc:surfaceWater 60 ;
- voc:terrain "jungle, forests, lakes, rivers" .
-
-<wookiee/13>
- a voc:Character , voc:Wookiee ;
- rdfs:label "Chewbacca" ;
- voc:birthYear "200BBY" ;
- voc:eyeColor "blue" ;
- voc:gender "male" ;
- voc:hairColor "brown" ;
- voc:height 228.0 ;
- voc:homeworld <planet/14> ;
- voc:mass 112.0 .
-
-<wookiee/80>
- a voc:Character , voc:Wookiee ;
- rdfs:label "Tarfful" ;
- voc:eyeColor "blue" ;
- voc:gender "male" ;
- voc:hairColor "brown" ;
- voc:height 234.0 ;
- voc:homeworld <planet/14> ;
- voc:mass 136.0 ;
- voc:skinColor "brown" .
-}
-
-<https://swapi.co/ontology/> {
-
- voc:Character a owl:Class .
- voc:Species a owl:Class .
-
- voc:Human a voc:Species;
- rdfs:label "Human";
- voc:averageHeight 180.0;
- voc:averageLifespan "120";
- voc:character <https://swapi.co/resource/human/1>, <https://swapi.co/resource/human/35>,
- <https://swapi.co/resource/human/11>;
- voc:language "Galactic Basic";
- voc:skinColor "black", "caucasian", "asian", "hispanic";
- voc:eyeColor "blue", "brown", "hazel", "green", "grey", "amber";
- voc:hairColor "brown", "red", "black", "blonde" .
-
- voc:Planet a owl:Class .
-
- voc:Wookiee a voc:Species;
- rdfs:label "Wookiee";
- voc:averageHeight 210.0;
- voc:averageLifespan "400";
- voc:character <https://swapi.co/resource/wookiee/13>, <https://swapi.co/resource/wookiee/80>;
- voc:language "Shyriiwook";
- voc:planet <https://swapi.co/resource/planet/14>;
- voc:skinColor "gray";
- voc:eyeColor "blue", "yellow", "brown", "red", "green", "golden";
- voc:hairColor "brown", "black" .
-
- voc:birthYear a owl:DatatypeProperty .
- voc:eyeColor a owl:DatatypeProperty .
- voc:gender a owl:DatatypeProperty .
- voc:hairColor a owl:DatatypeProperty .
- voc:height a owl:DatatypeProperty .
- voc:homeworld a owl:ObjectProperty .
- voc:mass a owl:DatatypeProperty .
- voc:skinColor a owl:DatatypeProperty .
- voc:cybernetics a owl:DatatypeProperty .
- voc:climate a owl:DatatypeProperty .
- voc:diameter a owl:DatatypeProperty .
- voc:gravity a owl:DatatypeProperty .
- voc:orbitalPeriod a owl:DatatypeProperty .
- voc:population a owl:DatatypeProperty .
- voc:resident a owl:ObjectProperty .
- voc:rotationPeriod a owl:DatatypeProperty .
- voc:surfaceWater a owl:DatatypeProperty .
- voc:terrain a owl:DatatypeProperty .
- voc:averageHeight a owl:DatatypeProperty .
- voc:averageLifespan a owl:DatatypeProperty .
- voc:character a owl:ObjectProperty .
- voc:language a owl:DatatypeProperty .
- voc:planet a owl:ObjectProperty .
-
-}