Skip to content

Commit

Permalink
add Solid Notifications Protocol vocabulary and update stat
Browse files Browse the repository at this point in the history
  • Loading branch information
aamedina committed Apr 12, 2024
1 parent 71d2eaf commit 07e06f0
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 21 deletions.
151 changes: 151 additions & 0 deletions resources/net/wikipunk/ext/notifications.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
@prefix notify: <http://www.w3.org/ns/solid/notifications#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix vann: <http://purl.org/vocab/vann/> .

<http://www.w3.org/ns/solid/notifications#>
a owl:Ontology ;
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
rdfs:label "Solid Notifications"@en ;
rdfs:comment "The vocabulary used by the Solid Notifications Protocol specification."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
rdfs:seeAlso <https://solidproject.org/TR/notifications-protocol> ;
dcterms:issued "2022-12-31"^^xsd:date ;
vann:preferredNamespacePrefix "notify" ;
vann:preferredNamespaceUri "http://www.w3.org/ns/solid/notifications#"^^xsd:anyURI .

# ---------
# Classes
# ---------
notify:EventSourceChannel2023
a rdfs:Class ;
rdfs:label "EventSourceChannel2023" ;
rdfs:comment "A notification channel type that uses the EventSource Web API."@en ;
rdfs:isDefinedBy <https://solid.github.io/notifications/eventsource-channel-2023> ;
vs:term_status "testing" .

notify:LDNChannel2023
a rdfs:Class ;
rdfs:label "LDNChannel2023" ;
rdfs:comment "A notification channel type that uses the Linked Data Notifications protocol."@en ;
rdfs:isDefinedBy <https://solid.github.io/notifications/ldn-channel-2023> ;
vs:term_status "testing" .

notify:StreamingHTTPChannel2023
a rdfs:Class ;
rdfs:label "StreamingHTTPChannel2023" ;
rdfs:comment "A notification channel type that uses the Fetch API."@en ;
rdfs:isDefinedBy <https://solid.github.io/notifications/streaming-http-channel-2023> ;
vs:term_status "testing" .

notify:WebhookChannel2023
a rdfs:Class ;
rdfs:label "WebhookChannel2023" ;
rdfs:comment "A notification channel type that uses Webhooks."@en ;
rdfs:isDefinedBy <https://solid.github.io/notifications/webhook-channel-2023> ;
vs:term_status "testing" .

notify:WebSocketChannel2023
a rdfs:Class ;
rdfs:label "WebSocketChannel2023" ;
rdfs:comment "A notification channel type that uses the WebSocket API."@en ;
rdfs:isDefinedBy <https://solid.github.io/notifications/websocket-channel-2023> ;
vs:term_status "testing" .

# ------------
# Properties
# ------------
notify:accept
a rdf:Property ;
rdfs:label "accept"@en ;
rdfs:comment "The media types that are acceptable by the recipient of a notification with value corresponding to the HTTP Accept header value [RFC7231]."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:channel
a rdf:Property ;
rdfs:label "notification channel"@en ;
rdfs:comment "A property used to indicate an available notification channel."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:channelType
a rdf:Property ;
rdfs:label "notification channel type"@en ;
rdfs:comment "A property used to indicate the notification channel type."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:endAt
a rdf:Property ;
rdfs:label "end at"@en ;
rdfs:comment "The proposed or actual ending date and time of a notification channel with value represented in the xsd:dateTime datatype."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:feature
a rdf:Property ;
rdfs:label "feature"@en ;
rdfs:comment "A property used to describe the features supported by a particular notification channel."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:rate
a rdf:Property ;
rdfs:label "rate"@en ;
rdfs:comment "The minimum amount of time to elapse between notifications sent to receiver with value represented in the xsd:duration datatype."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:receiveFrom
a rdf:Property ;
rdfs:label "receive from"@en ;
rdfs:comment "The property used to identify the resource that can be used to establish a connection to receive notifications."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:sender
a rdf:Property ;
rdfs:label "sender"@en ;
rdfs:comment "The property used to identify the party that sends notifications."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:sendTo
a rdf:Property ;
rdfs:label "send to"@en ;
rdfs:comment "The property used to identify the resource that can accept notifications."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:startAt
a rdf:Property ;
rdfs:label "start at"@en ;
rdfs:comment "The proposed or actual starting date and time of a notification channel with value represented in the xsd:dateTime datatype."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:state
a rdf:Property ;
rdfs:label "state"@en ;
rdfs:comment "The last known state of a resource (topic) with value represented in the xsd:string datatype."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:subscription
a rdf:Property ;
rdfs:label "subscription"@en ;
rdfs:comment "A property used to indicate an available subscription service."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .

notify:topic
a rdf:Property ;
rdfs:label "topic"@en ;
rdfs:comment "The IRI of a resource about which a client would like to receive notifications."@en ;
rdfs:isDefinedBy <http://www.w3.org/ns/solid/notifications#> ;
vs:term_status "testing" .
60 changes: 60 additions & 0 deletions resources/net/wikipunk/ext/stat.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@prefix stat: <http://www.w3.org/ns/posix/stat#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

stat: a owl:Ontology ;
rdfs:comment "POSIX File Status" .

stat:dev a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "ID of device containing file" ;
rdfs:range xsd:int .

stat:ino a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "inode number" ;
rdfs:range xsd:long .

stat:mode a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "protection" ;
rdfs:range xsd:short .

stat:nlink a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "number of hard links" ;
rdfs:range xsd:int .

stat:uid a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "user ID of owner" ;
rdfs:range xsd:int .

stat:gid a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "group ID of owner" ;
rdfs:range xsd:int .

stat:rdev a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "device ID (if special file)" ;
rdfs:range xsd:int .

stat:size a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "total size, in bytes" ;
rdfs:range xsd:long .

stat:blksize a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "blocksize for file system I/O" ;
rdfs:range xsd:int .

stat:blocks a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "number of 512B blocks allocated" ;
rdfs:range xsd:long .

stat:atime a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "time of last access" ;
rdfs:range xsd:dateTime .

stat:mtime a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "time of last modification" ;
rdfs:range xsd:dateTime .

stat:ctime a rdf:Property, owl:FunctionalProperty ;
rdfs:comment "time of last status change" ;
rdfs:range xsd:dateTime .
8 changes: 7 additions & 1 deletion src/cljc/net/wikipunk/ext.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,8 @@
{:rdf/type :rdfa/PrefixMapping
:rdfa/uri "http://www.w3.org/ns/posix/stat#"
:rdfa/prefix "stat"
:rdfs/comment "POSIX File Status"})
:rdfs/comment "POSIX File Status"
:dcat/downloadURL "net/wikipunk/ext/stat.ttl"})

(def pim
{:rdf/type :rdfa/PrefixMapping
Expand Down Expand Up @@ -898,3 +899,8 @@
"xsd" "http://www.w3.org/2001/XMLSchema#",}})


(def notify
{:rdf/type :rdfa/PrefixMapping
:rdfa/uri "http://www.w3.org/ns/solid/notifications#"
:rdfa/prefix "notify"
:dcat/downloadURL "net/wikipunk/ext/notifications.ttl"})
Loading

0 comments on commit 07e06f0

Please sign in to comment.