Skip to content

Commit

Permalink
feat: sparql queries for channels
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed May 2, 2024
1 parent 6b176c0 commit 986a83b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/queries/bridges.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PREFIX jvm: <https://w3id.org/conn/jvm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?channel ?subclass ?writer ?reader
{
?channel a ?subclass.
?subclass rdfs:subClassOf jvm:Channel.
?channel jvm:reader ?reader.
?channel jvm:writer ?writer.
}
9 changes: 9 additions & 0 deletions src/main/resources/queries/reader.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PREFIX jvm: <https://w3id.org/conn/jvm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?reader ?subclass
{
?reader a ?subclass.
?subclass rdfs:subClassOf jvm:ChannelReader.
}
9 changes: 9 additions & 0 deletions src/main/resources/queries/writers.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PREFIX jvm: <https://w3id.org/conn/jvm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?writer ?subclass
{
?writer a ?subclass.
?subclass rdfs:subClassOf jvm:ChannelWriter.
}

0 comments on commit 986a83b

Please sign in to comment.