It's all about the answers!

Ask a question

What are the properties of an RDF Resource published as a TRS Change such that LDX accepts it as a valid Link?


Lonnie VanZandt (504) | asked Jan 22, 7:37 p.m.
edited Jan 23, 9:54 a.m.

 As I understand linking in Global-Configuration-aware OSLC peers, the owning ServiceProvider of an OSLC

resource that is the "subject" (source, owner) of a Link to an "object" (target) OSLC resource in a different repository
has the responsibility of publishing that Link via TRS to Jazz's LDX so that Jazz DNG (for example) can discover those external links to its internal resources.

I have a TRS provider for my ServiceProvider. What is the format of the RDF resource which needs to be returned when Jazz LDX eventually visits the TRS change and attempts to GET that resource? Is it a simple rdf#Statement with subject, predicate, object properties describing the Link? Is it the subject resource itself with rdf#Statement instances that describe the link? What exactly must it be and where is this documented?

<trs:change>
<trs:Creation rdf:about="https://rlia.acme.org:8443/oslc-windchill/services/am/resource/link/OR:foobar.net.Oslcdelegate:186036:779362732-1513037000878-1089680530-5-0-142-10@typhoon.acme.org/changelog/creationEntry/2018-01-22T21:37:30.733Z">
<trs:changed rdf:resource="https://rlia.acme.org:8443/oslc-windchill/services/am/resource/link/OR:foobar.net.Oslcdelegate:186036:779362732-1513037000878-1089680530-5-0-142-10@typhoon.acme.org"/>
<trs:order rdf:datatype="http://www.w3.org/2001/XMLSchema#int">18607</trs:order>
</trs:Creation>
</trs:change>
<trs:change>

</pre>

For example, here, what should be the content of the RDF for the "link/OR:foobar.net.Oslcdelegate:186036" resource?

One answer



permanent link
Lonnie VanZandt (504) | answered Jan 22, 8:03 p.m.

 When watching DNG store new links between its own resources, I can see this get POSTed to the rm/links service. I suspect that what the TRS has to expose should be very similar. (I don't expect to have to POST to rm/links in addition to assuring that the TRS exposes the right URI for the link.)

<rdf:RDF xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rm:Link rdf:about="">
<rdf:subject rdf:resource="https://clm.acme.org:9443/rm/resources/_38fd2bd8a5224876b7f3650f22ff2230"/>
<rdf:object rdf:resource="https://clm.acme.org:9443/rm/resources/_7fa73eeb041a4c489edecc8ed13ca0d4"/>
<rdf:predicate rdf:resource="https://clm.acme.org:9443/rm/types/_sbBb0dkiEeeVpMiClZrzHA"/>
<rm:suspectSubjectCleared/>
<rm:suspectObjectCleared/>
<rdf:type rdf:resource="http://www.ibm.com/xmlns/rdm/rdf/Link"/>
<rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string"></rdf:value>
<rm:hasAttrVal rdf:parseType="Resource">
<rm:hasAttrDef rdf:resource="https://clm.acme.org:9443/rm/types/_sj7gMdkiEeeVpMiClZrzHA"/>
<rdf:value>30439</rdf:value>
</rm:hasAttrVal>
</rm:Link>
</rdf:RDF>

Your answer


Register or to post your answer.