--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-user+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vocbench-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/34916fb5-d9d9-4d58-9ee3-342cc9b16dc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RegardsCan you share with us an example of the query you are trying to write?The query above correctly returns "abcd".Nonetheless, I think that both LCASE and SUBSTR are implemented. For laziness, I have only tested LCASE:Dear Roland,the available functions depend on the triple store that powers a given project. I think that both RDF4J and GraphDB have fairly good coverage of SPARQL 1.1 functions; however, I don't know a compatibly matrix telling exactly which functions are implemented.
select ?lowercased {
BIND(LCASE("ABCD") as ?lowercased)
}
Manuel
2018-03-14 16:52 GMT+01:00 Roland Wingerter <chun...@gmail.com>:
Hi all,
making my first steps with SPARQL I also tried some string functions, e.g. LCASE() or SUBSTR() which are part of Sparql 1.1. (https://www.w3.org/TR/sparql11-query/#func-substr). I could not get them to work. Am I missing something or are they not supported in VB3?
Kind regards
Roland
--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
Visit this group at https://groups.google.com/group/vocbench-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/34916fb5-d9d9-4d58-9ee3-342cc9b16dc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Manuel Fiorelli
Dear Roland,
BIND is indeed not (generally) necessary, Manuel made an example with it to provide you a very generic SPARQL query that is actually not a query (it doesn't look up any data and uses bind to create the returned variable), thus is not bound (pun not intended :D ) to any dataset.
You can actually use LCASE on any string typed variable e.g. in a FILTER expression, such as the following:
SELECT *
WHERE {
?c a skos:Concept .
FILTER(STRSTARTS(LCASE(STR(?c)), "http://"))
}
LIMIT 10
Here I’m taking all concepts having their URI starting with “http://” and I use LCASE to include also those having, say, a URI starting with “HTTP://” (or, more in general, I’m making it a case-insensitive comparison). Note the use of STR to first transform ?c (which is an RDF Resource) into a string representing its URI.
Cheers,
Armando
Sent from my Windows 10 phone
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-user+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vocbench-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/ef282565-d645-4663-b0e1-a5f673bff7e9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/ef282565-d645-4663-b0e1-a5f673bff7e9%40googlegroups.com.