i'm starting this json-ld document (json-ld playground), meat looks this:
"from": [ "protein:15718680", "protein:157427902" ], "protein_gene": [ "gene:522311", "gene:3702" ]
now, "protein_gene" predicate takes gene identifiers values. since there can hundreds of these, want in json this:
"from": [ "protein:15718680", "protein:157427902" ], "protein_gene": [ "522311", "3702" ]
without "gene" prefix everywhere. possible? closest got, based on this question, this (json-ld playground). causes predicate values expanded iris, , not relative iris, based on @vocab. not right, because want predicate-specific vocab.
i know can play tricks embedded (local) contexts, , got this (json-ld playground) work, still uglier like.
there couple of ways single property, not multiple (more two, can use @vocab
, @base
if have two). apart injecting contexts, there's no way scope @vocab
, @base
property.