1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Jena Assembler vocabulary support.
//!
//! This module allows users migrating from Apache Jena to use their existing
//! `fuseki-config.ttl` assembler files with OxiRS. A Jena assembler document
//! uses the `ja:` namespace (`http://jena.hpl.hp.com/2005/11/Assembler#`) to
//! describe datasets, named graphs, and storage backends in RDF/Turtle format.
//!
//! # Quick start
//!
//! ```rust
//! use oxirs_core::assembler;
//!
//! let ttl = r#"
//! @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
//! <http://example.org/ds> a ja:RDFDataset .
//! "#;
//! let config = assembler::from_turtle(ttl).unwrap();
//! assert_eq!(config.len(), 1);
//! ```
//!
//! # Supported vocabulary
//!
//! | Term | Description |
//! |------|-------------|
//! | `ja:RDFDataset` | Generic RDF dataset |
//! | `ja:MemoryDataset` | In-memory dataset |
//! | `ja:MemoryModel` | In-memory RDF model |
//! | `tdb2:DatasetTDB2` | TDB2 disk-backed dataset |
//! | `ja:namedGraph` | Named-graph description |
//! | `ja:graphName` | IRI of a named graph |
//! | `ja:graph` | Model resource for a named graph |
//! | `ja:defaultGraph` | Default-graph model resource |
//! | `ja:contentURL` | URL to load initial RDF content |
//! | `tdb2:location` | Filesystem path for TDB2 storage |
pub use ;
pub use ;
/// Parse a Turtle-format Jena Assembler document into an [`AssemblerConfig`].
///
/// This is a convenience wrapper around [`AssemblerBuilder::from_turtle`].
///
/// # Example
///
/// ```rust
/// let ttl = r#"
/// @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
/// <http://example.org/ds> a ja:RDFDataset .
/// "#;
/// let config = oxirs_core::assembler::from_turtle(ttl).unwrap();
/// assert_eq!(config.len(), 1);
/// ```