DNG : OSLC query to get views in a module
Accepted answer
Hi
- OSLC-=Core-Version: 2.0
- Accept: application/rdf+xml
- Configuration.Context: the configuration URL
Comments
That looks like the OSLC Query capability URL for views - it returns instances of shared views - I guess you've got 17 modules each with two views.
Also you should be providing a configuration with this URL either through a query parameter oslc_config.context or a header Configuration-Context - otherwise you'll get results from the default configuration.
Just being JazzAdmin isn't sufficient - you have to have read access to the project - e.g. being a member of it or the project having open read access.
Ian, I agree that "JazzAdmins" isn't enough. But I also have the "Administrator" role (all permissions = "Permit") as a member, and I still get the same result.
I'm working on a development platform, on which I've granted myself all privileges.
Just to clarify, I'm on version 7.0.3 iFix022.
Currently, this query also returns "[TID: 894732E6] CRRRS1602W The operation is forbidden," so I'm stuck, and it's a real shame not to be able to retrieve the definition of a shared view.
There isn't a public API to get the details of a view
1 vote
2 other answers
- OSLC-Core-Version: 2.0
- Accept: application/rdf+xml
- Configuration-Context: the configuration URL
<rdf:RDF xmlns:jfs="http://jazz.net/xmlns/foundation/1.0/" xmlns:rrm="http://www.ibm.com/xmlns/rrm/1.0/" xmlns:acp="http://jazz.net/ns/acp#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:rrmNav="http://com.ibm.rdm/navigation#" xmlns:acc="http://open-services.net/ns/core/acc#"xmlns:process="http://jazz.net/ns/process#" xmlns:rmWorkflow="http://www.ibm.com/xmlns/rdm/workflow/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rmReqIF="http://www.ibm.com/xmlns/rdm/reqif/" xmlns:rrmMulti="http://com.ibm.rdm/multi-request#"xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/" xmlns:oslc_auto="http://open-services.net/ns/auto#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:jazz_rm="http://jazz.net/ns/rm#" xmlns:pref="http://jazz.net/xmlns/alm/rm/Preference/"xmlns:rmTypes="http://www.ibm.com/xmlns/rdm/types/" xmlns:h="http://www.w3.org/TR/REC-html40" xmlns:xs="http://schema.w3.org/xs/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:nav="http://jazz.net/ns/rm/navigation#" xmlns:oslc_config="http://open-services.net/ns/config#"xmlns:dng_view="http://jazz.net/ns/rm/dng/view#" xmlns:oslc_rm="http://open-services.net/ns/rm#" xmlns:dng_task="http://jazz.net/ns/rm/dng/task#"><rdfs:member><dng_view:ViewDefinition rdf:about="https://localhost:9443/rm/views/VW_GchyuvctEe6WWrIwsxuKgg"><dcterms:title>Requirements Capture</dcterms:title><dcterms:description> </dcterms:description><dng_view:shared rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</dng_view:shared><dng_view:scopedArtifact rdf:resource="https://localhost:9443/rm/resources/MD_CIu4RFKSEeynovSJOwlrnw" /><dng_view:applicability rdf:resource="http://jazz.net/ns/rm/dng/view/scope#module" /><acp:accessControl rdf:resource="https://localhost:9443/rm/accessControl/_UCzOUOfFEeyt2rcBAVlGUA" /><oslc:serviceProvider rdf:resource="https://localhost:9443/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" /></dng_view:ViewDefinition></rdfs:member><rdfs:member><dng_view:ViewDefinition rdf:about="https://localhost:9443/rm/views/VW_GchypPctEe6WWrIwsxuKgg"><dcterms:title>V&V Planning [Public]</dcterms:title><dcterms:description> </dcterms:description><dng_view:shared rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</dng_view:shared><dng_view:scopedArtifact rdf:resource="https://localhost:9443/rm/resources/MD_CIu4Q1KSEeynovSJOwlrnw" /><dng_view:applicability rdf:resource="http://jazz.net/ns/rm/dng/view/scope#module" /><acp:accessControl rdf:resource="https://localhost:9443/rm/accessControl/_UCzOUOfFEeyt2rcBAVlGUA" /><oslc:serviceProvider rdf:resource="https://localhost:9443/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" /></dng_view:ViewDefinition></rdfs:member><rdfs:member><dng_view:ViewDefinition rdf:about="https://localhost:9443/rm/views/VW_GchyrvctEe6WWrIwsxuKgg"><dcterms:title>SOR Classic VnV Table</dcterms:title><dcterms:description>exporting classical VnV table acc. to legacy BHI Template</dcterms:description><dng_view:shared rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</dng_view:shared><dng_view:applicability rdf:resource="http://jazz.net/ns/rm/dng/view/scope#module" /><acp:accessControl rdf:resource="https://localhost:9443/rm/accessControl/_UCzOUOfFEeyt2rcBAVlGUA" /><oslc:serviceProvider rdf:resource="https://localhost:9443/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" /></dng_view:ViewDefinition></rdfs:member></rdf:Description><oslc:ResponseInfo rdf:about="https://localhost:9443/rm/views_oslc/query"><dcterms:title>Query Results : 3</dcterms:title></oslc:ResponseInfo></rdf:RDF>
Comments
You're comparing apples with oranges. The example in my post is for the services.xml which includes the QueryCapability for views and yes it includes resourceShape references. With the URL you're using you're getting the results of the query for views in a component - that will be different and won't include resourceShape references.
Your results have two views which are module-specific (the module is in the dng_view:scopedArtifact tag) and one view which isn't for a specific module.
- is there a way to also get the definition of the view? When I am trying to GET the dng_view:ViewDefinition rdf:about, I receive a "403 Forbidden"