jsonld-context-processing 0.23.5
“JSON-LD context processing implementation”
Basename is uppercase README.mdRust test marker or harness
SHA-25680919cf3cda5cbc2da70b5aeb3abbfd1bd6b5cc28c0906db2e344522860cf6a6
MaleculeH₂(Cm₃Db)Md₂(InPa)
Evidence
467:50… Iri(value.clone()).into());
468 Term::Id(Id::Invalid(value))
469}
470
471#[cfg(test)]
472mod tests {
473 #![allow(clippy::unwrap_used)]
474 use super::*;
475 use crate::{Options, algorithm::sync::process_context_sync};
476 use iri_rs::IriBuf;
477 use jsonld_core::NoLoader;
478 use jsonld_syntax::{Keyword, Parse, TryFromJson};
479 use rdfx::{BlankIdBuf, vocabulary::no_vocabulary_mut};
480
481 const CONTEXT: &str = r#"{
482 "@vocab": "https://vocab.example/",
483 "ex": "https://example.com/",
484 "name": "https://example.com/name",
485 "type": "@type"
486 }"#;
487
488 /// Processes [`CONTEXT`] as the `@context` of a document.
489 fn processed_context() -> Context<IriBuf, …
540:56… definitions and `@vocab`
541 /// only apply where `vocab` does.
542 #[test]
543 fn processed_context_expands_terms_compact_iris_and_vocab_relative_terms() {
544 let context = processed_context();
545
546 …
550:18… thing", false, iri("https://example.com/thing")),
551 ("http://other.example/x", true, iri("http://other.example/x")),
552 ("http://other.example/x", false, iri("http://other.example/x")),
553 …
⋯4 lines
1021}
1022
1023#[cfg(test)]
1024mod tests {
1025 #![allow(clippy::unwrap_used)]
1026 use super::*;
1027 use jsonld_core::NoLoader;
1028 use jsonld_syntax::{Parse, TryFromJson};
1029
1030 /// Builds `levels` nestings of `{"a": {"@id": ..., "@context": ...}}`.
1031 fn nested_context(levels: u …
14:64… is no compatibility promise before 1.0. The [workspace README](https://github.com/mskvarc/jsonld#readme) says what that means in practice.
15
16## Feature flags
⋯4 lines
No evidence locations were recorded for this file. Raw result