Skip to content

Commit

Permalink
feat: new vocabs
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 12, 2021
1 parent 1ab5588 commit 19d4ac5
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-gorillas-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/vocabularies": patch
---

New prefixes: `hydra-box` and `code`
7 changes: 7 additions & 0 deletions build/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export interface Override extends FileSpec {
}

export const overrides: Record<string, Override> = {
code: {
file: 'https://raw.githubusercontent.com/zazuko/code.described.at/master/vocab.nt',
mediaType: 'text/turtle'
},
hydraBox: {
file: 'file:src/vocabulary/hydraBox.ttl'
},
'hyper-auth': {
file: 'file:src/vocabulary/auth.ttl'
},
Expand Down
10 changes: 10 additions & 0 deletions ontologies/_index.nq
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<https://prefix.hypermedia.app/code:> <http://dbpedia.org/ontology/filename> "ontologies/code.nq" .
<https://prefix.hypermedia.app/code:> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/rdfa#PrefixMapping> .
<https://prefix.hypermedia.app/code:> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <https://raw.githubusercontent.com/zazuko/code.described.at/master/vocab.nt> .
<https://prefix.hypermedia.app/code:> <http://www.w3.org/ns/rdfa#prefix> "code" .
<https://prefix.hypermedia.app/code:> <http://www.w3.org/ns/rdfa#uri> <https://code.described.at/> .
<https://prefix.hypermedia.app/hydraBox:> <http://dbpedia.org/ontology/filename> "ontologies/hydraBox.nq" .
<https://prefix.hypermedia.app/hydraBox:> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/rdfa#PrefixMapping> .
<https://prefix.hypermedia.app/hydraBox:> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <file:src/vocabulary/hydraBox.ttl> .
<https://prefix.hypermedia.app/hydraBox:> <http://www.w3.org/ns/rdfa#prefix> "hydraBox" .
<https://prefix.hypermedia.app/hydraBox:> <http://www.w3.org/ns/rdfa#uri> <http://hydra-box.org/schema/> .
<https://prefix.hypermedia.app/hyper-auth:> <http://dbpedia.org/ontology/filename> "ontologies/hyper-auth.nq" .
<https://prefix.hypermedia.app/hyper-auth:> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/rdfa#PrefixMapping> .
<https://prefix.hypermedia.app/hyper-auth:> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <file:src/vocabulary/auth.ttl> .
Expand Down
36 changes: 36 additions & 0 deletions ontologies/code.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<https://code.described.at/EcmaScript> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> <https://code.described.at/> .
<https://code.described.at/EcmaScript> <http://www.w3.org/2000/01/rdf-schema#comment> "Code as defined by the ECMAScript specification" <https://code.described.at/> .
<https://code.described.at/EcmaScript> <http://www.w3.org/2000/01/rdf-schema#label> "ECMAScript Code" <https://code.described.at/> .
<https://code.described.at/EcmaScriptTemplateLiteral> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Datatype> <https://code.described.at/> .
<https://code.described.at/EcmaScriptTemplateLiteral> <http://www.w3.org/2000/01/rdf-schema#comment> "Template Literal as defined in the ES2015 ECMAScript specification" <https://code.described.at/> .
<https://code.described.at/EcmaScriptTemplateLiteral> <http://www.w3.org/2000/01/rdf-schema#label> "ECMAScript Template Literal" <https://code.described.at/> .
<https://code.described.at/SparqlEcmaScriptTemplateLiteral> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Datatype> <https://code.described.at/> .
<https://code.described.at/SparqlEcmaScriptTemplateLiteral> <http://www.w3.org/2000/01/rdf-schema#comment> "ES2015 ECMAScript Template Literal enriched SPARQL query" <https://code.described.at/> .
<https://code.described.at/SparqlEcmaScriptTemplateLiteral> <http://www.w3.org/2000/01/rdf-schema#label> "SPARQL ECMAScript Template Literal" <https://code.described.at/> .
<https://code.described.at/Variable> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> <https://code.described.at/> .
<https://code.described.at/Variable> <http://www.w3.org/2000/01/rdf-schema#comment> "Definition of a variable" <https://code.described.at/> .
<https://code.described.at/Variable> <http://www.w3.org/2000/01/rdf-schema#label> "Variable" <https://code.described.at/> .
<https://code.described.at/VariableName> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Datatype> <https://code.described.at/> .
<https://code.described.at/VariableName> <http://www.w3.org/2000/01/rdf-schema#comment> "Name of a variable" <https://code.described.at/> .
<https://code.described.at/VariableName> <http://www.w3.org/2000/01/rdf-schema#label> "Variable Name" <https://code.described.at/> .
<https://code.described.at/arguments> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/arguments> <http://www.w3.org/2000/01/rdf-schema#comment> "Arguments for a code call" <https://code.described.at/> .
<https://code.described.at/arguments> <http://www.w3.org/2000/01/rdf-schema#label> "Arguments" <https://code.described.at/> .
<https://code.described.at/implementedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/implementedBy> <http://www.w3.org/2000/01/rdf-schema#comment> "Description of the implementation" <https://code.described.at/> .
<https://code.described.at/implementedBy> <http://www.w3.org/2000/01/rdf-schema#label> "Implementation" <https://code.described.at/> .
<https://code.described.at/link> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/link> <http://www.w3.org/2000/01/rdf-schema#comment> "IRI of the executable code" <https://code.described.at/> .
<https://code.described.at/link> <http://www.w3.org/2000/01/rdf-schema#label> "Code" <https://code.described.at/> .
<https://code.described.at/name> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/name> <http://www.w3.org/2000/01/rdf-schema#comment> "Name of a variable" <https://code.described.at/> .
<https://code.described.at/name> <http://www.w3.org/2000/01/rdf-schema#label> "Name" <https://code.described.at/> .
<https://code.described.at/value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/value> <http://www.w3.org/2000/01/rdf-schema#comment> "Value of a variable" <https://code.described.at/> .
<https://code.described.at/value> <http://www.w3.org/2000/01/rdf-schema#label> "Value" <https://code.described.at/> .
<https://code.described.at/variable> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/variable> <http://www.w3.org/2000/01/rdf-schema#comment> "Definition of a variable" <https://code.described.at/> .
<https://code.described.at/variable> <http://www.w3.org/2000/01/rdf-schema#label> "Variable" <https://code.described.at/> .
<https://code.described.at/variables> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://code.described.at/> .
<https://code.described.at/variables> <http://www.w3.org/2000/01/rdf-schema#comment> "A set of variable definitions" <https://code.described.at/> .
<https://code.described.at/variables> <http://www.w3.org/2000/01/rdf-schema#label> "Variable definitions" <https://code.described.at/> .
4 changes: 4 additions & 0 deletions ontologies/hydraBox.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<http://hydra-box.org/schema/variables> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://hydra-box.org/schema/> .
<http://hydra-box.org/schema/variables> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/ns/hydra/core#Operation> <http://hydra-box.org/schema/> .
<http://hydra-box.org/schema/variables> <http://www.w3.org/2000/01/rdf-schema#label> "Route variable for hydra-box's IriTemplate express handler" <http://hydra-box.org/schema/> .
<http://hydra-box.org/schema/variables> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/ns/hydra/core#IriTemplate> <http://hydra-box.org/schema/> .
2 changes: 2 additions & 0 deletions src/prefixes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const prefixes = {
code: 'https://code.described.at/',
hydraBox: 'http://hydra-box.org/schema/',
'hyper-auth': 'https://hypermedia.app/auth#',
'hyper-events': 'https://hypermedia.app/events#',
'hyper-query': 'https://hypermedia.app/query#',
Expand Down
11 changes: 11 additions & 0 deletions src/vocabulary/hydraBox.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PREFIX hydra: <http://www.w3.org/ns/hydra/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix hydra-box: <http://hydra-box.org/schema/>

hydra-box:variables
a rdf:Property ;
rdfs:domain hydra:Operation ;
rdfs:range hydra:IriTemplate ;
rdfs:label "Route variable for hydra-box's IriTemplate express handler" ;
.

0 comments on commit 19d4ac5

Please sign in to comment.