From 986a83b32b41bcea75cf5b2e545368fa38b8174d Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Thu, 2 May 2024 15:08:05 +0200 Subject: [PATCH] feat: sparql queries for channels --- src/main/resources/queries/bridges.sparql | 11 +++++++++++ src/main/resources/queries/reader.sparql | 9 +++++++++ src/main/resources/queries/writers.sparql | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100644 src/main/resources/queries/bridges.sparql create mode 100644 src/main/resources/queries/reader.sparql create mode 100644 src/main/resources/queries/writers.sparql diff --git a/src/main/resources/queries/bridges.sparql b/src/main/resources/queries/bridges.sparql new file mode 100644 index 0000000..4b0332d --- /dev/null +++ b/src/main/resources/queries/bridges.sparql @@ -0,0 +1,11 @@ +PREFIX jvm: +PREFIX rdf: +PREFIX rdfs: + +SELECT ?channel ?subclass ?writer ?reader +{ + ?channel a ?subclass. + ?subclass rdfs:subClassOf jvm:Channel. + ?channel jvm:reader ?reader. + ?channel jvm:writer ?writer. +} diff --git a/src/main/resources/queries/reader.sparql b/src/main/resources/queries/reader.sparql new file mode 100644 index 0000000..de4f313 --- /dev/null +++ b/src/main/resources/queries/reader.sparql @@ -0,0 +1,9 @@ +PREFIX jvm: +PREFIX rdf: +PREFIX rdfs: + +SELECT ?reader ?subclass +{ + ?reader a ?subclass. + ?subclass rdfs:subClassOf jvm:ChannelReader. +} diff --git a/src/main/resources/queries/writers.sparql b/src/main/resources/queries/writers.sparql new file mode 100644 index 0000000..ccb956d --- /dev/null +++ b/src/main/resources/queries/writers.sparql @@ -0,0 +1,9 @@ +PREFIX jvm: +PREFIX rdf: +PREFIX rdfs: + +SELECT ?writer ?subclass +{ + ?writer a ?subclass. + ?subclass rdfs:subClassOf jvm:ChannelWriter. +}