-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
147 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"_meta": { | ||
"$schema": "urn:resolver:schema:urnr", | ||
"meta": { | ||
"spec": [ | ||
"https://gitee.com/api/v5/swagger" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"_meta": { | ||
"$schema": "urn:resolver:schema:urnr", | ||
"meta": { | ||
"spec": [ | ||
"https://docs.github.com/rest" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "urn:resolver:schema:urnr", | ||
"meta": { | ||
"_comment": "See RFC 7467. Both <http://nso.nato.int/nso/nsdd/listpromulg.html> and <https://nhqc3s.hq.nato.int/Default.aspx> are public, so at least some sort of which standards exist (but contents are not public).\n", | ||
"spec": [ | ||
"https://www.rfc-editor.org/rfc/rfc7467" | ||
], | ||
"examples": [ | ||
{ | ||
"in.urn": "urn:nato:", | ||
"out.[0].iri": "https://www.nato.int/" | ||
} | ||
] | ||
}, | ||
"rules": [ | ||
{ | ||
"in": { | ||
"urn": "urn:nato:(.*)" | ||
}, | ||
"out": [ | ||
{ | ||
"iri": "https://nato.int/{{ in[1] }}" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
# URN Resolver / Meta | ||
|
||
## urnresolver.context.jsonld | ||
## Files | ||
### urnresolver.context.jsonld | ||
> - [urnresolver.context.jsonld](urnresolver.context.jsonld) | ||
Prefixes uses https://github.com/w3c/json-ld-rc/ (https://w3c.github.io/json-ld-rc/context.jsonld) as reference | ||
|
||
## urnresolver.schema.json | ||
### urnresolver.schema.json | ||
> - [urnresolver.schema.json](urnresolver.schema.json) | ||
## Relation to other APIs | ||
|
||
### OpenAPI | ||
> - https://www.openapis.org/ | ||
While this varies by individual URN Resolver deployment, we do have a handcrafted OpenAPI. | ||
|
||
### JSON-API | ||
> - https://jsonapi.org/ | ||
At least the top level of the API response is fully compatible with JSON API 1.0 & JSON API 1.1. | ||
|
||
<!-- | ||
https://urn.etica.ai/meta/test-api-online.json | ||
- https://jschon.dev/ | ||
- https://json-schema.hyperjump.io/ (accepts YAML) | ||
- https://onlineyamltools.com/convert-yaml-to-json | ||
- https://urn.etica.ai/meta/test-api-online.json | ||
- https://json-everything.net/json-schema/ | ||
--> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "urn:resolver:schema:urnr", | ||
"title": "URN Resolver JSON Schema", | ||
"description": "Early draft. See https://github.com/EticaAI/urn-resolver/issues/2", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"$id": { | ||
"type": "string" | ||
}, | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"rules": { | ||
"type": "array" | ||
}, | ||
"meta": { | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"rules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
_meta: | ||
$schema: urn:resolver:schema:urnr | ||
meta: | ||
spec: | ||
- https://gitee.com/api/v5/swagger | ||
examples: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
_meta: | ||
$schema: urn:resolver:schema:urnr | ||
meta: | ||
spec: | ||
- https://docs.github.com/rest | ||
examples: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$schema: urn:resolver:schema:urnr | ||
meta: | ||
_comment: > | ||
See RFC 7467. Both <http://nso.nato.int/nso/nsdd/listpromulg.html> and | ||
<https://nhqc3s.hq.nato.int/Default.aspx> are public, so at least some | ||
sort of which standards exist (but contents are not public). | ||
spec: | ||
- https://www.rfc-editor.org/rfc/rfc7467 | ||
examples: | ||
- in.urn: 'urn:nato:' | ||
out.[0].iri: https://www.nato.int/ | ||
rules: | ||
- in: | ||
urn: "urn:nato:(.*)" | ||
out: | ||
- iri: "https://nato.int/{{ in[1] }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters