-
Notifications
You must be signed in to change notification settings - Fork 23
YAML-LD? #389
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
Comments
I concur that this example from CWL is really strange, in many respects:
It looks like some part of the context was forgotten. For example, adding
turns admssw:SoftwareProject and adms:AssetDistribution into the types of the corresponding nodes, which seems to make sense. But the empty keys for types are a mystery to me. |
Hello all. That snippet is not part of the CWL recommended practices (the CWL standards recommend using schema.org annotations). Looks like @portah authored it so I'll leave that to him to explain The CWL standards themselves are defined in the |
I have been using something that I am calling YAML-LD, for a while.
In this example, I am defining $context:
skill: https://schema.jsonldresume.org/#
schema: https://schema.org/
rdfs: http://www.w3.org/2000/01/rdf-schema#
←:
$id: rdfs:domain
$type: $id
→:
$id: rdfs:range
$type: $id
links:
$id: skills:links
$container: $id
links:
skill:assesses:
←: skill:Award
→: schema:Text
skill:award:
←: skill:Resume
→: skill:Award
... Purpose: I use YAML-LD to write data files, which then are used to build a semantic graph, which then is used to build pages of a static website. Example: source files directory → resulting page. The code is essentially a plugin for MkDocs site generator, is open source, and available at github. |
@msporny @gkellogg @pchampin @mr-c @anatoly-scherbakov @ericprud Are there enough people who'd like to work out a standardization of YAML-LD? YAML is nicer than JSON, yet more powerful. I think that standardization of YAML-LD can be very useful. Also cc @andimou , @pheyvaer re YARRML. Manu and Gregg and P-A what's the best way to start this? |
There is certainly space to do it within the JSON-LD CG, and there has been some interest over time, but not enough to get anyone to work on it seriously, if you'd like to do so, then the best place for issues and to make progress would be in the json-ld.org repository. Ultimately, these would need to be in their own repository (perhaps https://github.com/json-ld/yaml-ld) which can use the various infrastructure for rendering specifications and hosting test suites. Note that the premise most of us have been working against is the basic YAML serialization of JSON-LD, and as you've likely noted, the -syntax and -api repos have all of the examples in the spec automatically transformed into hypothetical yaml-ld. But, there are a number of YAML-specific details that likely need to be attended to. Note that the JSON-LD specs generally call for parsing into an intermediate representation. I don't think we contemplated replacing If you like, I can move this issue to json-ld.org, and we can poll to see if there's enough interest to work on this in the CG. If so, I can facilitate creating the repository, and that repo would be a good place for discussions, along with [email protected]. Edit: replaced the erroneous https://github.com/json-ld/csv-ld with https://github.com/json-ld/yaml-ld. |
I would propose the following grounds for the In general, I'd name manually writable semantic data the main purpose for YAML-LD. I will be happy to participate in the standardization process if one is to be initiated, and to assist however I can. |
@gkellogg thanks for your support! Yes, please move the issue and post a poll.
Is that a lapsus lingua and you meant More importantly, is there a |
@VladimirAlexiev I made a couple updates to the original page to fix syntax errors: https://github.com/common-workflow-language/common-workflow-language/wiki/Related-ontologies Here's some more information about Schema Salad: https://www.commonwl.org/v1.2/SchemaSalad.html
Schema Salad is more complex than a 1:1 mapping of JSON-LD elements to YAML, but might be useful to people. |
Yes, indeed. CSV-LD was an early proposal for what became CSV on the Web. We wrote up something about it here a long time ago. I do think that CSVW needs to be revisited, and there is a nascent CG for it, but it hasn't amassed enough critical mass. |
I wasn't able to transfer this issue, but created json-ld/yaml-ld#3 for further discussion. Please redirect future discussion there, and provide support for creating new CG work. |
A repository has been created to push forward work in the CG: https://github.com/json-ld/yaml-ld. |
I thought I knew JSON-LD.
But then I saw this DOAP example at https://github.com/common-workflow-language/common-workflow-language/wiki/Related-ontologies. Compare to an actual Turtle of a Debian package: https://packages.qa.debian.org/b/bowtie.ttl
And I'm like WHAT MAGIC is this?
rdf:type
(@type
)@stain @mr-c can you shed some light?
Googled
YAML-LD
and only saw a brief discussion again by the CWL people: https://lists.w3.org/Archives/Public/public-linked-json/2015Jan/0035.htmlThe JSON-LD spec says
Despite no official support in the spec, the gazillion JSON-LD conformance tests are written in YAML: https://github.com/w3c/json-ld-syntax/tree/main/yaml .
I know that YAML can be trivially converted to JSON and thereon to JSONLD. But as per the above discussion, it would be nice to get rid of the need to write those pesky
@
.@gkellogg is there some convention for that, or the CWL example is not widely adopted?
The text was updated successfully, but these errors were encountered: