Skip to content
Snippets Groups Projects
Commit e0f8db10 authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Fix id/concepts for labels without brackets

parent f8bd8e09
Branches
No related tags found
No related merge requests found
...@@ -732,7 +732,7 @@ WHERE { ...@@ -732,7 +732,7 @@ WHERE {
FILTER ( regex(str(?uw1Label),str(?restriction)) ). FILTER ( regex(str(?uw1Label),str(?restriction)) ).
# Label: Id, concept # Label: Id, concept
?uw1 unl:has_id ?uw1Id. ?uw1 unl:has_id ?uw1Id.
BIND (strbefore(?uw1Label, '(') AS ?concept1). BIND (IF (CONTAINS(?uw1Label, '('), strbefore(?uw1Label, '('), str(?uw1Label)) AS ?concept1).
# URI (for Atom Object) # URI (for Atom Object)
cprm:Config_Parameters cprm:netURI ?netURI. cprm:Config_Parameters cprm:netURI ?netURI.
cprm:Config_Parameters cprm:objectRef ?objectRef. cprm:Config_Parameters cprm:objectRef ?objectRef.
...@@ -889,7 +889,7 @@ WHERE { ...@@ -889,7 +889,7 @@ WHERE {
# Label(s) / URI # Label(s) / URI
?req unl:has_id ?reqId. ?req unl:has_id ?reqId.
?uw1 rdfs:label ?uw1Label. ?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 (strafter(str(?uw1), \"---\") AS ?numOcc).
BIND (concat( ?reqId, '_', ?concept1, ?numOcc) AS ?uwId). BIND (concat( ?reqId, '_', ?concept1, ?numOcc) AS ?uwId).
} """ ; } """ ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment