diff --git a/config/transduction-schemes.ttl b/config/transduction-schemes.ttl index f6722db292b7e88fb5840f653282a41b1da9d0f3..e885fdc3e4d113a4dc1947f531749397c83d7742 100644 --- a/config/transduction-schemes.ttl +++ b/config/transduction-schemes.ttl @@ -732,7 +732,7 @@ WHERE { FILTER ( regex(str(?uw1Label),str(?restriction)) ). # Label: Id, concept ?uw1 unl:has_id ?uw1Id. - BIND (strbefore(?uw1Label, '(') AS ?concept1). + BIND (IF (CONTAINS(?uw1Label, '('), strbefore(?uw1Label, '('), str(?uw1Label)) AS ?concept1). # URI (for Atom Object) cprm:Config_Parameters cprm:netURI ?netURI. cprm:Config_Parameters cprm:objectRef ?objectRef. @@ -889,7 +889,7 @@ WHERE { # Label(s) / URI ?req unl:has_id ?reqId. ?uw1 rdfs:label ?uw1Label. - BIND (strbefore(?uw1Label, '(') AS ?concept1). + BIND (IF (CONTAINS(?uw1Label, '('), strbefore(?uw1Label, '('), str(?uw1Label)) AS ?concept1). BIND (strafter(str(?uw1), \"---\") AS ?numOcc). BIND (concat( ?reqId, '_', ?concept1, ?numOcc) AS ?uwId). } """ ;