Replies: 6 comments 4 replies
-
|
Hey @iherman, just some thoughts off of the top of my head on whether or not we'd use these new features:
Useful, but I don't think we use
What's the extra information added? I expect this to be useful for us.
This sounds very useful and would replace some home grown tooling we have to do this same thing.
This is probably useful to us, but I am concerned that the ⊓ and ⊔ characters will be difficult to read for some of our communities, such as healthcare, banking, etc. We plan to use the direct output of yml2vocab for these communities, who do have vocabulary maintainers/practioners, but we want the vocabulary documents to be largely readable by people without a lot of background knowledge on ontology design terminology. It would be nice if there was a "broadly human readable" vs. "readable by a trained ontologist" outputs -- I know that might be asking for too much, though.
Very useful, we will use this feature.
That is great and helpful, as we have moved away from using prefixes if at all possible in our JSON-LD Contexts.
Very useful as well. :)
I don't know if we have a use case for this as we try to keep datatype definitions to a minimum, though I do appreciate the theoretical usefulness and completeness of having this feature. |
Beta Was this translation helpful? Give feedback.
-
|
@llemeurfr you might be interested in this discussion, too |
Beta Was this translation helpful? Give feedback.
-
Yes, exactly, this is why it's important. My hope is that, in time, we'll be able to auto-generate both JSON-LD Contexts and JSON Schema from the yml2vocab file. |
Beta Was this translation helpful? Give feedback.
-
I have added this feature to property ranges as well, also inspired by a (separate) comment of @pchampin on how to use that in a context. It is now possible to say property:
- id: highlight
domain: Body
one_of: [solid, underline, strikethrough, outline]
defined_by: https://w3c.github.io/epub-specs/epub34/annotations/#1-4-bodyit will create, in the ontology, an anonymous class that consists of these individuals, and use it as a range. Ie, it restricts the values of the property. (solid, underline, etc, are to be defined as individuals in the vocabulary) And here comes the trick of @pchampin : the tool will put into the context file something like: "highlight": {
"@id": "https://www.w3.org/ns/epub/annotation/vocabulary#highlight",
"@type": "@vocab",
"@context": {
"solid": "https://www.w3.org/ns/epub/annotation/vocabulary#solid",
"underline": "https://www.w3.org/ns/epub/annotation/vocabulary#underline",
"strikethrough": "https://www.w3.org/ns/epub/annotation/vocabulary#strikethrough",
"outline": "https://www.w3.org/ns/epub/annotation/vocabulary#outline",
"@vocab": "ea:INVALID_VALUE:"
}
},Neat. |
Beta Was this translation helpful? Give feedback.
-
|
B.t.w., you can see things in actions, ie, the generated files and the core vocab using some of the new features in: https://github.com/iherman/ea-vocabulary |
Beta Was this translation helpful? Give feedback.
-
|
all these additions look really nice. Makes me really want to play with yml2vocab more :-) Regarding
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @msporny @pchampin @BigBlueHat
this is just a discussion/information about some features I am playing with on yml2vocab. In the latest (not-yet-merged and published) version:
importblock to thejson_ldtop level block, to allow adding a@importstatement with one or more URI-s at the top of the generated context file.known_asproperty) an extra information is added to the generated HTML file.upper_unionandrange_unionboolean flags for classes and, respectively, properties. If set totrue, the superclass, respectively range settings with several class references mean the disjunction of the classes, as opposed to the (default) conjunction. This formally affects the turtle and json-ld versions of the vocabulary (which use theowl:unionOfconstruct); the HTML description uses now the ⊓ and ⊔ characters to denote these. This allows to say: "instances of this class are of type either this, this, or this".one_ofkeys for classes and datatypes. The values list the possible individuals for a class, and the possible string values for a datatype derived fromxsd:string. Furthermore, thepatternkey for a datatype can hold a regular expression restricting the acceptable string value.I am still wondering about extending the 'upper_union' to datatypes, allowing new datatype inhering from A or B. It is straightforward now to add it, but I do not whether it is of practical use.
These changes came to the fore because I began to use it on a different project, namely (Benjamin, listen!) an upcoming EPUB Annotation specification. That spec uses a profile of the W3C open annotation spec, meaning using the model but restricting the vocabulary (using only a few annotation types, or selector types, that sort of things).
Any feedback would be welcome!
(This is only discussion, not yet a set of issues... It may come to that.)
Beta Was this translation helpful? Give feedback.
All reactions