Thanks, spif:cast and of course STRDT are very useful!
Never used these.
The alternative being the more verbose [1].
Thanks again, -j




[1]
#DATA
:FRA a skos Concept;
   skos:notation “fre”^^euvoc:ISO_639_2B
.
#QUERY
SELECT *
WHERE {
              BIND ( "fre"^^xsd:string AS ?incoming )
              ?c a skos:Concept .
              ?c skos:notation ?n
              BIND ( xsd:string(?n) AS ?n_as_string )
              FILTER ( ?incoming = ?n_as_string )
}

From: topbraid-users@googlegroups.com <topbraid-users@googlegroups.com> On 
Behalf Of Irene Polikoff
Sent: 10 April 2020 03:03
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] custom datatypes and SPARQL

Thanks, I did not think about spif:cast. Yes, this is exactly what I meant in 
my ex:customDatatypeValue.


On Apr 9, 2020, at 8:44 PM, Holger Knublauch 
<hol...@topquadrant.com<mailto:hol...@topquadrant.com>> wrote:

Probably like     BIND (spif:cast("42", rdf:dummyDatatype) AS ?x)

Holger


#3 BIND ( euvoc:ISO_639_2B("fre") AS ?n )

I could think of may be a function that would accept a value and a custom 
datatype as parameters - something like BIND ( ex:customDatatypeValue (“fre”, 
euvoc:ISO_639_2B) AS ?n).

--
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
topbraid-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/17D27120-E7A5-4F6A-BB40-B6E01E2D69DA%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/17D27120-E7A5-4F6A-BB40-B6E01E2D69DA%40topquadrant.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/AM0PR03MB3745A2C3B1F6B765BB9D9D77E9DA0%40AM0PR03MB3745.eurprd03.prod.outlook.com.

Reply via email to