astreams
: IT WORKS???!?!?
This commit is contained in:
parent
c7f66036a2
commit
d56f146b1e
1 changed files with 2 additions and 2 deletions
|
@ -66,6 +66,7 @@ async fn test_something() -> anyhow::Result<()> {
|
|||
|
||||
object.set_name(vec![
|
||||
("NoLanguage1".to_string(), LangDir::Neither),
|
||||
("NoLanguage2".to_string(), LangDir::Neither),
|
||||
("English1".to_string(), LangDir::Language(LangTagBuf::from_str("en")?)),
|
||||
("Italian1".to_string(), LangDir::Language(LangTagBuf::from_str("it")?))
|
||||
])?;
|
||||
|
@ -78,9 +79,8 @@ async fn test_something() -> anyhow::Result<()> {
|
|||
let flattened = doc.flatten(&mut generator, true)?;
|
||||
|
||||
let mut loader = json_ld::ReqwestLoader::new();
|
||||
let mut vocabulary = IndexVocabulary::new();
|
||||
let context = Context::iri_ref(iri_ref!("https://www.w3.org/ns/activitystreams").to_owned());
|
||||
let processed = context.process(&mut vocabulary, &loader, None).await?;
|
||||
let processed = context.process(&mut (), &loader, None).await?;
|
||||
let processed_ref = processed.as_ref();
|
||||
|
||||
let value = flattened.compact(processed_ref, &mut loader).await?;
|
||||
|
|
Loading…
Add table
Reference in a new issue