-
Notifications
You must be signed in to change notification settings - Fork 11
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
Provide examples of usage in JSON-LD #33
Comments
That makes sense, do you suggest doing this in the README.md? and also should we have a default context at biohackathon.org? |
The fig9. in the paper is in JSON-LD |
On 22 Aug 2017, at 23:25, JervenBolleman wrote:
That makes sense, do you suggest doing this in the README.md?
Ideally one example in the README and then some additional examples /
unit tests elsewhere... maybe even a readthedocs for FALDO. But assuming
not infinite time to work on this, yes just the README.md for now
and also should we have a default context at biohackathon.org?
Great idea.
How do things currently get published there? I don't see a gh-pages or
docs folder.
… --
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#33 (comment)
|
The fig9. in the paper is in JSON-LD
Ah yes great, we can just dupe that for now
|
Regarding a degault context at biohackathon.org, it currently checks out the codebase every hour if I recall @ktym is the maintainer. I think it something we should be able to do something in Japan. I will at least prepare some code to generate an context. I was looking into having tabs with examples in the README. Otherwise we can do more regarding documentation. |
I was planning to commit this but some key issue means I can't commit right now. Will do later A minimal JSON-LD exampleWe have a feature starting at a position 1 and ending on position 2 of a sequence that is not described here. {
"@context":{
"@vocab": "http://biohackathon.org/resource/faldo#",
"feature" : {
"@type" : "@id",
"@id" : "http://purl.uniprot.org/core/annotation"
}
},
"feature":{ "@id":"my-feature-id",
"begin":{"position":1},
"end":{"position":2}}
} This uses non of the extensive advanced capabilities of JSON-LD or FALDO. It is a minimal example to show that any |
Great start! As you say, we can use additional features of json-ld to make it more appealing to developers: we can have the I note also this example creates blank nodes for the Positions. I think this is OK, and we can imagine skolemizing or UUIDing as part of a separate translation step if this is perceived to be an issue. |
May want to coordinate the json-ld example with bioschemas, see: @JervenBolleman your example above is probably too underspecified, we would need at least a reference |
@cmungall yes, the example is completely underspecified as I was thinking of some of the existing public JSON for genomic/protein information. Which are like {
"features": [ {"type": "SIGNAL",
"category": "MOLECULE_PROCESSING",
"begin": "1",
"end": "17"}
]
} Which are common but put 3 things into one object making it hard to separate them out with just the JSON-LD processing (Maybe framing can help but I am not an expert there). |
I don't think JSON-LD processing is sufficient to transform the above into a FALDO-compliant RDF graph (in which each position is its own node). One possibility is to make FALDO more lenient and allow flatter representations, and define some kind of rule-based transform to entail the deeper representation. |
unfortunately a large fraction of the bioinformatics community will be put off by RDF.
Luckily it's very easy to use JSON-LD as a trojan horse here. The bioinformatics community needs a JSON successor to GFF3 and it would be easy to place FALDO in this place
The text was updated successfully, but these errors were encountered: