pub fn not<RDF, P>(parser: P) -> Not<P>where
RDF: FocusRDF,
P: RDFNodeParse<RDF>,
Expand description
Not parser succeeds if the parser
fails and viceversa
Example:
use iri_s::{IriS, iri};
use srdf::SRDFGraph;
use srdf::{literal, not, RDFFormat, RDFNodeParse};
let graph = SRDFGraph::new();
let x = iri!("http://example.org/x");
assert_eq!(not(literal()).parse(&x, graph).unwrap(), ())