Comments (2)
Thank you, Erik. Disclaimer: the text of the spec may indeed be misleading, always a possibility, however the intention of the spec is as follows:
- Object attributes and link rels (an addition to the genuinely URI fields like in h:link and h:ref, which MUST be URIs) MAY be URIs.
- URIs in object attributes and link rels MAY be dereferenceable, but doesn't have to be.
- Any URI anywhere in the document MAY be CURIEd
- If a URI in attribute names and link rels is dereferenceable it SHOULD point to a resource that provides information about the semantics and proper usage of the corresponding Hyper extension and/or link relation. This, howevers, is not strictly required because the URI may be just establishing the namespace and corresponding semantics and rule can be explained elsewhere, out of band e.g. in a encyclopedia :)
- If link is dereferenceable authors of the extensions MAY use content-negotiation to provide information in a variety of formats (e.g. human-friendly HTML and machine-friendly ALPS)
- Hyper parsers MUST assume default extension
h: -> http://hyperjson.io/props
and all items in that vocabulary are linked to by dereferenceable URIs, and those URIs do explain usage rules.
I believe this intent is compliant with your suggestion that there shouldn't be any assumption of URI being dereferenceable.... that said - having a preference of it being dereferenceable and making default extension/CURIE both dereferenceable and self-documenting is not a violation and I think is a positive thing.
from hyper.
from hyper.
Related Issues (9)
- CURIEs HOT 3
- hreflang considered imprecise HOT 1
- Remove profiles? HOT 1
- plurals ("curies" vs "h:link") HOT 2
- Types, rels, and other types HOT 2
- "any JSON is hyper" claim HOT 14
- how to declare and use CURIE prefixes HOT 2
- extension semantics and processing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper.