pub fn iri<R>() -> impl RDFNodeParse<R, Output = IriS>where
R: 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)