pub fn serialize_with<V, I>(
vocabulary: &mut V,
interpretation: &mut I,
value: &impl LinkedData<I>,
) -> Result<ExpandedDocument<V::Iri, V::BlankId>, Error>where
V: Vocabulary + VocabularyMut,
V::Iri: Clone + Eq + Hash,
V::BlankId: Clone + Eq + Hash,
I: Interpretation + ReverseInterpretation + ReverseLocalInterpretation,Expand description
Serialize the given Linked-Data value into a JSON-LD document using a custom vocabulary and interpretation.
ยงErrors
Returns an error when the value cannot be expressed as a JSON-LD document.