Skip to content

Commit

Permalink
feat: knossos:beforeSend
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 23, 2022
1 parent ebf056b commit 8ab023e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tender-shoes-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/vocabularies": patch
---

Added `knossos:beforeSend`, updated some `schema:rangeInclude`
7 changes: 7 additions & 0 deletions ontologies/knossos.nq
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@
<https://hypermedia.app/knossos#authorizationRule> <http://www.w3.org/2000/01/rdf-schema#domain> <https://hypermedia.app/knossos#Configuration> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#authorizationRule> <http://www.w3.org/2000/01/rdf-schema#label> "authorizationRule" <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSave> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScript> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSave> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScriptModule> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSave> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSave> <http://www.w3.org/2000/01/rdf-schema#comment> "Links to code which will be executed when an instance of given class is saved" <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSave> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSend> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScript> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSend> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScriptModule> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSend> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSend> <http://www.w3.org/2000/01/rdf-schema#comment> "Links to code which will be executed just before an RDF response is sent" <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#beforeSend> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#createWithPUT> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#createWithPUT> <http://www.w3.org/2000/01/rdf-schema#comment> "Set to true to allow new resources of given class being created using PUT requests." <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#createWithPUT> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Class> <https://hypermedia.app/knossos#> .
Expand Down Expand Up @@ -54,6 +60,7 @@
<https://hypermedia.app/knossos#supportedByClass> <http://www.w3.org/2002/07/owl#sameAs> <https://hypermedia.app/knossos#supportedBy> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#supportedByProperty> <http://www.w3.org/2002/07/owl#sameAs> <https://hypermedia.app/knossos#supportedBy> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#transformVariable> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScript> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#transformVariable> <http://schema.org/rangeIncludes> <https://code.described.at/EcmaScriptModule> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#transformVariable> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#transformVariable> <http://www.w3.org/2000/01/rdf-schema#comment> "Annotates a template mapping variable mapping which will be passed to a transformation function, for example to slugify a string value" <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#transformVariable> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/ns/hydra/core#IriTemplateMapping> <https://hypermedia.app/knossos#> .
11 changes: 9 additions & 2 deletions src/vocabulary/knossos.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ prefix knossos: <https://hypermedia.app/knossos#>
knossos:beforeSave
a rdf:Property ;
rdfs:range rdfs:Class ;
schema:rangeIncludes code:EcmaScript ;
schema:rangeIncludes code:EcmaScript, code:EcmaScriptModule ;
rdfs:comment "Links to code which will be executed when an instance of given class is saved" ;
.

knossos:beforeSend
a rdf:Property ;
rdfs:range rdfs:Class ;
schema:rangeIncludes code:EcmaScript, code:EcmaScriptModule ;
rdfs:comment "Links to code which will be executed just before an RDF response is sent" ;
.

knossos:createWithPUT
a rdf:Property ;
rdfs:domain rdfs:Class ;
Expand Down Expand Up @@ -61,7 +68,7 @@ knossos:supportedBy
knossos:transformVariable
a rdf:Property ;
rdfs:domain hydra:IriTemplateMapping ;
schema:rangeIncludes code:EcmaScript ;
schema:rangeIncludes code:EcmaScript, code:EcmaScriptModule ;
rdfs:comment "Annotates a template mapping variable mapping which will be passed to a transformation function, for example to slugify a string value"
.

Expand Down

0 comments on commit 8ab023e

Please sign in to comment.