srdf::srdf_parser

Function iri

Source
pub fn iri<RDF>() -> impl RDFNodeParse<RDF, Output = IriS>
where RDF: FocusRDF,
Expand description

Checks if the focus node is an IRI

use iri_s::{IriS, iri};
use srdf::{SRDFGraph, iri, RDFNodeParse};

let graph = SRDFGraph::new();
let x = iri!("http://example.org/x");
assert_eq!(iri().parse(&x, graph).unwrap(), x)