You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the python program dn_simple_modulestructure.py, the following exception error is raised: More than one module with that name in project <project name> component <component name> configuraition <configuration name>
It seems that the filter parameters passed using whereterms on line 175 are only partially used - just the OSLC "title" property is matched, and second filter term, the Artifact Format type of Module, seems to be ignored.
When I made the Module name (OSLC title property) unique from all the other requirement artifact names in the component, I was able to successfully execute the program.
I was also unable to fix the whereterms even though I used the fully qualified (using the full namespace URI for jazz_rm) uri for Module Artifact format name (as returned by the query). i.e. the following change didn't work either:
There was a change in the Query implementation in IIRC 7.0.2 iFix017 which means checking for the format must use rdf:type rather than rdm_types:ArtifiactFormant, and also it seems the comparison needs an explicit URL rather than using a prefixed value.
i.e. expand the prefix on the rhs of the second erm so it's an explicit URL.
I note that oslcquery automatically does this expansion, but I wasn't aware that the OSLC API seems to require the expansion on RHS of a where term to an explicit URL.
I think (haven't tested) another way to do the prefix expansion would be like your approach but note the < and > surrounding the URL as per OSLC Query syntax f'<{rdfxml.RDF_DEFAULT_PREFIX["jazz_rm"]}Module>'
When running the python program dn_simple_modulestructure.py, the following exception error is raised:
More than one module with that name in project <project name> component <component name> configuraition <configuration name>
It seems that the filter parameters passed using whereterms on line 175 are only partially used - just the OSLC "title" property is matched, and second filter term, the Artifact Format type of Module, seems to be ignored.
When I made the Module name (OSLC title property) unique from all the other requirement artifact names in the component, I was able to successfully execute the program.
I was also unable to fix the whereterms even though I used the fully qualified (using the full namespace URI for jazz_rm) uri for Module Artifact format name (as returned by the query). i.e. the following change didn't work either:
The text was updated successfully, but these errors were encountered: