It's all about the answers!

Ask a question

how to obtain the oslc url of a DNG artifact


Uri Shani (112) | asked Nov 27 '21, 10:39 a.m.
edited Nov 29 '21, 12:20 p.m.

 I have 3 artifacts in a project, in DOORSNG version 6.0.5, under a folder. 

No modules in the project, yet I also have a collection which includes them.
Working with the OSLC API, I am going from the rm/rootservices, to the rm/oslc_rm/catalog, but I cannot find where next to inquire for these artifacts.
Thanks.

Here is the services RDF I got. Sorry it is not quoted
So - no special headers specified. The results were saved to a file for further work.

<oslc_rm:links>
<oslc_rm:LinkCreationServices>
<oslc_rm:validatedByLinkFactory rdf:resource="https://shani.net:9443/rm/links/oslc/validatedByLinks"/>
<oslc_rm:implementedByLinkFactory rdf:resource="https://shani.net:9443/rm/links/oslc/implementedByLinks"/>
</oslc_rm:LinkCreationServices>
</oslc_rm:links>
<oslc_rm:collections>
<oslc_rm:CollectionSelectionDialog>
<oslc_rm:heightHint>550px</oslc_rm:heightHint>
<oslc_rm:widthHint>800px</oslc_rm:widthHint>
<dc:title xmlns:dc="http://purl.org/dc/terms/">Collection Selection</dc:title>
</oslc_rm:CollectionSelectionDialog>
</oslc_rm:collections>
<oslc_rm:requirements>
<oslc_rm:SelectionDialog>
<oslc_rm:heightHint>550px</oslc_rm:heightHint>
<oslc_rm:widthHint>800px</oslc_rm:widthHint>
<dc:title xmlns:dc="http://purl.org/dc/terms/">Requirement Selection</dc:title>
</oslc_rm:SelectionDialog>
</oslc_rm:requirements>
<dc:description xmlns:dc="http://purl.org/dc/terms/">Service Descriptor for Project: OSLC with OPCloud (Requirements)</dc:description>
<dc:title xmlns:dc="http://purl.org/dc/terms/">OSLC with OPCloud (Requirements)</dc:title>
</oslc_rm:ServiceDescriptor>

3 answers



permanent link
David Honey (1.8k17) | answered Nov 29 '21, 4:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Look for service providers -> services -> queryCapabilities.
See https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html for details.


Comments
Uri Shani commented Nov 29 '21, 10:48 a.m.

I indeed tried that sequence. I obtained the services report by following rootservices -> catalog -> services, but there is no query capability in there.

I have several artifacts, some are collected into a collection, and two of them are also in one module.

The widgets in the services RDF data indeed work, but these are not the OSLC URLs that I need.

I will post my services RDF to this topic.



permanent link
Ian Barnard (1.9k613) | answered Nov 29 '21, 9:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Hi


See my answer here for a detailed example of discovering configurations and components, including query capabilities https://jazz.net/forum/questions/266334/dng-oslcfetch-components-from-project-area/266667 - that was for 6.0.6.1

DOORS Next 7.0.2 now has four project-specific query capabilities, older versions don't have reqif and view queries:
If you simply use the relevant query base URL, with the configuration, you'll get results for all the resources - be wary that this query is an expensive operation so you should try to make it more focussed to minimise the server load.

HTH
Ian


Comments
Uri Shani commented Nov 29 '21, 11:00 a.m.

Hi Ian, 

I saw a youtube made by Ian back in 2015... Is that you? anyway, the Ian in that demo used to work with me on an EU7 project back than. I indeed wonder if that is you. 


Ian Barnard commented Nov 29 '21, 11:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Nope. 


Uri Shani commented Nov 29 '21, 12:25 p.m.

Thanks Ian. I looked up the detailed answer you referred me to and it will take me some time to follow up. AFAI see, my responses still do not provide a query capability yet. But I will keep trying before giving up. 


permanent link
Uri Shani (112) | answered Nov 29 '21, 10:48 a.m.
edited Nov 29 '21, 12:18 p.m.

 


Comments
Ian Barnard commented Nov 29 '21, 11:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please don't add an answer when what you should do is edit your original question. Looks to me like you're not correctly applying the OSLC-Core-Version header - see the answer I linked to. And if you want to show some XML also show the http operation, the URL path you got it from and the headers applied on your request. But add this to your question, i.e. not here.


Uri Shani commented Nov 29 '21, 12:22 p.m.

need to clear comments on this answer so I can delete it... 

Your answer


Register or to post your answer.