Das interdisziplinäre Forschungsprojekt \"Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n
\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n
\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n
"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://www.knora.org/ontology/0803/incunabula"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"Dokubib"}],"id":"http://rdfh.ch/projects/0804","keywords":[],"logo":null,"longname":"Dokubib","ontologies":["http://www.knora.org/ontology/0804/dokubib"],"selfjoin":false,"shortcode":"0804","shortname":"dokubib","status":false},{"description":[{"value":"Historisch-kritische Edition des Gesamtschaffens von Anton Webern."}],"id":"http://rdfh.ch/projects/08AE","keywords":[],"logo":null,"longname":"Anton Webern Gesamtausgabe","ontologies":["http://www.knora.org/ontology/08AE/webern"],"selfjoin":false,"shortcode":"08AE","shortname":"webern","status":true},{"description":[{"value":"Bernoulli-Euler Online"}],"id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF","keywords":[],"logo":null,"longname":"Bernoulli-Euler Online","ontologies":["http://www.knora.org/ontology/0801/leibniz","http://www.knora.org/ontology/0801/biblio","http://www.knora.org/ontology/0801/newton","http://www.knora.org/ontology/0801/beol"],"selfjoin":false,"shortcode":"0801","shortname":"beol","status":true},{"description":[{"value":"Knora Shared Ontologies Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#DefaultSharedOntologiesProject","keywords":[],"logo":null,"longname":"Knora Default Shared Ontologies Project","ontologies":[],"selfjoin":false,"shortcode":"0000","shortname":"DefaultSharedOntologiesProject","status":true},{"description":[{"value":"Knora System Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#SystemProject","keywords":[],"logo":null,"longname":"Knora System Project","ontologies":["http://www.knora.org/ontology/standoff","http://www.knora.org/ontology/knora-base","http://www.knora.org/ontology/knora-admin","http://www.knora.org/ontology/salsah-gui"],"selfjoin":false,"shortcode":"FFFF","shortname":"SystemProject","status":true}]}
\ No newline at end of file
+{"projects":[{"description":[{"value":"Anything Project"}],"id":"http://rdfh.ch/projects/0001","keywords":["arbitrary test data","things"],"logo":null,"longname":"Anything Project","ontologies":["http://www.knora.org/ontology/0001/anything","http://www.knora.org/ontology/0001/minimal","http://www.knora.org/ontology/0001/something"],"selfjoin":false,"shortcode":"0001","shortname":"anything","status":true},{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://www.knora.org/ontology/00FF/images","http://www.knora.org/ontology/00FF/foo"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},{"description":[{"value":"
Das interdisziplinäre Forschungsprojekt \"Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n
\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n
\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://www.knora.org/ontology/0803/incunabula"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"Dokubib"}],"id":"http://rdfh.ch/projects/0804","keywords":[],"logo":null,"longname":"Dokubib","ontologies":["http://www.knora.org/ontology/0804/dokubib"],"selfjoin":false,"shortcode":"0804","shortname":"dokubib","status":false},{"description":[{"value":"Historisch-kritische Edition des Gesamtschaffens von Anton Webern."}],"id":"http://rdfh.ch/projects/08AE","keywords":[],"logo":null,"longname":"Anton Webern Gesamtausgabe","ontologies":[],"selfjoin":false,"shortcode":"08AE","shortname":"webern","status":true},{"description":[{"value":"Bernoulli-Euler Online"}],"id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF","keywords":[],"logo":null,"longname":"Bernoulli-Euler Online","ontologies":["http://www.knora.org/ontology/0801/leibniz","http://www.knora.org/ontology/0801/biblio","http://www.knora.org/ontology/0801/newton","http://www.knora.org/ontology/0801/beol"],"selfjoin":false,"shortcode":"0801","shortname":"beol","status":true},{"description":[{"value":"Knora Shared Ontologies Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#DefaultSharedOntologiesProject","keywords":[],"logo":null,"longname":"Knora Default Shared Ontologies Project","ontologies":[],"selfjoin":false,"shortcode":"0000","shortname":"DefaultSharedOntologiesProject","status":true},{"description":[{"value":"Knora System Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#SystemProject","keywords":[],"logo":null,"longname":"Knora System Project","ontologies":["http://www.knora.org/ontology/standoff","http://www.knora.org/ontology/knora-base","http://www.knora.org/ontology/knora-admin","http://www.knora.org/ontology/salsah-gui"],"selfjoin":false,"shortcode":"FFFF","shortname":"SystemProject","status":true}]}
\ No newline at end of file
diff --git a/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json b/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
index dd8db1491..01fa07629 100644
--- a/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
+++ b/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
@@ -1 +1 @@
-{"@graph":[{"@id":"http://0.0.0.0:3333/ontology/0001/anything/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2017-12-19T15:23:42.166Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The anything ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/minimal/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2019-09-10T08:57:46.633162Z"},"http://www.w3.org/2000/01/rdf-schema#label":"A minimal ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/something/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://www.w3.org/2000/01/rdf-schema#label":"The something ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/images/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://www.w3.org/2000/01/rdf-schema#label":"The images demo ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/beol/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The BEOL ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/biblio/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Biblio ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/leibniz/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Briefportal Leibniz ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/newton/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Newton-Project ontology"},{"@id":"http://0.0.0.0:3333/ontology/0803/incunabula/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0803"},"http://www.w3.org/2000/01/rdf-schema#label":"The incunabula ontology"},{"@id":"http://0.0.0.0:3333/ontology/0804/dokubib/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0804"},"http://www.w3.org/2000/01/rdf-schema#label":"The dokubib ontology"},{"@id":"http://0.0.0.0:3333/ontology/08AE/webern/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/08AE"},"http://www.w3.org/2000/01/rdf-schema#label":"The Anton Webern project ontology"},{"@id":"http://api.knora.org/ontology/knora-admin/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The Knora admin ontology"},{"@id":"http://api.knora.org/ontology/knora-api/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The knora-api ontology in the complex schema"},{"@id":"http://api.knora.org/ontology/salsah-gui/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The salsah-gui ontology"},{"@id":"http://api.knora.org/ontology/standoff/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The standoff ontology"}]}
\ No newline at end of file
+{"@graph":[{"@id":"http://0.0.0.0:3333/ontology/0001/anything/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2017-12-19T15:23:42.166Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The anything ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/minimal/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2019-09-10T08:57:46.633162Z"},"http://www.w3.org/2000/01/rdf-schema#label":"A minimal ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/something/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://www.w3.org/2000/01/rdf-schema#label":"The something ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/foo/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2020-06-18T09:42:41.506895Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The foo ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/images/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://www.w3.org/2000/01/rdf-schema#label":"The images demo ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/beol/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The BEOL ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/biblio/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Biblio ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/leibniz/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Briefportal Leibniz ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/newton/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Newton-Project ontology"},{"@id":"http://0.0.0.0:3333/ontology/0803/incunabula/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0803"},"http://www.w3.org/2000/01/rdf-schema#label":"The incunabula ontology"},{"@id":"http://0.0.0.0:3333/ontology/0804/dokubib/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0804"},"http://www.w3.org/2000/01/rdf-schema#label":"The dokubib ontology"},{"@id":"http://api.knora.org/ontology/knora-admin/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The Knora admin ontology"},{"@id":"http://api.knora.org/ontology/knora-api/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The knora-api ontology in the complex schema"},{"@id":"http://api.knora.org/ontology/salsah-gui/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The salsah-gui ontology"},{"@id":"http://api.knora.org/ontology/standoff/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The standoff ontology"}]}
\ No newline at end of file
diff --git a/test/data/api/v2/ontologies/all-ontology-metadata-response.json b/test/data/api/v2/ontologies/all-ontology-metadata-response.json
index 27f40f2dc..099f19a37 100644
--- a/test/data/api/v2/ontologies/all-ontology-metadata-response.json
+++ b/test/data/api/v2/ontologies/all-ontology-metadata-response.json
@@ -28,6 +28,17 @@
"@id" : "http://rdfh.ch/projects/0001"
},
"rdfs:label" : "The something ontology"
+ }, {
+ "@id" : "http://0.0.0.0:3333/ontology/00FF/foo/v2",
+ "@type" : "owl:Ontology",
+ "knora-api:attachedToProject" : {
+ "@id" : "http://rdfh.ch/projects/00FF"
+ },
+ "knora-api:lastModificationDate" : {
+ "@type" : "xsd:dateTimeStamp",
+ "@value" : "2020-06-18T09:42:41.506895Z"
+ },
+ "rdfs:label" : "The foo ontology"
}, {
"@id" : "http://0.0.0.0:3333/ontology/00FF/images/v2",
"@type" : "owl:Ontology",
@@ -77,13 +88,6 @@
"@id" : "http://rdfh.ch/projects/0804"
},
"rdfs:label" : "The dokubib ontology"
- }, {
- "@id" : "http://0.0.0.0:3333/ontology/08AE/webern/v2",
- "@type" : "owl:Ontology",
- "knora-api:attachedToProject" : {
- "@id" : "http://rdfh.ch/projects/08AE"
- },
- "rdfs:label" : "The Anton Webern project ontology"
}, {
"@id" : "http://api.knora.org/ontology/knora-admin/v2",
"@type" : "owl:Ontology",
diff --git a/test/data/api/v2/ontologies/get-ontologies-project-anything-response-expanded.json b/test/data/api/v2/ontologies/get-ontologies-project-anything-response-expanded.json
new file mode 100644
index 000000000..f9fa5aa51
--- /dev/null
+++ b/test/data/api/v2/ontologies/get-ontologies-project-anything-response-expanded.json
@@ -0,0 +1 @@
+{"@graph":[{"@id":"http://0.0.0.0:3333/ontology/0001/anything/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2017-12-19T15:23:42.166Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The anything ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/minimal/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2019-09-10T08:57:46.633162Z"},"http://www.w3.org/2000/01/rdf-schema#label":"A minimal ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/something/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://www.w3.org/2000/01/rdf-schema#label":"The something ontology"}]}
\ No newline at end of file
diff --git a/test/data/api/v2/ontologies/get-ontologies-project-anything-response.json b/test/data/api/v2/ontologies/get-ontologies-project-anything-response.json
new file mode 100644
index 000000000..49c8c93c3
--- /dev/null
+++ b/test/data/api/v2/ontologies/get-ontologies-project-anything-response.json
@@ -0,0 +1,38 @@
+{
+ "@graph" : [ {
+ "@id" : "http://0.0.0.0:3333/ontology/0001/anything/v2",
+ "@type" : "owl:Ontology",
+ "knora-api:attachedToProject" : {
+ "@id" : "http://rdfh.ch/projects/0001"
+ },
+ "knora-api:lastModificationDate" : {
+ "@type" : "xsd:dateTimeStamp",
+ "@value" : "2017-12-19T15:23:42.166Z"
+ },
+ "rdfs:label" : "The anything ontology"
+ }, {
+ "@id" : "http://0.0.0.0:3333/ontology/0001/minimal/v2",
+ "@type" : "owl:Ontology",
+ "knora-api:attachedToProject" : {
+ "@id" : "http://rdfh.ch/projects/0001"
+ },
+ "knora-api:lastModificationDate" : {
+ "@type" : "xsd:dateTimeStamp",
+ "@value" : "2019-09-10T08:57:46.633162Z"
+ },
+ "rdfs:label" : "A minimal ontology"
+ }, {
+ "@id" : "http://0.0.0.0:3333/ontology/0001/something/v2",
+ "@type" : "owl:Ontology",
+ "knora-api:attachedToProject" : {
+ "@id" : "http://rdfh.ch/projects/0001"
+ },
+ "rdfs:label" : "The something ontology"
+ } ],
+ "@context" : {
+ "knora-api" : "http://api.knora.org/ontology/knora-api/v2#",
+ "xsd" : "http://www.w3.org/2001/XMLSchema#",
+ "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
+ "owl" : "http://www.w3.org/2002/07/owl#"
+ }
+}
\ No newline at end of file
From 7952def1a64b4fae810581f75d4d14f1d09112f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?=
Date: Thu, 18 Jun 2020 16:04:21 +0200
Subject: [PATCH 02/20] feat(ontology): Get project specific ontologies
---
src/api/v2/ontology/ontologies-endpoint-v2.ts | 19 ++++++++++++
.../v2/ontology/ontologies-endpoint.spec.ts | 29 +++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/src/api/v2/ontology/ontologies-endpoint-v2.ts b/src/api/v2/ontology/ontologies-endpoint-v2.ts
index 319e00c40..4584fa414 100644
--- a/src/api/v2/ontology/ontologies-endpoint-v2.ts
+++ b/src/api/v2/ontology/ontologies-endpoint-v2.ts
@@ -58,4 +58,23 @@ export class OntologiesEndpointV2 extends Endpoint {
);
}
+ /**
+ * Requests metadata about all ontologies from specific project
+ *
+ * @param projectIri the IRI of the project
+ */
+ getOntologiesByProjectIri(projectIri: string): Observable {
+
+ return this.httpGet("/metadata/" + encodeURIComponent(projectIri)).pipe(
+ mergeMap((ajaxResponse: AjaxResponse) => {
+ return jsonld.compact(ajaxResponse.response, {});
+ }), map((jsonldobj: object) => {
+ return this.jsonConvert.deserializeObject(jsonldobj, OntologiesMetadata);
+ }),
+ catchError(error => {
+ return this.handleError(error);
+ })
+ );
+ }
+
}
diff --git a/src/api/v2/ontology/ontologies-endpoint.spec.ts b/src/api/v2/ontology/ontologies-endpoint.spec.ts
index 90d65cf35..4421acf18 100644
--- a/src/api/v2/ontology/ontologies-endpoint.spec.ts
+++ b/src/api/v2/ontology/ontologies-endpoint.spec.ts
@@ -168,4 +168,33 @@ describe("OntologiesEndpoint", () => {
});
+ describe("Method getOntologiesByProjectIri", () => {
+
+ it("should return all ontologies from 'anything' project", done => {
+
+ knoraApiConnection.v2.onto.getOntologiesByProjectIri("http://rdfh.ch/projects/0001").subscribe(
+ (response: OntologiesMetadata) => {
+ expect(response.ontologies.length).toEqual(3);
+ expect(response.ontologies[0].id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2");
+ expect(response.ontologies[1].id).toEqual("http://0.0.0.0:3333/ontology/0001/minimal/v2");
+ expect(response.ontologies[2].id).toEqual("http://0.0.0.0:3333/ontology/0001/something/v2");
+ done();
+ }
+ );
+
+ const request = jasmine.Ajax.requests.mostRecent();
+
+ const ontoMetadata = require("../../../../test/data/api/v2/ontologies/get-ontologies-project-anything-response.json");
+
+ request.respondWith(MockAjaxCall.mockResponse(JSON.stringify(ontoMetadata)));
+
+ expect(request.url).toBe("http://0.0.0.0:3333/v2/ontologies/metadata/http%3A%2F%2Frdfh.ch%2Fprojects%2F0001");
+
+ expect(request.method).toEqual("GET");
+
+ });
+
+ });
+
+
});
From d40ce7a272ef86082d18a54d7fce3e0cd291b95e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?=
Date: Thu, 18 Jun 2020 17:01:11 +0200
Subject: [PATCH 03/20] fix(test): Reverse previous commit
---
.../admin/projects/get-projects-response.json | 2 +-
...ll-ontology-metadata-response-expanded.json | 2 +-
.../all-ontology-metadata-response.json | 18 +++++++-----------
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/test/data/api/admin/projects/get-projects-response.json b/test/data/api/admin/projects/get-projects-response.json
index 53bd65a11..b839c649e 100644
--- a/test/data/api/admin/projects/get-projects-response.json
+++ b/test/data/api/admin/projects/get-projects-response.json
@@ -1 +1 @@
-{"projects":[{"description":[{"value":"Anything Project"}],"id":"http://rdfh.ch/projects/0001","keywords":["arbitrary test data","things"],"logo":null,"longname":"Anything Project","ontologies":["http://www.knora.org/ontology/0001/anything","http://www.knora.org/ontology/0001/minimal","http://www.knora.org/ontology/0001/something"],"selfjoin":false,"shortcode":"0001","shortname":"anything","status":true},{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://www.knora.org/ontology/00FF/images","http://www.knora.org/ontology/00FF/foo"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},{"description":[{"value":"
Das interdisziplinäre Forschungsprojekt \"Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n
\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n
\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://www.knora.org/ontology/0803/incunabula"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"Dokubib"}],"id":"http://rdfh.ch/projects/0804","keywords":[],"logo":null,"longname":"Dokubib","ontologies":["http://www.knora.org/ontology/0804/dokubib"],"selfjoin":false,"shortcode":"0804","shortname":"dokubib","status":false},{"description":[{"value":"Historisch-kritische Edition des Gesamtschaffens von Anton Webern."}],"id":"http://rdfh.ch/projects/08AE","keywords":[],"logo":null,"longname":"Anton Webern Gesamtausgabe","ontologies":[],"selfjoin":false,"shortcode":"08AE","shortname":"webern","status":true},{"description":[{"value":"Bernoulli-Euler Online"}],"id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF","keywords":[],"logo":null,"longname":"Bernoulli-Euler Online","ontologies":["http://www.knora.org/ontology/0801/leibniz","http://www.knora.org/ontology/0801/biblio","http://www.knora.org/ontology/0801/newton","http://www.knora.org/ontology/0801/beol"],"selfjoin":false,"shortcode":"0801","shortname":"beol","status":true},{"description":[{"value":"Knora Shared Ontologies Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#DefaultSharedOntologiesProject","keywords":[],"logo":null,"longname":"Knora Default Shared Ontologies Project","ontologies":[],"selfjoin":false,"shortcode":"0000","shortname":"DefaultSharedOntologiesProject","status":true},{"description":[{"value":"Knora System Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#SystemProject","keywords":[],"logo":null,"longname":"Knora System Project","ontologies":["http://www.knora.org/ontology/standoff","http://www.knora.org/ontology/knora-base","http://www.knora.org/ontology/knora-admin","http://www.knora.org/ontology/salsah-gui"],"selfjoin":false,"shortcode":"FFFF","shortname":"SystemProject","status":true}]}
\ No newline at end of file
+{"projects":[{"description":[{"value":"Anything Project"}],"id":"http://rdfh.ch/projects/0001","keywords":["arbitrary test data","things"],"logo":null,"longname":"Anything Project","ontologies":["http://www.knora.org/ontology/0001/anything","http://www.knora.org/ontology/0001/minimal","http://www.knora.org/ontology/0001/something"],"selfjoin":false,"shortcode":"0001","shortname":"anything","status":true},{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://www.knora.org/ontology/00FF/images"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},{"description":[{"value":"
Das interdisziplinäre Forschungsprojekt \"Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n
\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n
\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://www.knora.org/ontology/0803/incunabula"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"Dokubib"}],"id":"http://rdfh.ch/projects/0804","keywords":[],"logo":null,"longname":"Dokubib","ontologies":["http://www.knora.org/ontology/0804/dokubib"],"selfjoin":false,"shortcode":"0804","shortname":"dokubib","status":false},{"description":[{"value":"Historisch-kritische Edition des Gesamtschaffens von Anton Webern."}],"id":"http://rdfh.ch/projects/08AE","keywords":[],"logo":null,"longname":"Anton Webern Gesamtausgabe","ontologies":["http://www.knora.org/ontology/08AE/webern"],"selfjoin":false,"shortcode":"08AE","shortname":"webern","status":true},{"description":[{"value":"Bernoulli-Euler Online"}],"id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF","keywords":[],"logo":null,"longname":"Bernoulli-Euler Online","ontologies":["http://www.knora.org/ontology/0801/leibniz","http://www.knora.org/ontology/0801/biblio","http://www.knora.org/ontology/0801/newton","http://www.knora.org/ontology/0801/beol"],"selfjoin":false,"shortcode":"0801","shortname":"beol","status":true},{"description":[{"value":"Knora Shared Ontologies Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#DefaultSharedOntologiesProject","keywords":[],"logo":null,"longname":"Knora Default Shared Ontologies Project","ontologies":[],"selfjoin":false,"shortcode":"0000","shortname":"DefaultSharedOntologiesProject","status":true},{"description":[{"value":"Knora System Project","language":"en"}],"id":"http://www.knora.org/ontology/knora-admin#SystemProject","keywords":[],"logo":null,"longname":"Knora System Project","ontologies":["http://www.knora.org/ontology/standoff","http://www.knora.org/ontology/knora-base","http://www.knora.org/ontology/knora-admin","http://www.knora.org/ontology/salsah-gui"],"selfjoin":false,"shortcode":"FFFF","shortname":"SystemProject","status":true}]}
\ No newline at end of file
diff --git a/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json b/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
index 01fa07629..dd8db1491 100644
--- a/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
+++ b/test/data/api/v2/ontologies/all-ontology-metadata-response-expanded.json
@@ -1 +1 @@
-{"@graph":[{"@id":"http://0.0.0.0:3333/ontology/0001/anything/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2017-12-19T15:23:42.166Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The anything ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/minimal/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2019-09-10T08:57:46.633162Z"},"http://www.w3.org/2000/01/rdf-schema#label":"A minimal ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/something/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://www.w3.org/2000/01/rdf-schema#label":"The something ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/foo/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2020-06-18T09:42:41.506895Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The foo ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/images/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://www.w3.org/2000/01/rdf-schema#label":"The images demo ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/beol/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The BEOL ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/biblio/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Biblio ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/leibniz/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Briefportal Leibniz ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/newton/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Newton-Project ontology"},{"@id":"http://0.0.0.0:3333/ontology/0803/incunabula/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0803"},"http://www.w3.org/2000/01/rdf-schema#label":"The incunabula ontology"},{"@id":"http://0.0.0.0:3333/ontology/0804/dokubib/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0804"},"http://www.w3.org/2000/01/rdf-schema#label":"The dokubib ontology"},{"@id":"http://api.knora.org/ontology/knora-admin/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The Knora admin ontology"},{"@id":"http://api.knora.org/ontology/knora-api/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The knora-api ontology in the complex schema"},{"@id":"http://api.knora.org/ontology/salsah-gui/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The salsah-gui ontology"},{"@id":"http://api.knora.org/ontology/standoff/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The standoff ontology"}]}
\ No newline at end of file
+{"@graph":[{"@id":"http://0.0.0.0:3333/ontology/0001/anything/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2017-12-19T15:23:42.166Z"},"http://www.w3.org/2000/01/rdf-schema#label":"The anything ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/minimal/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://api.knora.org/ontology/knora-api/v2#lastModificationDate":{"@type":"http://www.w3.org/2001/XMLSchema#dateTimeStamp","@value":"2019-09-10T08:57:46.633162Z"},"http://www.w3.org/2000/01/rdf-schema#label":"A minimal ontology"},{"@id":"http://0.0.0.0:3333/ontology/0001/something/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0001"},"http://www.w3.org/2000/01/rdf-schema#label":"The something ontology"},{"@id":"http://0.0.0.0:3333/ontology/00FF/images/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/00FF"},"http://www.w3.org/2000/01/rdf-schema#label":"The images demo ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/beol/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The BEOL ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/biblio/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Biblio ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/leibniz/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Briefportal Leibniz ontology"},{"@id":"http://0.0.0.0:3333/ontology/0801/newton/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/yTerZGyxjZVqFMNNKXCDPF"},"http://www.w3.org/2000/01/rdf-schema#label":"The Newton-Project ontology"},{"@id":"http://0.0.0.0:3333/ontology/0803/incunabula/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0803"},"http://www.w3.org/2000/01/rdf-schema#label":"The incunabula ontology"},{"@id":"http://0.0.0.0:3333/ontology/0804/dokubib/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/0804"},"http://www.w3.org/2000/01/rdf-schema#label":"The dokubib ontology"},{"@id":"http://0.0.0.0:3333/ontology/08AE/webern/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://rdfh.ch/projects/08AE"},"http://www.w3.org/2000/01/rdf-schema#label":"The Anton Webern project ontology"},{"@id":"http://api.knora.org/ontology/knora-admin/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The Knora admin ontology"},{"@id":"http://api.knora.org/ontology/knora-api/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The knora-api ontology in the complex schema"},{"@id":"http://api.knora.org/ontology/salsah-gui/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The salsah-gui ontology"},{"@id":"http://api.knora.org/ontology/standoff/v2","@type":"http://www.w3.org/2002/07/owl#Ontology","http://api.knora.org/ontology/knora-api/v2#attachedToProject":{"@id":"http://www.knora.org/ontology/knora-admin#SystemProject"},"http://api.knora.org/ontology/knora-api/v2#isBuiltIn":true,"http://www.w3.org/2000/01/rdf-schema#label":"The standoff ontology"}]}
\ No newline at end of file
diff --git a/test/data/api/v2/ontologies/all-ontology-metadata-response.json b/test/data/api/v2/ontologies/all-ontology-metadata-response.json
index 099f19a37..27f40f2dc 100644
--- a/test/data/api/v2/ontologies/all-ontology-metadata-response.json
+++ b/test/data/api/v2/ontologies/all-ontology-metadata-response.json
@@ -28,17 +28,6 @@
"@id" : "http://rdfh.ch/projects/0001"
},
"rdfs:label" : "The something ontology"
- }, {
- "@id" : "http://0.0.0.0:3333/ontology/00FF/foo/v2",
- "@type" : "owl:Ontology",
- "knora-api:attachedToProject" : {
- "@id" : "http://rdfh.ch/projects/00FF"
- },
- "knora-api:lastModificationDate" : {
- "@type" : "xsd:dateTimeStamp",
- "@value" : "2020-06-18T09:42:41.506895Z"
- },
- "rdfs:label" : "The foo ontology"
}, {
"@id" : "http://0.0.0.0:3333/ontology/00FF/images/v2",
"@type" : "owl:Ontology",
@@ -88,6 +77,13 @@
"@id" : "http://rdfh.ch/projects/0804"
},
"rdfs:label" : "The dokubib ontology"
+ }, {
+ "@id" : "http://0.0.0.0:3333/ontology/08AE/webern/v2",
+ "@type" : "owl:Ontology",
+ "knora-api:attachedToProject" : {
+ "@id" : "http://rdfh.ch/projects/08AE"
+ },
+ "rdfs:label" : "The Anton Webern project ontology"
}, {
"@id" : "http://api.knora.org/ontology/knora-admin/v2",
"@type" : "owl:Ontology",
From 29aead757ff3c4278dbbfc6bbd226845ed970a36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?=
Date: Fri, 19 Jun 2020 11:57:21 +0200
Subject: [PATCH 04/20] test(ontology): Update test framework and e2e test
---
test-framework/e2e/src/app.e2e-spec.ts | 15 ++++++++++++++
test-framework/src/app/app.component.html | 8 ++++++++
test-framework/src/app/app.component.ts | 24 ++++++++++++++++++++++-
test-framework/yalc.lock | 2 +-
4 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/test-framework/e2e/src/app.e2e-spec.ts b/test-framework/e2e/src/app.e2e-spec.ts
index 3ed323b75..1d159554b 100644
--- a/test-framework/e2e/src/app.e2e-spec.ts
+++ b/test-framework/e2e/src/app.e2e-spec.ts
@@ -93,6 +93,21 @@ describe('workspace-project App', () => {
});
+
+ it('request the anything project ontologies', () => {
+
+ page.navigateTo();
+
+ const button = page.getEle('div section#ontologyendpoint button.get');
+
+ button.click();
+
+ const size = page.getEle('div section#ontologyendpoint span.ontology');
+
+ expect(size.getText()).toEqual('3 ontologies');
+
+ });
+
it('request a resource', () => {
page.navigateTo();
diff --git a/test-framework/src/app/app.component.html b/test-framework/src/app/app.component.html
index 2afa5c9f9..2a91b3527 100644
--- a/test-framework/src/app/app.component.html
+++ b/test-framework/src/app/app.component.html
@@ -28,6 +28,14 @@
Ontology Cache
+
+
OntologyEndpoint
+
+
+ Anything project has {{projectOntologies?.ontologies.length | i18nPlural: itemPluralMapping['ontology']}}
+