Catrina; You can use the SPARQL function 'datatype' to get the
datatype for a literal. E.g.:
SELECT *
WHERE
{ ?s <some datatype prop> ?o .
BIND (datatype(?o) AS ?dt)
}
This is described in the SPARQL language spec:
http://www.w3.org/TR/sparql11-query/#func-datatype
-- Scott
On Apr 30, 11:17 am, Catrina <[email protected]>
wrote:
> Is it possible to use a SPARQL query to find the literal types
> associated with a triple pattern?
> For example, if I have a literal value of float and another literal
> value of int, can a SPARQL query be used to find the literal types?
> Where I don't know what the literal value will be?
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en