|
|
@ -17,7 +17,10 @@ pub trait FileSyntax: Sized { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// [RDF graph](https://www.w3.org/TR/rdf11-concepts/#dfn-graph) serialization formats.
|
|
|
|
/// [RDF graph](https://www.w3.org/TR/rdf11-concepts/#dfn-graph) serialization formats.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// This enumeration is non exhaustive. New syntaxes like JSON-LD will be added in the future.
|
|
|
|
#[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] |
|
|
|
#[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] |
|
|
|
|
|
|
|
#[non_exhaustive] |
|
|
|
pub enum GraphSyntax { |
|
|
|
pub enum GraphSyntax { |
|
|
|
/// [N-Triples](https://www.w3.org/TR/n-triples/)
|
|
|
|
/// [N-Triples](https://www.w3.org/TR/n-triples/)
|
|
|
|
NTriples, |
|
|
|
NTriples, |
|
|
@ -119,7 +122,10 @@ impl FileSyntax for GraphSyntax { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) serialization formats.
|
|
|
|
/// [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) serialization formats.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// This enumeration is non exhaustive. New syntaxes like JSON-LD will be added in the future.
|
|
|
|
#[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] |
|
|
|
#[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] |
|
|
|
|
|
|
|
#[non_exhaustive] |
|
|
|
pub enum DatasetSyntax { |
|
|
|
pub enum DatasetSyntax { |
|
|
|
/// [N-Quads](https://www.w3.org/TR/n-quads/)
|
|
|
|
/// [N-Quads](https://www.w3.org/TR/n-quads/)
|
|
|
|
NQuads, |
|
|
|
NQuads, |
|
|
|