It's all about the answers!

Ask a question

how to identify the PA if i know the stream using OSLC API/programatically


akshay p (153) | asked Aug 27 '19, 2:37 a.m.

how to identify the PA if i know the stream using OSLC API/programatically

One answer



permanent link
Matthias Buettgen (23411926) | answered Sep 03 '19, 5:42 a.m.
When you got the RDF/XML of the Stream you will find inside this RDF a predicate called http://jazz.net/ns/process#projectArea (process:projectArea)
This contains an Object which contains the URI to the project area
If you query for this URI the server returns an RDF/XML containing the project area data.

<dcterms:titlerdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Project Auf RM 1</dcterms:title>
<process:isAccessPublicrdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</process:isAccessPublic>
<process:isAccessVisibleToMembersrdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</process:isAccessVisibleToMembers>
<rdf:typerdf:resource="http://jazz.net/ns/process#ProjectArea"/>
<oslc:instanceShaperdf:resource="http://jazz.net/ns/process/shapes/ProjectArea"/>
<process:isAccessVisibleToAccessListrdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</process:isAccessVisibleToAccessList>
<dcterms:modifiedrdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-08-29T10:55:55.000Z</dcterms:modified>
<oslc:archivedrdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:archived>
</rdf:Description>

If you use Eclipse Lyo you can create classes for Stream and also for Project and unmarshall the RDF/XML into them.

Your answer


Register or to post your answer.