Skip to content

Allow [()] as first character of SPACYNAME, eg. '(X) Label' #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

per42
Copy link

@per42 per42 commented Nov 17, 2023

In my company's Doors Next instance, there are shape properties with a dcterms:title that start with "(" and contain space. This is not allowed in the grammar defined for the Lark query parser.

Shape propery example:

<oslc:Property>
  <oslc:valueType rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  <oslc:propertyDefinition rdf:resource="https://nceelmprod01.stoneridge.com/rm/types/AD_1CbeoSHkEeyJlc_q460BxA"/>
  <oslc:occurs rdf:resource="http://open-services.net/ns/core#Zero-or-one"/>
  <dcterms:description rdf:parseType="Literal"></dcterms:description>
  <dcterms:title rdf:parseType="Literal">(SRE) Stakeholder Requirement ID</dcterms:title>
  <oslc:name>AD_1CbeoSHkEeyJlc_q460BxA</oslc:name>
</oslc:Property>

Failing query: _RMComponent.do_complex_query call with select='(SRE) Stakeholder Requirement ID'

Signed-off-by: Per Rosengren <per.rosengren@gmail.com>
@per42 per42 force-pushed the spacyname_with_parenthesis branch from 0b1c41c to 3b2265c Compare November 17, 2023 10:10
barny added a commit that referenced this pull request Dec 3, 2024
@barny
Copy link
Member

barny commented Dec 3, 2024

Thanks - I merged this into 0.27.2 (also on pypi)

@barny barny closed this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants