Closed balhoff closed 7 years ago
See also #5
I generally use a separate prefix map yaml file, e.g. this one for ecto. This could be derived from JSON-LD, but doesn't require the overhead of JSON-LD.
I think having the option of having the prefixes in the pattern yaml is a good one (just as in jsonld you can have both external reused contexts and ones in the file). However, in general I prefer having a single place to make the change rather than multiple.
I can add an option to dosdp-scala to pass the prefix yaml file to use.
dosdp-scala now accepts a yaml prefix map like the one @cmungall linked to, via --prefixes=
. Also, there is an OBO option, --obo-prefixes=true
, which has rdf
, rdfs
, and owl
predefined, and all other CURIEs are expanded as OBO ontologies (no need to pass mapping file if this suffices). These can be used at the same time, with the explicit mappings taking precedence.
Patterns I have seen use a mix of ID styles including both e.g.
GO_0016020
andGO:0016020
. Templates could contain aprefixes
key containing mappings. This would be more straightforward than a full-blown JSON-LD context. Non-CURIE IDs such asGO_0016020
could be supported by also having abase
key. Example:Since there are no literals I don't know that we need to wrap in
<>
to distinguish unprefixed IRIs from CURIEs.