From 5d664e91693fa4a4632eb31847ed7db1ae46d51c Mon Sep 17 00:00:00 2001 From: Julian Rojas Date: Sat, 3 Aug 2024 23:52:41 +0200 Subject: [PATCH] Add rdfc:ReaderChannel and rdfc:WriterChannel shapes --- rdf-connect-js.ttl | 4 ++-- rdf-connect.ttl | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/rdf-connect-js.ttl b/rdf-connect-js.ttl index f583a85..70ab988 100644 --- a/rdf-connect-js.ttl +++ b/rdf-connect-js.ttl @@ -93,14 +93,14 @@ rdfc-js:JSProcessorShape a sh:NodeShape ; sh:path rdfc-js:function ; sh:name "func" ; sh:maxCount 1 ; - sh:minCount 1 ; + sh:minCount 1 ], [ sh:class fno:Mapping ; sh:path rdfc-js:mapping ; sh:name "mapping" ; sh:maxCount 1 ; sh:minCount 1 - ] , [ + ], [ sh:path rdfc:executedBy ; sh:name "executed by" ; sh:maxCount 1 ; diff --git a/rdf-connect.ttl b/rdf-connect.ttl index 1dbf364..9e9e64e 100644 --- a/rdf-connect.ttl +++ b/rdf-connect.ttl @@ -6,6 +6,7 @@ @prefix cc: . @prefix dct: . @prefix foaf: . +@prefix rdfl: . @prefix rdfc: . @prefix rdfc-js: . @prefix rdfc-jvm: . @@ -176,6 +177,49 @@ rdfc:KafkaWriterChannel a rdfs:Class ; # Channel Shapes ################################################################# +rdfc:ReaderChannelShape a sh:NodeShape ; + sh:targetClass rdfc:ReaderChannel ; + sh:property [ + sh:path ( ) ; + sh:name "id" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:datatype xsd:iri + ], [ + sh:path rdf:type ; + sh:name "ty" ; + sh:maxCount 1 ; + sh:datatype xsd:iri + ], [ + sh:path ( ) ; + sh:name "config" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:class rdfl:TypedExtract + ] . + +rdfc:WriterChannelShape a sh:NodeShape ; + sh:targetClass rdfc:WriterChannel ; + sh:property [ + sh:path ( ) ; + sh:name "id" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:datatype xsd:iri + ], [ + sh:path rdf:type ; + sh:name "ty" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:datatype xsd:iri + ], [ + sh:path ( ) ; + sh:name "config" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:class rdfl:TypedExtract + ] . + rdfc:FileChannelShape a sh:NodeShape ; sh:targetClass rdfc:FileChannel ; sh:property [