Re: vocabulary reuse, noting here that search results for https://lov.linkeddata.es/dataset/lov/terms?q=chemical+composition included https://w3id.org/mdo/structure/Composition, which led me to https://w3id.org/mdo/structure/ReducedFormula, which is granularly resolvable via browser as https://huanyu-li.github.io/mdo/structure/1.0/index.html#ReducedFormula.
This vocabulary was co-authored by @rar. With some work, we may be able to use this. For example,
curl --head -L \
-H "Accept: application/ld+json;q=1,text/turtle;q=0.9,application/rdf+xml;q=0.8" \
returns a redirect to https://github.com/huanyu-li/Materials-Design-Ontology with Content-Type
text/html. We would need to work to e.g. have such a request return structured data about the vocabulary term – in the example above, preferably serialized as JSON-LD, next best would be the terse triple (“turtle”) format, and finally XML would be acceptable, as e.g. the
rdflib Python library (+
rdflib-jsonld plugin library) could convert amongst them.