-
Notifications
You must be signed in to change notification settings - Fork 10
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
Example: How to describe the electrode composition hierarchy #117
Comments
@NukP, Generally, it's best to avoid making custom "type" properties, because it will be easy to confuse with other concepts like rdf:type, rdfs:SubClassOf, and the In your example, you are creating a holistic description of a battery. A holistic description focuses on how the "whole" (a battery) is comprised of "parts" (a cathode, a binder, a current collector, etc.). It is technically acceptable to use A pseudo description in JSON-LD would be like:
and expressed as a graph it would look like: |
@jsimonclark Quick question, what tool do you use to transform JSON-LD into this diagram? I have been finding the appropriate tool to do this. With this structure
Another broad question is concerning the dialect of JSON-LD. What would happen if say everyone use different dialect of JSON-LD, would this be an issue when JSON-LD is used for query? I am now running into the situation where you provide one recommendation on the dialect of JSON-LD. My JSON-LD's dialect is different from yours. A collaborator from another work package (PREMISE project) are now exploring the use of JSON-LD in ro-crate to carry data/metadata across ELN and work flow manager, they too will probably develop a different dialect of JSON-LD. Do you have a real use case (say a website / database) where I can try put multiple JSON-LD files and query the info in them just to test the dialect? Thank you. |
I made the drawing here by hand with draw.io. Here are some other options for visualizing RDF graphs. For more dynamic visualization, I also like streamlit with streamlit-agraph. My only complaint is that the dark mode option isn't the best. |
Just like real dialects it's easiest if you use the same one as the people you talk to. And as the development settles, the dialect should too. But you can get around some variation by using more generic SPARQL queries. Check out the SPARQL documentation or just ask ChatGPT - it's pretty good at writing SPARQL queries. |
For testing graph operations and queries, I use rdflib in python. Some people prefer environments like GraphDB that looks a bit fancier. There are a lot of options like blazegraph, fuseki, etc. Cordis also maintains a SPARQL endpoint for EU research projects that's cool. |
Continued discussion from Issue #109
"I want to use this connector for type of item in general. For example: Cathode binder type, My current intended link is: Battery-hasPart-Cathode-hasPart-Binder-hasType Cathode current collector, My current intended link is: Battery-hasPart-Cathode-hasPart-CurrentCollector-hasType Please advice me on what I should use."
The text was updated successfully, but these errors were encountered: