Skip to content

Commit

Permalink
feat: knossos:supportedByClass
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 11, 2021
1 parent ca4c2dd commit f484ec8
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-islands-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/vocabularies": patch
---

Added `knossos:supportedByClass`
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run fetch
5 changes: 5 additions & 0 deletions ontologies/knossos.nq
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
<https://hypermedia.app/knossos#memberTemplate> <http://www.w3.org/2000/01/rdf-schema#comment> "Defines an identifier template for newly created instances of given class. Used by knossos' default collection POST handler." <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#memberTemplate> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Class> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#memberTemplate> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/ns/hydra/core#IriTemplate> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#supportedByClass> <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#supportedByClass> <http://www.w3.org/2000/01/rdf-schema#comment> "Allows creating supported operations with reverse relation with a hydra:Class" <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#supportedByClass> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/ns/hydra/core#Operation> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#supportedByClass> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/ns/hydra/core#Class> <https://hypermedia.app/knossos#> .
<https://hypermedia.app/knossos#supportedByClass> <http://www.w3.org/2002/07/owl#inverseOf> <http://www.w3.org/ns/hydra/core#supportedOperation> <https://hypermedia.app/knossos#> .
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"*.d.ts.map"
],
"scripts": {
"postinstall": "husky install",
"prefetch": "mkdirp ontologies",
"fetch": "ts-node build/fetch.ts --indexBase https://prefix.hypermedia.app/",
"lint": "eslint . --ext .js,.ts --ignore-path .gitignore --quiet",
Expand Down Expand Up @@ -99,6 +100,7 @@
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.0.0",
"file-fetch": "^1.7",
"husky": "^6.0.0",
"nodeify-fetch": "^2.2.1",
"npm-run-all": "^4.1.5",
"proto-fetch": "^1.0.0",
Expand Down
9 changes: 9 additions & 0 deletions src/vocabulary/knossos.ttl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
PREFIX hydra: <http://www.w3.org/ns/hydra/core#>
prefix code: <https://code.described.at/>
Expand Down Expand Up @@ -39,3 +40,11 @@ knossos:SystemAccount
a rdfs:Class ;
rdfs:subClassOf foaf:Agent ;
.

knossos:supportedByClass
a rdf:Property ;
owl:inverseOf hydra:supportedOperation ;
rdfs:domain hydra:Operation ;
rdfs:range hydra:Class ;
rdfs:comment "Allows creating supported operations with reverse relation with a hydra:Class"
.
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,11 @@ human-id@^1.0.2:
resolved "https://registry.yarnpkg.com/human-id/-/human-id-1.0.2.tgz#e654d4b2b0d8b07e45da9f6020d8af17ec0a5df3"
integrity sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==

husky@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==

iconv-lite@^0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
Expand Down

0 comments on commit f484ec8

Please sign in to comment.