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

SPARQL for ERM/DNG Artifact Count

 I have tried the SPARQL query in the following article to get an artifact count and it does not work (gives 1/0 as result). Does this work for version 7.0.2?

<o:p> </o:p>

It doesn't look like the query needs to change based on environment. So, I'm not sure why it is not working.

Any help would be appreciated.


0 votes



2 answers

Permanent link

HI Brad


DOORS Next 7.x no longer keeps artifact information in the Jena index, and that wiki article is about 6.x - so SPARQL queries no longer return useful results in 7.x.

This article may give you a suitable query for DOORS Next 7.x: UsefulSQlQueries < Deployment < TWiki (jazz.net)

HTH
Ian

0 votes

Comments

Hi Ian,

Thanks for your reply. Will SQL queries work when we are Global Configuration Enabled on all project areas? 

The query will do whatever the query does, IYSWIM

Where in the ELM tools can I do a SQL query?
 


Permanent link

If you have Lifecycle Query Engine configured you should be able to query there, or may be able to use Report Builder to  generate the query and execute a report for you.

0 votes

Comments

NOTE that SPARQL for DOORS Next 6.x is different from LQE SPARQL, i.e. the DN queries in your 6.x article won't work as LQE queries - best to use Report Builder to query from LQE.

Hi Ian,

Above you stated - so SPARQL queries no longer return useful results in 7.x. and here you recommend using a query in Report Builder from LQE. Aren't all LQE queries in SPARQL? I'm confused. Please help me understand.

 Also, I can't select a project area that is Configuration Enabled for use with the Data Warehouse. So, not sure if in a GC how I would use a SQL query.

You can only do configuration scoped reporting using the Lifecycle Query Engine scoped to a configuration data source. You cannot use Data Warehouse for this purpose.

DOORS Next provides a TRS (Tracked Resource Set - see https://oslc-op.github.io/oslc-specs/notes/trs-primer/trs-primer.html) that LQE consumes and indexes. Report Builder generates SPARQL that is executed on LQE SPARQL endpoints.

I said "so SPARQL queries no longer return useful results in 7.x." - This refers specifically to SPARQL queries to DOORS Next.

The link I gave to a wiki article with useful SQL Queries for DOORS Next are ones you would use directly to the RM database because you want a specific type of information. You would normally not use these routinely, but some occasionally useful queries are documented on that Wiki page.

LQE still uses Jena for indexing, and yes Report Builder for a LQE or LQE with configurations data source still creates SPARQL although you normally don't need to worry about this - modifying the SPARQL is possible but then you have to manually maintain that SPARQL Query.

Data Warehouse isn't configuraiton aware. Yes it uses SQL which is normally generated automatically by Report Builder.
Basically, the easiest way to get data out of LQE is to use Report Builder to create the report from a LQE/LQE with configurations data source. RB reports can count results.

showing 5 of 6 show 1 more comments

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

Question asked: Oct 13 '22, 1:29 p.m.

Question was seen: 1,284 times

Last updated: Oct 18 '22, 7:26 a.m.

Confirmation Cancel Confirm