If it's that simple, then the REPLACE function with a regex pattern would
probably work, something like this-
SELECT ?original (REPLACE(?original, "-[A-Z].+", "") AS ?extracted)
WHERE {
VALUES ?original {
"a-bb-cc-dd-TEST"
"a-TEST"
"a-cc-dd-ONE"
}
}
On Mon, Jan 22, 2024, 9:17 AM Kasia Kryczka <[email protected]> wrote:
> Hi there,
>
> this might be a trivial sparql question.
>
> I have name like :
> a-bb-cc-dd-TEST I would like to get a-bb-cc-dd
> a-TEST result a
> a-cc-dd-ONE result a-cc-dd
> x-BLOB result d
> etc.
>
> how to extract all that is before the uppercase letter ?
>
> Thanks,
>
> Kasia
>
> --
> The topics of this mailing list include TopBraid EDG and related
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> ---
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/a81aca03-1159-4aa6-917b-5aff6934c16bn%40googlegroups.com
> <https://groups.google.com/d/msgid/topbraid-users/a81aca03-1159-4aa6-917b-5aff6934c16bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
The topics of this mailing list include TopBraid EDG and related technologies
such as SHACL.
To post to this group, send email to [email protected]
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/CAGyojU2Rk-%3DhXeNwZChEjMVxwmtk1vPCeuHZFeDeTq3NV1_ONw%40mail.gmail.com.