|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
use crate::named_node::NamedNode; |
|
|
|
|
use crate::vocab::{rdf, xsd}; |
|
|
|
|
use crate::vocab::{geosparql, rdf, xsd}; |
|
|
|
|
use crate::NamedNodeRef; |
|
|
|
|
use oxilangtag::{LanguageTag, LanguageTagParseError}; |
|
|
|
|
#[cfg(feature = "oxsdatatypes")] |
|
|
|
@ -422,6 +422,14 @@ impl From<DayTimeDuration> for Literal { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(feature = "oxsdatatypes")] |
|
|
|
|
impl From<GeoPoint> for Literal { |
|
|
|
|
#[inline] |
|
|
|
|
fn from(value: GeoPoint) -> Self { |
|
|
|
|
Self::new_typed_literal(value.to_string(), geosparql::WKT_LITERAL) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// A borrowed RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal).
|
|
|
|
|
///
|
|
|
|
|
/// The default string formatter is returning an N-Triples, Turtle, and SPARQL compatible representation:
|
|
|
|
|