/// Builds a RDF [triple](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-triple) in a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset)
pubfnnew(
subject: implInto<NamedOrBlankNode>,
predicate: implInto<NamedNode>,
object: implInto<Term>,
graph_name: implInto<Option<NamedOrBlankNode>>,
)-> Self{
Self{
subject: subject.into(),
predicate: predicate.into(),
object: object.into(),
graph_name: graph_name.into(),
}
}
}
implfmt::DisplayforQuad{
fnfmt(&self,f: &mutfmt::Formatter)-> fmt::Result{
matchself.graph_name{
@ -451,19 +493,17 @@ impl Default for DataFactory {
implDataFactory{
/// Builds a RDF [IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-iri)
/// Builds a RDF [simple literal](https://www.w3.org/TR/rdf11-concepts/#dfn-simple-literal)
@ -495,34 +535,4 @@ impl DataFactory {
language: language.into(),
}
}
/// Builds a RDF [triple](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-triple)
pubfntriple(
&self,
subject: implInto<NamedOrBlankNode>,
predicate: implInto<NamedNode>,
object: implInto<Term>,
)-> Triple{
Triple{
subject: subject.into(),
predicate: predicate.into(),
object: object.into(),
}
}
/// Builds a RDF [triple](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-triple) in a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset)