Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to retrieve user-defined RDF-URIs in OSLC query results

The query results of an OSLC query do include the custom attributes that are defined for an artefact type. However, the query results do not use the RDF-URIs that I defined in the project properties for those custom attributes. Rather, arbitrary URIs are used, e.g. https://hostname/rm/types/_Otp_YceDEeagedFUHCigAA#4647618b-7d09-4f82-8d1e-04db2bb621a9

Only if I retrieve a single artefact using its rdf:about URI, my user defined RDF-URIs are used, e.g.
<j.0:country rdf:resource="https://hostname/rm/country#a-country-name"/>

Is it possible to have the user defined RDF-URI included in the OSLC query results?

Thank you in advance.

0 votes



2 answers

Permanent link

The OSLC standard does not define any means of translating these implementation URIs into some more logical user-provided URI. This would rather be a tool specific capability base on how it supports extensibility.

0 votes

Comments

Dear Jim,

thank you for your answer. This clarifies the issue somewhat. I understand that the OSLC standard does not define a translation between these URIs. However, I do not understand why the OSLC implementation of IBM on the one hand provides the user defined URIs when retrieving a single artefact but does not provide the user defined URIs when querying for artefacts. As this is the Jazz forum of IBM, I was hoping to learn on the specific implementation of IBM.

Kind regards

Stephan


Permanent link

 One can ask DNG for the Schema for a Component of ProjectArea for a given Configuration. That XML document is the Rosetta Stone which allows one to translate from the Component's custom type URIs to the inscrutable, internal ones used by Jazz.


Either with a bit of XSLT or with some RDF reasoning, one can map from one form of the URIs to the other by following the owl:sameAs relationship.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516
× 139

Question asked: Jan 23 '17, 10:54 a.m.

Question was seen: 2,602 times

Last updated: Oct 20 '17, 3:01 p.m.

Confirmation Cancel Confirm