It's all about the answers!

Ask a question

RPE - Artifact Type URI different between project areas (using same type system)


Glyn Costello (876) | asked Aug 27, 12:39 p.m.

 Hi, 


I'm trying to publish by filtering using a typeURI in the format:

https://server/rm/publish/text?typeURI=[typeURI]&oslc_config.context=[configURI]

I have got this working, however, The typeURI seems to be different between different Project Areas even though they are using the same Type System. this was achieved by creating the component in the project area then "Import Component Properties" from my template component. 

The Artifact Type definition in the Component Properties have the same artifact name and artifact URI which is in the format:


However, in one Project Area, the TypeURI is _mvyesFHLEeuMrfkR2rtkWQ and in the other it's _bLvB4ldLEeuMrfkR2rtkWQ. 

By using a consistent Type system and URI name space scheme, I was expecting that I could do publishing by "artifact type" across multiple projects without having to specify the typeName AND ProjectURI (just specify typeURI). 


Comments
Glyn Costello commented Aug 27, 1:29 p.m. | edited Aug 27, 1:50 p.m.

 Hi, 


Thanks, but I can't see how I can publish based on this?

Project A and B both have "Requirement Item" and the same URI = https://server/mlns/dngArtifactType#requirementItem

A GC that uses an RM stream from both these components, how do I "GET" "Requirement Items" for that GC using the REST API scheme below? What value should "typeURI" be?

https://server/rm/publish/text?typeURI=[typeURI]&oslc_config.context=[configURI]


Geoffrey Clemm commented Aug 27, 1:48 p.m. | edited Aug 27, 1:59 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

It looks like RPE is expecting the UUID of the type as the value of its ?typeURI parameter, which as you've correctly pointed out, differs in every project area.  Have you tried using the URI of the type (the property of the type that you are allowed to set, which actually is a URI)?   If not, we'll need an RPE expert to come up with some suggestion.

One answer



permanent link
David Honey (4156) | answered Aug 31, 4:01 a.m.
JAZZ DEVELOPER

A common technique used by applications is to use system-generated type URIs and/or predicate URIs and then use owl:sameAs to associate those URIs with stable external user-defined URIs. See https://jazz.net/wiki/bin/view/LinkedData/BestPractices. I don't know if that's the case here. Perhaps the reportable REST API supports querying on owl:sameAs ?

Your answer


Register or to post your answer.