-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Descriptor Types? #5
Comments
there are lots of challenges in translating other vocabulary outputs to ALPS. it's the last on your list that gave @leonardr and i a challenge. i usually have two descriptors w/o any nesting. they share the same as an aside here... there is rarely a single correct way to express an intent. and ALPS is designed to allow ppl to come up w/ ways to express vocabularies in ways that work for them (and not necessarily that work for everyone). i am committed to keeping ALPS loose enough to allow people to create solutions that they need and expect that, with this kind of approach, the more useful solutions will become more often-used -- all based on users' decisions, not mine (or anyone else managing the spec). |
At work, my team and I ran into this. We tried offering general purpose JSON Schemas that modeled the schema.org vocabulary and eventually came to the conclusion that those a very different uses of the term "schema". Some people only needed subsets of certain schemas, and others needed different constraints on certain properties, so it just ended up creating a lot of bloat. I definitely see the benefit of keeping ALPS loose, I just wasn't exactly sure where the official registry should land on this. From the spec:
I suppose, worst case scenario, you could simply override the <descriptor id="model" type="safe" href="http://alps.io/schema.org/Product#model" /> |
yeah - this override situation is a great example of the perils of using inheritance in your designs. the fact that you can't see the results of the inheritance very easily is just adding more bad mojo to the concept. add to that using inheritance in a world where you don't control all the participants (e.g. the WWW) and all sorts of unintended breakage is bound to occur. my approach so far has been to focus on solving the problem locally and making loose references (via my that has done me just fine so far. |
I'm wondering if the
descriptor
s for schema.org schemas have the "correct"type
. Seems that if the data type is a URL, then it'ssafe
. Otherwise, it'ssemantic
. That works for some media types (e.g., JSON or XML), but feels less desirable for more hypermedia-focused formats (e.g., HAL or Siren).Should schema properties instead be defined as follows?
semantic
descriptor
.safe
descriptor
.safe
descriptor
with anrt
of that schema (URL points to registry).semantic
andsafe
descriptor
, there should be twodescriptor
s with the samename
but differentid
s. The latter can inherit the former viahref
.The text was updated successfully, but these errors were encountered: